
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 15 Port 4
15-5
15.2.3 Port 4 Direction Register (P4DIR)
Address: 0F221H
Access: R/W
Access size: 8-bit
Initial value: 00H
7 6 5 4 3 2 1 0
P4DIR
P47DIR P46DIR P45DIR
P44DIR
P43DIR
P42DIR
⎯
⎯
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
P4DIR is a special function register (SFR) to select the input/output mode of Port 4.
[Description of Bits]
•
P47DIR to P42DIR
(bits 7 to 2)
P47DIR to P42DIR are the bits for selecting the input/output mode of the Port 4 pins.
P47DIR
Description
0
P47 pin: Output (initial value)
1
P47 pin: Input
P46DIR
Description
0
P46 pin: Output (initial value)
1
P46 pin: Input
P45DIR
Description
0
P45 pin: Output (initial value)
1
P45 pin: Input
P44DIR
Description
0
P44 pin: Output (initial value)
1
P44 pin: Input
P43DIR
Description
0
P43 pin: Output (initial value)
1
P43 pin: Input
P42DIR
Description
0
P42 pin: Output (initial value)
1
P42 pin: Input
Note:
In 48-pin plastic TQFP, P42 pin is not available. Please set P42DIR bit to “0”.
Summary of Contents for ML610471
Page 12: ...Chapter 1 Overview...
Page 38: ...Chapter 2 CPU and Memory Space...
Page 44: ...Chapter 3 Reset Function...
Page 48: ...Chapter 4 MCU Control Function...
Page 62: ...Chapter 5 Interrupts...
Page 82: ...Chapter 6 Clock Generation Circuit...
Page 94: ...Chapter 7 Time Base Counter...
Page 105: ...Chapter 8 Capture...
Page 114: ...Chapter 9 Timer...
Page 133: ...Chapter 10 Watchdog Timer...
Page 141: ...Chapter 11 UART...
Page 164: ...Chapter 12 Port 0...
Page 173: ...Chapter 13 Port 2...
Page 180: ...Chapter 14 Port 3...
Page 188: ...Chapter 15 Port 4...
Page 199: ...Chapter 16 Port 6...
Page 205: ...Chapter 17 RC Oscillation Type A D Converter...
Page 225: ...Chapter 18 LCD Drivers...
Page 243: ...Chapter 19 Power Supply Circuit...
Page 245: ...Chapter 20 uEASE Flash Writer System...
Page 249: ...Chapter 21 Software Development...
Page 258: ...Appendixes...
Page 280: ...Revision History...