STC8A8K64D4 Series Manual
-
9 I/O Ports
There are 4 modes for all GPIOs, quasi bidirectional or weak pull-up mode (standard 8051 output mode), push-pull
output / strong pull-up mode, high-impedance input mode (where current can neither flow in nor out), open drain mode. It is
easy to configure the I/O mode using software.
Note: All I/O ports except for P3.0 and P3.1 are in high-impedance input state after power-on. You
must set the I/O port mode before using it.
9.1 Registers Related to I/O
P0 Pull-up resistor control register
P1 Pull-up resistor control register
P2 Pull-up resistor control register
P3 Pull-up resistor control register
P4 Pull-up resistor control register
P5 Pull-up resistor control register
P6 Pull-up resistor control register
P7 Pull-up resistor control register
P0 Schmitt trigger control register
P1 Schmitt trigger control registe
P2 Schmitt trigger control registe
P3 Schmitt trigger control registe
P4 Schmitt trigger control registe
P5 Schmitt trigger control registe
P6 Schmitt trigger control registe
P7 Schmitt trigger control registe
Port0 Level Shift Rate Register
Port1 Level Shift Rate Register
Port2 Level Shift Rate Register
Port3 Level Shift Rate Register
Port4 Level Shift Rate Register
Port5 Level Shift Rate Register
Port6 Level Shift Rate Register
Port7 Level Shift Rate Register
P0 Drive Current Control Register
P1 Drive Current Control Register
P2 Drive Current Control Register
P3 Drive Current Control Register
P4 Drive Current Control Register
P5 Drive Current Control Register
P6 Drive Current Control Register
P7 Drive Current Control Register
P0 Input Enable Control Register
P1 Input Enable Control Register