CHAPTER 4 PORT FUNCTIONS
(2) Registers
(a) Port 1 register (P1)
Port 1 register (P1) is an 8-bit register that controls pin level read and output level write. This register can
be read/written in 8-bit or 1-bit units.
(i) V850ES/KG1, V850ES/KJ1
After Reset: Undefined
R/W
Address: FFFFF402H
P1
0
0
0
0
0
0
P11
P10
P1n
0
Control of output data (in output mode) (n = 0, 1)
Outputs 0
Outputs 1
1
Remark In input mode: When read, port 1 (P1) returns the current pin level.
When written to, the data written to P1 is written. This has no
influence on the input pins.
In output mode: When read, port 1 (P1) returns the P1 value. When written to, the
value is written to P1 and the written value is immediately output.
(b) Port 1 mode register (PM1)
This is an 8-bit register that specifies the input mode/output mode.
This register can be read/written in 8-bit or 1-bit units.
Caution When used as the ANO0 and ANO1 pins, set PM1 = FFH at one time.
(i) V850ES/KG1, V850ES/KJ1
After Reset: FFH
R/W
1
Address: FFFFF422H
PM1
1
1
1
1
1
PM11
PM10
PM1n
Control of I/O mode (n = 0, 1)
0
1
Output mode
Input mode
User’s Manual U15862EJ3V0UD
150