GD32W51x User Manual
234
The schmitt trigger input is enabled
The weak pull-up and pull-down resistors could be chosen
The output buffer is enabled
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 8-3. Output configuration
shows the output configuration.
Figure 8-3. Output configuration
8.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 8-4. Analog configuration
shows the analog 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