Download 8XC196NP, 80C196NU Microcontroller User`s Manual

Transcript
8XC196NP, 80C196NU USER’S MANUAL
Table 7-4. Logic Table for Bidirectional Ports in I/O Mode
Configuration
Complementary Output
Open-drain
Output
Input
Px_MODE
0
0
0
0
Px_DIR
0
0
1
1
SFDIR
X
X
X
X
SFDATA
X
X
X
X
Px_REG
0
1
0, 1 (Note 2)
1
Q1
off
on
off
off
Q2
on
off
on, off (Note 2)
off
Px_PIN
0
1
X (Note 3)
high-impedance (Note 4)
NOTES:
1. X = Don’t care.
2. If Px_REG is cleared, Q2 is on; if Px_REG is set, Q2 is off.
3. Px_PIN contains the current value on the pin.
4. During reset and until the first write to Px_MODE, Q4 is on.
Table 7-5. Logic Table for Bidirectional Ports in Special-function Mode
Configuration
Complementary Output
Open-drain
Output
Input
P x_MODE
1
1
1
1
Px_DIR
0
0
1
1
SFDIR
0
0
1
1
SFDATA
0
1
0, 1 (Note 2)
1
Px_REG
X
X
X
1
Q1
off
on
off
off
Q2
on
off
on, off (Note 2)
off
Px_PIN
0
1
X (Note 3)
high-impedance (Note 4)
NOTES:
1. X = Don’t care.
2. If Px_REG is cleared, Q2 is on; if Px_REG is set, Q2 is off.
3. Px_PIN contains the current value on the pin.
4. During reset and until the first write to Px_MODE, Q4 is on.
7-6