beautypg.com

3 gpio programming – Acrosser AR-B8172 User Manual

Page 32

background image

AR-B8172 User Manual

4.3 GPIO Programming

Data Port
(GPIO0 Base Address 0 Refers to the Register of index 61h-60h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO1 Base Address 1 Refers to the Register of index 63h-62h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO2 Base Address 2 Refers to the Register of index 65h-64h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO3 Base Address 3 Refers to the Register of index 67h-66h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO4 Base Address 4 Refers to the Register of index 69h-68h, IDSEL = AD18/SB of PCI
Configuration Register)





IO Address

Register Name

BA[0] + 00h GPIO PORT0 Data Register

BA[1] + 00h GPIO PORT1 Data Register

BA[2] + 00h GPIO PORT2 Data Register

BA3 + 00h

GPIO PORT3 Data Register

BA4 + 00h

GPIO PORT4 Data Register



Direction Port
(Base Address Refers to the Register of index 6Bh-6Ah, IDSEL = AD18/SB of PCI Configuration
Register)

IO Address

Register Name

BA + 00h

GPIO PORT0 Data Register

BA + 01h

GPIO PORT1 Data Register

BA + 02h

GPIO PORT2 Data Register

BA + 03h

GPIO PORT3 Data Register

BA + 04h

GPIO PORT4 Data Register

BA + 06h

GPIO PORT1 Interrupt Status Register

BA + 07h

GPIO PORT0 Interrupt Status Register








32