
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 13 Port 2
13-4
13.2.3 Port 2 Control Registers 0, 1 (P2CON0, P2CON1)
Address: 0F212H
Access: R/W
Access size: 8/16 bit
Initial value: 00H
7 6 5 4 3 2 1 0
P2CON0
⎯
⎯
⎯
⎯
⎯
⎯
P21C0
P20C0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
Initial
value
0 0 0 0 0 0 0 0
Address: 0F213H
Access: R/W
Access size: 8-bit
Initial value: 00H
7 6 5 4 3 2 1 0
P2CON1
⎯
⎯
⎯
⎯
⎯
⎯
P21C1
P20C1
R/W R/W R/W R/W R/W R/W R/W R/W R/W
Initial
value
0 0 0 0 0 0 0 0
P2CON0 and P2CON1 are special function registers (SFRs) to select the output state of the output pin Port 2.
[Description of Bits]
•
P20C0, P21C0, P20C1, P21C1
(bits 0, 1)
The P20C0, P21C0, P20C1, P21C1 bits are used to select high-impedance output mode, P-channel open drain
output mode, N-channel open drain output mode, or CMOS output mode.
To directly drive LEDs, select N-channel open drain output mode.
P21C1 P21C0
Description
0
0
P21 pin: In high-impedance output mode (initial value)
0
1
P21 pin: In P-channel open drain output mode
1
0
P21 pin: In N-channel open drain output mode
1
1
P21 pin: In CMOS output mode
P20C1 P20C0
Description
0
0
P20 pin: In high-impedance output mode (initial value)
0
1
P20 pin: In P-channel open drain output mode
1
0
P20 pin: In N-channel open drain output mode
1
1
P20 pin: In CMOS output mode
Note:
In 48-pin plastic TQFP, P21 pin is not available.
Содержание ML610471
Страница 12: ...Chapter 1 Overview...
Страница 38: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 48: ...Chapter 4 MCU Control Function...
Страница 62: ...Chapter 5 Interrupts...
Страница 82: ...Chapter 6 Clock Generation Circuit...
Страница 94: ...Chapter 7 Time Base Counter...
Страница 105: ...Chapter 8 Capture...
Страница 114: ...Chapter 9 Timer...
Страница 133: ...Chapter 10 Watchdog Timer...
Страница 141: ...Chapter 11 UART...
Страница 164: ...Chapter 12 Port 0...
Страница 173: ...Chapter 13 Port 2...
Страница 180: ...Chapter 14 Port 3...
Страница 188: ...Chapter 15 Port 4...
Страница 199: ...Chapter 16 Port 6...
Страница 205: ...Chapter 17 RC Oscillation Type A D Converter...
Страница 225: ...Chapter 18 LCD Drivers...
Страница 243: ...Chapter 19 Power Supply Circuit...
Страница 245: ...Chapter 20 uEASE Flash Writer System...
Страница 249: ...Chapter 21 Software Development...
Страница 258: ...Appendixes...
Страница 280: ...Revision History...