CHAPTER 4 PORT FUNCTIONS
(2) Registers
(a) Port 3 register (P3)
The port 3 register (P3) is a 16-bit register that controls pin level read and output level write. This register
can be read/written in 16-bit units only.
However, when the higher 8 bits and the lower 8 bits of the P3 register are used as the P3H register and
as the P3L register, respectively, this register can be read/written in 8-bit or 1-bit units.
(i) V850ES/KF1
After Reset: Undefined
15
R/W
Address: FFFFF406H (P3, P3L), FFFFF407H (P3H)
14
0
13
0
12
0
11
0
10
0
9
8
P3 (P3HNote
)
0
P39
P38
(P3L)
0
0
P35
P34
P33
P32
P31
P30
P3n
0
Control of output data (in output mode) (n = 0 to 5, 8, 9)
Outputs 0
Outputs 1
1
(ii) V850ES/KG1, V850ES/KJ1
After Reset: Undefined
R/W
Address: FFFFF406H (P3, P3L), FFFFF407H (P3H)
15
14
0
13
0
12
0
11
0
10
0
9
8
P3 (P3HNote
)
0
P39
P38
(P3L)
P37
P36
P35
P34
P33
P32
P31
P30
P3n
0
Control of output data (in output mode) (n = 0 to 9)
Outputs 0
Outputs 1
1
Note When reading from or writing to bits 8 to 15 of the P3 register in 8-bit or 1-bit units,
specify these bits as bits 0 to 7 of the P3H register.
Remark In input mode: When read, port 3 (P3) returns the current pin level.
When written to, the data written to P3 is written. This has no
influence on the input pins.
In output mode: When read, port 3 (P3) returns the P3 value. When written to, the
value is written to P3 and the written value is immediately output.
User’s Manual U15862EJ3V0UD
155