NEC V850E/RS1 User Manual page 144

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

(2)
Registers
(a) Port register 9 (P9)
Port register 9 (P9) is a 16-bit register used to control pin level read and output level write.
This register can be read and written in 8-bit and 1-bit units.
However, when using the higher 8 bits of the P9 register as the P9H register and the lower 8 bits
as the P9L register, P9 becomes two 8-bit registers for which I/O can be manipulated in 8-bit or
1-bit units.
Symbol
P9H
R/W
Symbol
P9L
R/W
Remarks: 1. Input mode:
144
Downloaded from
Elcodis.com
electronic components distributor
Chapter 4 Port Functions
Figure 4-42: Port Register 9 (P9) Format
15
14
13
12
P915
P914
P913
P912
R/W
R/W
R/W
R/W
7
6
5
4
P97
P96
P95
P94
R/W
R/W
R/W
R/W
P9n
Output data control (in output mode) (n = 0 to 15)
0
Outputs 0
1
Outputs 1
When port 9 (P9) is read, the pin levels at this time are read. During
write, the data written to P9 is written. This does not affect the input
pins.
Output mode:
When port 9 (P9) is read, the value of P9 is read. During write, the
value is written to P9 and the written value is immediately output.
2. An undefined value (pin input level) is read for the value after reset when P9 is read in
the input mode. When P9 is read in the output mode, 00H (output latch value) is output.
User's Manual U16702EE3V2UD00
11
10
9
P911
P910
P99
P98
R/W
R/W
R/W
R/W
3
2
1
P93
P92
P91
P90
R/W
R/W
R/W
R/W
8
Address
After reset
FFFFF413H undefined
0
Address
After reset
FFFFF412H undefined

Advertisement

Table of Contents
loading

Table of Contents