
CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
124
(2) Register
(a) Port register 7 (P7)
Port register 7 is a 16-bit register that is used to read the pin level.
This register is read-only, in 16-bit units.
If the higher 8 bits of the P7 register are used as P7H, and the lower 8 bits as P7L, however, this register
can be read in 8-bit or 1-bit units.
Inputs low level.
Inputs high level.
P7n
0
1
Reads input data (V850ES/SA2: n = 0 to 12, V850ES/SA3: n = 0 to 15)
P7 (P7HNote 1)
(P7L)
After reset: Undefined
R
Address: P7 FFFFF40EH,
P7L FFFFF40EH, P7H FFFFF40FH
P77
P76
P75
P74
P73
P72
P71
P70
P715Note 2 P714Note 2 P713Note 2 P712Note 2
P711
P710
P79
P78
8
9
10
11
12
13
14
15
Notes 1. When reading or writing bits 8 to 15 of the P7 register in 8-bit or 1-bit units, specify these bits as bits
0 to 7 of the P7H register.
2. Bits 15 to 12 are valid only in the V850ES/SA3. These bits are undefined in the V850ES/SA2.
Caution
Do not read the P7 register during A/D conversion.
Remarks 1. If port 7 (P7) is read, the pin levels at that time can be read.
2. After reset, an undefined value (pin input level) is read when P7 is read.
(3) Block diagram
Figure 4-16. Block Diagram of P70 to P715
Internal
bus
RD
ANI0 to ANI15 input
P70/ANI0 to P715/ANI15