Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


PG_CFG2
9.6.4. PG Configure Register 2 - адрес: 0x300b0e0 (смещение: 0x00E0)

Контроллер портов ввода-вывода (GPIO): список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bits 31 : 15

  PG19_SELECT

Bits 14 : 12
R/W
0x7

000:Input
001:Output
010:Reserved
011:Reserved
100:PWM1
101:Reserved
110:PG_EINT19
111:IO Disable


  Unused

Bit 11

  PG18_SELECT

Bits 10 : 8
R/W
0x7

000:Input
001:Output
010:UART2_CTS
011:Reserved
100:Reserved
101:TWI3_SDA
110:PG_EINT18
111:IO Disable


  Unused

Bit 7

  PG17_SELECT

Bits 6 : 4
R/W
0x7

000:Input
001:Output
010:UART2_RTS
011:Reserved
100:Reserved
101:TWI3_SCK
110:PG_EINT17
111:IO Disable


  Unused

Bit 3

  PG16_SELECT

Bits 2 : 0
R/W
0x7

000:Input
001:Output
010:UART2_RX
011:Reserved
100:Reserved
101:TWI4_SDA
110:PG_EINT16
111:IO Disable



Команда U-Boot для чтения регистра

md 300b0e0 1



Bit fields structure

typedef union  pg_cfg2
{
  struct
  {
   unsigned pg16_select : 3;
   unsigned unused0 : 1;
   unsigned pg17_select : 3;
   unsigned unused1 : 1;
   unsigned pg18_select : 3;
   unsigned unused2 : 1;
   unsigned pg19_select : 3;
   unsigned unused3 : 17;
  } b;
   unsigned long w;
} PG_CFG2
   

Allwinner H616 Manual