
GD32L23x User Manual
140
Open Drain Mode: The pad output low level when a “0” in the output control register;
while the pad leaves Hi-
Z when a “1” in the output control register.
Push-
Pull Mode: The pad output low level when a “0” in the output control register; while
the pad output high level when a “1” in the output control register.
A read access to the port output control register gets the last written value.
A read access to the port input status register gets the I/O state.
Figure 7-3. Output configuration
shows the output configuration.
Figure 7-3. Output configuration
Vss
Output
Control
Vdd
Output
Control
Register
Input
Status
Register
Write
Read/Write
Alternate Function Output
Read
Input driver
Output driver
I/O pin
Schmitt
trigger
Bit Operate
Registers
ESD
protection
Vdd
Vss
7.3.7.
Analog configuration
When GPIO pin is used as analog configuration:
The weak pull-up and pull-down resistors are disabled.
The output buffer is disabled.
The schmitt trigger input is disabled.
The port input status register of this I/O port bit is “0”.
Figure 7-4. Analog configuration
shows the analog configuration.
Figure 7-4. Analog configuration
Analog ( Input / Output )
I/O pin
ESD
protection