
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 15 Port 4
15-4
15.2.2 Port 4 Data Register (P4D)
Address: 0F220H
Access: R/W
Access size: 8-bit
Initial value: 00H
7 6 5 4 3 2 1 0
P4D
P47D P46D P45D P44D P43D P42D
⎯
⎯
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
P4D is a special function register (SFR) to set the value to be output to the Port 4 pin or to read the input level of the Port
4. In output mode, the value of this register is output to the Port 4 pin. The value written to P4D is readable.
In input mode, the input level of the Port 4 pin is read when P4D is read. Output mode or input mode is selected by using
the port direction register (P4DIR) described later.
[Description of Bits]
•
P47D to P42D
(bits 7 to 2)
The P47D to P42D bits are used to set the output value of the Port 4 pin in output mode and to read the pin level
of the Port 4 pin in input mode.
P47D
Description
0
Output or input level of the P47 pin: ”L”
1
Output or input level of the P47 pin: ”H”
P46D
Description
0
Output or input level of the P46 pin: ”L”
1
Output or input level of the P46 pin: ”H”
P45D
Description
0
Output or input level of the P45 pin: ”L”
1
Output or input level of the P45 pin: ”H”
P44D
Description
0
Output or input level of the P44 pin: ”L”
1
Output or input level of the P44 pin: ”H”
P43D
Description
0
Output or input level of the P43 pin: ”L”
1
Output or input level of the P43 pin: ”H”
P42D
Description
0
Output or input level of the P42 pin: ”L”
1
Output or input level of the P42 pin: ”H”
Note:
In 48-pin plastic TQFP, P42 pin is not available. Please set P42D 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...