
CHAPTER 2 PIN FUNCTIONS
User’s Manual U15862EJ3V0UD
74
2.3.2 V850ES/KG1
(1) P00 to P06 (port 0) ... I/O
Port 0 is a 7-bit I/O port for which input and output can be set in 1-bit units.
In addition to functioning as an I/O port, P00 to P06 can also be used for NMI input, external interrupt request
input, and timer H output in the control mode.
The port mode and control mode (alternate functions) can be selected as the operation mode for each bit, and
are specified by the port 0 mode control register (PMC0).
(a) Port mode
P00 to P06 can be set to input or output in 1-bit units by the port 0 mode register (PM0).
(b) Control mode (alternate function)
P00 to P06 can be set to the port mode or control mode in 1-bit units by the port 0 mode control register
(PMC0).
(i)
NMI (non-maskable interrupt request) ... Input
This is a non-maskable interrupt request input pin.
(ii)
INTP0 to INTP3 (interrupt request from peripherals) ... Input
These are external interrupt request input pins.
(iii) TOH0, TOH1 (timer output) ... Output
These are timer H pulse signal output pins.
(2) P10, P11 (port 1) ... I/O
Port 1 is a 2-bit I/O port for which input and output can be set in 1-bit units.
In addition to functioning as an I/O port, P10 and P11 can also be used for D/A converter analog output.
The port mode and control mode cannot be selected as the operation mode for each bit. To use these pins as
D/A converter analog output pins, set the port 1 mode register (PM1) to output (03H).
(a) Port mode
P10 and P11 can be set to input or output in 1-bit units by the port 1 mode register (PM1).
(i)
ANO0, ANO1 (analog output) ... Output
These are analog output pins to the D/A converter (DAC).
(3) P30 to P39 (port 3) ... I/O
Port 3 is a 10-bit I/O port for which input and output can be set in 1-bit units.
In addition to functioning as an I/O port, P30 to P39 can also be used for serial interface (UART0, I
16-bit timer input in control mode 1, and for 16-bit timer output in control mode 2.
The port mode and control mode can be selected as the operation mode for each bit, and are specified by the
port 3 mode control register (PMC3).
P33 and P35 can be set to control mode 1 or control mode 2 in 1-bit units by the port 3 function control register (PFC3).
When used as outputs, P36 to P39 are fixed to N-ch open-drain output.
2
C0) I/O and
(a) Port mode
P30 to P39 can be set to input or output in 1-bit units by the port 3 mode register (PM3).