Figure 20-41: Port Register 6 (P6); Figure 20-42: Port Mode Register 6 (Pm6) - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

(2)
Control registers
(a) Port register 6 (P6)
The P6 register is an 8-bit register that controls reading the pin levels and writing the output levels
of port pins P60 to P67.
Writing to the P6 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 P6 register is accepted. A
read operation in between the two write operations is allowed, i.e. read-modify-write is possible on
register P6. 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
P6
P67
P6n
0
1
(b) Port mode register 6 (PM6)
The PM6 register is an 8-bit register that specifies the input or output mode.
Writing to the PM6 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 PM6 register is accepted.
A read operation in between the two write operations is allowed, i.e. read-modify-write is possible
on register PM6. 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
PM6
PM67
PM6n
0
1
Remark:
n = 0 to 7
Chapter 20 Port Functions
Specific registers.

Figure 20-41: Port Register 6 (P6)

R/W
Address:
6
5
P66
P65
Input/Output Data Control of Pin P6n
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-42: Port Mode Register 6 (PM6)

R/W
Address:
6
5
PM66
PM65
Input/Output Mode Control of Pin P6n (in Port Mode)
Output mode
Input mode
User's Manual U16580EE3V1UD00
FFFFF40CH
4
3
P64
P63
P62
Specific registers.
FFFFF42CH
4
3
PM64
PM63
PM62
2
1
0
P61
P60
2
1
0
PM61
PM60
919

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents