
CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
125
4.3.6
Port 8
Port 8 can control input/output 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
2-bit I/O port
V850ES/SA3
2-bit I/O port
(1) Function of port 8
Input data can be specified in 1-bit units by using port register 8 (P8).
Port 8 has an alternate function as the following pins.
Table 4-9. Alternate-Function Pins of Port 8
Pin Name
Alternate-Function Pin
I/O
PULL
Note
Remark
P80
ANO0
Port 8
P81
ANO1
Input
None
Note
Software pull-up function
(2) Register
(a) Port register 8 (P8)
Port register 8 (P8) is an 8-bit register that is used to read the pin level.
This register is read-only, in 8-bit or 1-bit units.
0
Inputs low level.
Inputs high level.
P8n
0
1
Reads input data (n = 0 or 1)
P8
0
P81
P80
After reset: Undefined
R
Address: FFFFF410H
Remarks 1. If port 8 (P8) is read, the pin levels at that time can be read.
2. After reset, an undefined value (pin input level) is read when P8 is read.