EasyManua.ls Logo

STC micro STC8A8K64D4 Series - K Pull-Up Resistor; How to Set the External Output Speed of the I;O Port

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
-
- 170 -
be an external pull-up resistor in this configuration when the port outputs a logic high, typically the port pin is externally
connected to VCC through a resistor. An open-drain I/O port pin can read the external state if the external pull-up resistor is
connected, and the open-drain mode I/O port pin can be used as input mode. The pull-down structure in this way is the same
as quasi-bidirectional mode.
The open drain port has a Schmitt trigger input and an interference suppression circuit.
The structure of open drain port configuration is shown below:
Port latch data
Input data
interference suppression
Port
Pin
9.3.5 4.1K Pull-up Resistor
A pull-up resistor of approximately 4.1K can be enabled internally in all I/O ports of the STC8 series (due to
manufacturing errors, the range of the pull-up resistor may be 3K to 5K).
Port latch data
2 clocks
delay
VCCVCC VCC
Input Data
Strong
Very
weak
Weak
Port
Pin
interference suppression
VCC
4.1K Pull-up resistor
PxPU control bit
Pull-up Resistor Control Registers
Symbol
Address
B7
B6
B5
B4
B3
B2
B1
B0
P0PU
FE10H
P07PU
P06PU
P05PU
P04PU
P03PU
P02PU
P01PU
P00PU
P1PU
FE11H
P17PU
P16PU
P15PU
P14PU
P13PU
P12PU
P11PU
P10PU
P2PU
FE12H
P27PU
P26PU
P25PU
P24PU
P23PU
P22PU
P21PU
P20PU
P3PU
FE13H
P37PU
P36PU
P35PU
P34PU
P33PU
P32PU
P31PU
P30PU
P4PU
FE14H
P47PU
P46PU
P45PU
P44PU
P43PU
P42PU
P41PU
P40PU
P5PU
FE15H
-
-
-
P54PU
P53PU
P52PU
P51PU
P50PU
P6PU
FE16H
P67PU
P66PU
P65PU
P64PU
P63PU
P62PU
P61PU
P60PU
P7PU
FE17H
P77PU
P76PU
P75PU
P74PU
P73PU
P72PU
P71PU
P70PU
Internal 4.1K pull-up resistor control bit (Note: The pull-up resistors on the P3.0 and P3.1 ports may be slightly smaller)
0: Disable 4.1K pull-up resistor inside the port
1: Enable 4.1K pull-up resistor inside the port
9.3.6 How to set the external output speed of the I/O port
When users need the I/O port to output a faster frequency, they can increase the I/O port drive current and increase the I/O port level
conversion speed to increase the I/O port output speed.
Setting the PxSR register can be used to control the I/O port level conversion speed. When it is set to 0, the corresponding I/O port is fast
flipping, and when it is set to 1, it is slow flipping.

Table of Contents

Related product manuals