Figure 20-36: Port Register 5 (P5); Figure 20-37: Port Mode Register 5 (Pm5) - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

(2)
Control registers
(a) Port register 5 (P5)
The P5 register is an 8-bit register that controls reading the pin levels and writing the output levels
of port pins P50 to P57.
Writing to the P5 register is only possible in a specific sequence, where a write access to the
command register (PRCMD) must be made before a write access to the P5 register is accepted. A
read operation in between the two write operations is allowed, i.e. read-modify-write is possible on
register P5. For details refer to 3.4.8
This register can be read or written in 8-bit or 1-bit units.
Reset input causes an undefined register content.
After reset:
Undefined
7
P5
P57
P5n
0
1
(b) Port mode register 5 (PM5)
The PM5 register is an 8-bit register that specifies the input or output mode.
Writing to the PM5 register is only possible in a specific sequence, where a write access to the
command register (PRCMD) must be made before a write access to the PM5 register is accepted.
A read operation in between the two write operations is allowed, i.e. read-modify-write is possible
on register PM5. For details refer to 3.4.8
This register can be read or written in 8-bit or 1-bit units.
Reset input sets this register to FFH.
After reset:
FFH
7
PM5
PM57
PM5n
0
1
Remark:
n = 0 to 7
914
Chapter 20 Port Functions
Specific registers.

Figure 20-36: Port Register 5 (P5)

R/W
Address:
6
5
P56
P55
Input/Output Data Control of Pin P5n
Input mode: Low level is input
Output mode: Low level is output
Input mode: High level is input
Output mode: High level is output

Figure 20-37: Port Mode Register 5 (PM5)

R/W
Address:
6
5
PM56
PM55
Input/Output Mode Control of Pin P5n (in Port Mode)
Output mode
Input mode
User's Manual U16580EE3V1UD00
FFFFF40AH
4
3
P54
P53
P52
Specific registers.
FFFFF42AH
4
3
PM54
PM53
PM52
2
1
0
P51
P50
2
1
0
PM51
PM50

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents