SN32F100 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 70
Version 1.9
00: Pull-up resistor enabled.
01: Pull-down resistor enabled.
10: Inactive (no pull-down/pull-up resistor enabled).
11: Repeater mode.
Note: HW will switch P1.7 and P1.8 to Microphone differential input if SEL_MIC=1 in ADC_SET23 register.
Setting SEL_MIC=0 before P1.7 and P1.8 as GPIO function.
Note: P0.14 is the input pin only, please don
’t set it to the output function in GPIO0_MODE register.
5.3.4 GPIO Port n Interrupt Sense register (GPIOn_IS) (n=0,1,2,3)
Address offset: 0x0C
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
IS[15:0]
Selects interrupt on pin x as level or edge sensitive (x = 0 to 15).
0: Interrupt on Pn.x is configured as edge sensitive.
1: Interrupt on Pn.x is configured as event sensitive.
R/W
0
5.3.5 GPIO Port n Interrupt Both-edge Sense register (GPIOn_IBS) (n=0,1,2,3)
Address offset: 0x10
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
IBS[15:0]
Selects interrupt on Pn.x to be triggered on both edges (x = 0 to 15).
0: Interrupt on Pn.x is controlled through register GPIOn_IEV.
1: Both edges on Pn.x trigger an interrupt.
R/W
0
5.3.6 GPIO Port n Interrupt Event register (GPIOn_IEV) (n=0,1,2,3)
Address offset: 0x14
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
IEV[15:0]
Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 15).
0: Depending on setting in register GPIOn_IS, Rising edges or HIGH level
on Pn.x trigger an interrupt.
1: Depending on setting in register GPIOn_IS, Falling edges or LOW level
on Pn.x trigger an interrupt.
R/W
0
5.3.7 GPIO Port n Interrupt Enable register (GPIOn_IE) (n=0,1,2,3)
Address offset: 0x18
Bits set to HIGH in the GPIOn_IE register allow the corresponding pins to trigger their individual interrupts. Clearing a
bit disables interrupt triggering on that pin.
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
IE[15:0]
Selects interrupt on pin x to be enabled (x = 0 to 15).
0: Disable Interrupt on Pn.x
1: Enable Interrupt on Pn.x
R/W
0