
CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
106
4.3.3
Port 3
Port 3 can be set to the input or output mode in 1-bit units.
The number of I/O port bits of each product is the same.
Commercial Name
Number of I/O Port Bits
V850ES/SA2
3-bit I/O port
V850ES/SA3
3-bit I/O port
(1) Functions of port 3
Input/output data can be specified in 1-bit units by using port register 3 (P3).
Can be set to the input or output mode in 1-bit units by using port mode register 3 (PM3).
Can be set to the port mode or control mode (alternate function) in 1-bit units by using port mode control
register 3 (PMC3).
Control mode 1 or control mode 2 can be specified in 1-bit units by using port function control register 3
(PFC3).
N-ch open-drain output can be set in 1-bit units by using port function register 3 (PF3).
An internal pull-up resistor can be connected in 1-bit units by using pull-up resistor option register 3 (PU3).
Port 3 has an alternate function as the following pins.
Table 4-6. Alternate-Function Pins of Port 3
Pin Name
Alternate-Function Pin
I/O
PULL
Note
Remark
P30
SI1/RXD0
P31
SO1/TXD0
Port 3
P32
SCK0
I/O
Provided
N-ch open-drain output selectable
Note
Software pull-up function