SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 74
Version 2.0
5.3 GPIO REGISTERS
Base Address: 0x4004 4000 (GPIO 0)
0x4004 6000 (GPIO 1)
0x4004 8000 (GPIO 2)
0x4004 A000 (GPIO 3)
5.3.1
GPIO Port n Data register (GPIOn_DATA) (n=0,1,2,3)
Address offset: 0x00
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
DATA[15:0]
Input data (read) or output data (write) for Pn.0 to Pn.15
R/W
0
5.3.2
GPIO Port n Mode register (GPIOn_MODE) (n=0,1,2,3)
Address offset: 0x04
Note: HW will switch I/O Mode directly when Specific function (Peripheral, ADC) is enabled, not through
GPIOn_MODE register.
Bit
Name
Description
Attribute
Reset
31:16
CURRENT[15:0]
Driving/Sinking current selection (x = 0 to 15)
0: Typical 10mA
1: Typical 20mA
R/W
0
15:0
MODE[15:0]
Selects pin x as input or output (x = 0 to 15)
0: Pn.x is configured as input
1: Pn.x is configured as output.
R/W
0
5.3.3
GPIO Port n Configuration register (GPIOn_CFG) (n=0,1,2,3)
Address offset: 0x08
Reset value: 0xAAAAAAAA
Note: HW will switch I/O Mode directly when Specific function (Peripheral, ADC) is enabled, not through
GPIOn_MODE register.
Bit
Name
Description
Attribute
Reset
31:30
CFG15[1:0]
Configuration of Pn.15
00: Pull-up resistor enabled.
01: Pull-down resistor enabled.
10: Inactive (no pull-down/pull-up resistor enabled).
11: Repeater mode.
R/W
10b
29:28
CFG14[1:0]
Configuration of Pn.14
00: Pull-up resistor enabled.
01: Pull-down resistor enabled.
10: Inactive (no pull-down/pull-up resistor enabled).
R/W
10b