Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
70
8.3.2
Register Memory Map
Table 8-1 shows the memory map for the GPIO peripheral.
Table 8-1 Memory map of GPIO
Name
Address Offset
Access
Description
0x00
R/W
Port A data register
Width:
GPIO_PWIDTH_A
Reset Value:
GPIO_SWPORTA_RESET
0x04
R/W
Port A data direction register
Width:
GPIO_PWIDTH_A
Reset Value:
GPIO_DFLT_DIR_A
(for all bits)
0x08
R/W
Port A data source register
Width:
1 bit if GPIO_PORTA_SINGLE_CTL = 1, or
GPIO_PWIDTH_A
otherwise
Reset Value:
GPIO_DFLT_SRC_A
Bit is repeated
GPIO_PWIDTH_A
times if PIO_PORTA_SINGLE_CTL = 0
0x0c
R/W
Port B data register
Width:
GPIO_PWIDTH_B
Reset Value:
GPIO_SWPORTB_RESET
0x10
R/W
Port B data direction register
Width:
GPIO_PWIDTH_B
Reset Value:
GPIO_DFLT_DIR_B
(for all bits)
0x14
R/W
Port B data source register
Width:
1 bit if GPIO_PORTB_SINGLE_CTL = 1, or
GPIO_PWIDTH_B
otherwise
Reset Value:
GPIO_DFLT_SRC_B
Bit is repeated GPIO_PWIDTH_B times if PIO_PORTB_SINGLE_CTL = 0
0x18
R/W
Port C data register
Width:
GPIO_PWIDTH_C
Reset Value:
GPIO_SWPORTC_RESET
0x1c
R/W
Port C data direction register
Width:
GPIO_PWIDTH_C
Reset Value:
GPIO_DFLT_DIR_C
(for all bits)
0x20
R/W
Port C data source register
Width:
1 bit if GPIO_PORTC_SINGLE_CTL = 1, or
GPIO_PWIDTH_C
otherwise
Reset Value:
GPIO_DFLT_SRC_C
Bit is repeated
GPIO_PWIDTH_C
times if GPIO_PORTC_SINGLE_CTL = 0
0x24
R/W
Port D data register
Width:
GPIO_PWIDTH_D
Reset Value:
GPIO_SWPORTD_RESET
0x28
R/W
Port D data direction register
Width:
GPIO_PWIDTH_D
Reset Value:
GPIO_DFLT_DIR_D
(for all bits)
0x2c
R/W
Port D data source register
Width:
1 bit if GPIO_PORTD_SINGLE_CTL = 1, or
GPIO_PWIDTH_D
otherwise
Reset Value:
GPIO_DFLT_SRC_D
Bit is repeated
GPIO_PWIDTH_D
times if GPIO_PORTD_SINGLE_CTL = 0
0x30
R/W
Interrupt enable register
Width:
GPIO_PWIDTH_A
Reset Value:
0x0
0x34
R/W
Interrupt mask register
Width:
GPIO_PWIDTH_A
Reset Value:
0x0
0x38
R/W
Interrupt level register
Width:
GPIO_PWIDTH_A
Reset Value:
0x0
0x3c
R/W
Interrupt polarity register
The document authorized to
SZ99iot
2019-05-15 10:08:03