![LAPIS Semiconductor ML610472 Скачать руководство пользователя страница 194](http://html1.mh-extra.com/html/lapis-semiconductor/ml610472/ml610472_user-manual_3645865194.webp)
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 15 Port 4
15-6
15.2.4 Port 4 Control Registers 0, 1 (P4CON0, P4CON1)
Address: 0F222H
Access: R/W
Access size: 8/16 bit
Initial value: 00H
7 6 5 4 3 2 1 0
P4CON0
P47C0 P46C0 P45C0 P44C0 P43C0 P42C0
⎯
⎯
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: 0F223H
Access: R/W
Access size: 8-bit
Initial value: 00H
7 6 5 4 3 2 1 0
P4CON1
P47C1 P46C1 P45C1 P44C1 P43C1 P42C1
⎯
⎯
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
P4CON0 and P4CON1 are special function registers (SFRs) to select input/output state of the Port 4 pin. The
input/output state is different between input mode and output mode. Input or output is selected by using the P4DIR
register.
[Description of Bits]
•
P47C1 to P42C1, P47C0 to P42C0
(bits 7 to 2)
P47C1 to P42C1 and P47C0 to P42C0 are the bits for selecting the high-impedance output, P-channel open drain
output, N-channel open drain output, or CMOS output in output mode and for selecting the high-impedance input,
input with a pull-down resistor, or input with a pull-up resistor in input mode.
Setting of P47 pin
When output mode is selected (P47DIR
bit = “0”)
When input mode is selected (P47DIR bit =
“1”)
P47C1 P47C0
Description
0
0
High-impedance output (initial value)
High-impedance input
0
1
P-channel open drain output
Input with a pull-down resistor
1
0
N-channel open drain output
Input with a pull-up resistor
1
1
CMOS output
High-impedance input
Setting of P46 pin
When output mode is selected (P46DIR
bit = “0”)
When input mode is selected (P46DIR bit =
“1”)
P46C1 P46C0
Description
0
0
High-impedance output (initial value)
High-impedance input
0
1
P-channel open drain output
Input with a pull-down resistor
1
0
N-channel open drain output
Input with a pull-up resistor
1
1
CMOS output
High-impedance input
Содержание ML610472
Страница 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...