CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U15905EJ1V0UD
129
(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
After reset: Undefined
R
Address:
FFFFF40EH, FFFFF40FH
P77
P76
P75
P74
P73
P72
P71
P70
P715
Note
P714
Note
P713
Note
P712
Note
P711
P710
P79
P78
8
9
10
11
12
13
14
15
Note
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
Содержание V850ES/SA2 UPD703201
Страница 2: ...Preliminary User s Manual U15905EJ1V0UD 2 MEMO ...
Страница 284: ... 4 6 7 6 7 8 9 9 6 Note 1 Note 2 0 0 9 9 6 1 1 0 1 9 0 0 0 6 7 0 0 0 0 0 0 0 1 1 1 0 0 0 0 3 1 6 7 6 7 ...
Страница 285: ... 6 7 ...
Страница 516: ...Preliminary User s Manual U15905EJ1V0UD 516 MEMO ...