SN32F100 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 67
Version 1.9
5
5
5
GENERAL PURPOSE I/O PORT (GPIO)
5.1 OVERVIEW
Digital ports can be configured input/output by SW
Each individual port pin can serve as external interrupt input pin.
Interrupts can be configured on single falling or rising edges and on both edges.
The I/O configuration registers control the electrical characteristics of the pads.
Internal pull-up/pull-down resistor.
Most of the I/O pins are mixed with analog pins and special function pins.
5.2 GPIO MODE
The MODE bits in the
(n=0,1,2,3) register allow the selection of on-chip pull-up or pull-down resistors for
each pin or select the repeater mode.
The repeater mode enables the pull-up resistor if the pin is logic HIGH and enables the pull-down resistor if the pin is
logic LOW. This causes the pin to retain its last known state if it is configured as an input and is not driven externally.
The state retention is not applicable to the Deep power-down 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.