
CHAPTER 4 PORT FUNCTIONS
User
’
s Manual U15862EJ3V0UD
211
(d) Port 9 function register H (PF9H)
This is an 8-bit register that specifies normal output/N-ch open-drain output.
This register can be read/written in 8-bit or 1-bit units.
(i) V850ES/KF1
0
Normal output
N-ch open-drain output
PF9n
0
1
Control of normal output/N-ch open-drain output (n = 0, 1)
PF9H
0
0
0
0
0
PF99
PF98
After Reset: 00H R/W Address: FFFFFC73H
(ii) V850ES/KG1, V850ES/KJ1
0
Normal output
N-ch open-drain output
PF9n
0
1
Control of normal output/N-ch open-drain output (n = 0, 1, 4, 5)
PF9H
0
0
PF912
PF911
0
PF99
PF98
After Reset: 00H R/W Address: FFFFFC73H
Caution When using P98, P99, P911, and P912 as N-ch open-drain-output alternate-
function pins, set in the following sequence.
Be sure to set the port latch to 1 before setting the pin to N-ch open-drain
output.
P9n bit = 1
→
PFC9n bit = 0/1
→
PF9n bit = 1
→
PMC9n bit = 1
(e) Port 9 function control register (PFC9)
This is a 16-bit register that specifies control mode 1/control mode 2.
This register can be read/written in 16-bit units only.
However, when the higher 8 bits and the lower 8 bits of the PFC9 register are used as the PFC9H register
and as the PFC9L register, respectively, these registers can be read/written in 8-bit or 1-bit units.
Cautions 1. When used as the A0 to A15 pins, perform 16-bit setting of PFC9 register = 0000H at
one time (only for V850ES/KG1, V850ES/KJ1).
2. When the control mode is set by the PMC9n bit of the PMC9 register with the PFC9n
bit of the PFC9 register maintaining the initial value (0), output becomes undefined.
Therefore, to set control mode 2 of port 9, set the PFC9n bit to 1 first and then set the
PMC9n bit to 1 (n = 0, 1, 6 to 9, 13 to 15) (V850ES/KF1 only).