
CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
113
4.3.4
Port 4
Port 4 can be set to the input or output mode in 1-bit units.
The number of I/O port bits each product is the same.
Commercial Name
Number of I/O Port Bits
V850ES/SA2
7-bit I/O port
V850ES/SA3
7-bit I/O port
(1) Functions of port 4
Input/output data can be specified in 1-bit units by using port register 4 (P4).
Can be set to the input or output mode in 1-bit units by using port mode register 4 (PM4).
Can be set to the port mode or control mode (alternate function) in 1-bit units by using port mode control
register 4 (PMC4).
Control mode 1 or control mode 2 can be specified in 1-bit units by using port function control register 4
(PFC4).
N-ch open-drain output can be set to 1-bit units by using port function register 4 (PF4).
The internal pull-up resistor can be connected in 1-bit units by using pull-up resistor option register 4 (PU4).
Port 4 has an alternate function as the following pins.
Table 4-7. Alternate-Function Pins of Port 4
Pin Name
Alternate-Function Pin
I/O
PULL
Note 1
Remark
P40
SI0
P41
SO0/SDA
Note 2
P42
SCK0/SCL
Note 2
P43
INTP00/TI0/TCLR0
P44
INTP01/TO0
P45
INTP01/TI1/TCLR1
Port 4
P46
INTP11/TO1
I/O
Provided
Notes 1. Software pull-up function
2.
PD703200Y, 703201Y, 703204Y, 70F3201Y, and 70F3204Y only