
CHAPTER 2 PIN FUNCTIONS
User’s Manual U15862EJ3V0UD
66
2.3 Description of Pin Functions
2.3.1 V850ES/KF1
(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) P30 to P35, P38, P39 (Port 3) ... I/O
Port 3 is an 8-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 P35, P38, and P39 can also be used for serial interface
(UART0, I
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 and control mode 2 in 1-bit units by the port 3 function control
register (PFC3).
When used as outputs, P38 and P39 are fixed to N-ch open-drain output.
2
C0) I/O and 16-bit timer input in control mode 1, and for 16-bit timer output in control mode 2.
(a) Port mode
P30 to P35, P38, and P39 can be set to input or output in 1-bit units by the port 3 mode register (PM3).
(b) Control mode
P30 to P35, P38, and P39 can be set to the port mode or control mode in 1-bit units by the port 3 mode
control register (PMC3).
P33 and P35 can be set to control mode 1 and control mode 2 in 1-bit units by the port 3 function control
register (PFC3).
(i)
TXD0 (transmit data) ... Output
This is the serial transmit data output pin for UART0.