137
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Table 7-2 I/O characteristics of different I/O configurations
Characteristic
GPIO input
GPIO output
Analog mode
Peripheral alternate
Output buffer
Disable
Enable
Disable
According to peripheral
function configuration
Schmitt trigger
Enable
Enable
Disable
The output value is
forced to 0.
According to peripheral
function configuration
Pull up/Pull down/floating
Configurable
Disable
Disable
According to peripheral
function configuration
Open-drain mode
Disable
Configurable, GPIO
outputs 0 when the data
is "0" and high
impedance when he data
is "1"
Disable
Configurable, GPIO
outputs 0 when the data is
"0" and high impedance
when he data is "1".
Input data register (I/O status)
Read-write
Readable
Read as 0.
Readable
Output data register (write
value)
Invalid
Read-write
Invalid
Readable
Input mode
When I/O port is configured in input mode:
■ The data that appears on the I/O pin is sampled to the input data register on each APB2 clock.
■ Read access to the input data register can get I/O status.
■ Output buffer is disabled.
■ Schmidt trigger input is activated.
■ Weak pull-up and pull-down resistors are connected according to the input configuration (pull-up, pull-down or
floating).