Port 5; Figure 16-21: Port 5 (P5); Figure 16-22: Port 5 Mode Register (Pm5) - NEC V850E/CA1 ATOMIC Preliminary User's Manual

32-/16-bit single-chip microcontroller
Table of Contents

Advertisement

16.3.5 Port 5

Port 5 is a 6-bit input/output port in which input or output can be specified in 1-bit units.
7
6
P5
0
0
Bit position
Bit name
5 to 0
P5n
(n = 5 to 0)
Besides functioning as a port, in control mode, it also can operate as the real-time pulse unit (RPU)
input/output and external interrupt request input.
(1)
Operation in control mode
Port
Port 5
P50
P51
P52
P53
P54
P55
(2)
Setting in input/output mode and control mode
Port 5 is set in input/output mode using the port 5 mode register (PM5). In control mode, it is set
using the port 5 mode control register (PMC5).
(a) Port 5 mode register (PM5)
This register can be read or written in 8- or 1-bit units.
7
6
PM5
1
1
Bit Position
Bit Name
5 to 0
PM5n
(n = 5 to 0)
546
Chapter 16 Port Functions

Figure 16-21: Port 5 (P5)

5
4
P55
P54
P53
Input/output port
Alternate Pin Name
TIE2/INTPE02
TOE12/INTPE12
TOE22/INTPE22
TOE32/INTPE32
TOE42/INTPE42
TCLRE2/INTPE52

Figure 16-22: Port 5 Mode Register (PM5)

5
4
PM55
PM54
PM53
Specifies input/output mode of P5n pin.
0: Output mode (Output buffer on)
1: Input mode (Output buffer off)
Preliminary User's Manual U14913EE1V0UM00
3
2
1
P52
P51
Function
Remarks
Real-time pulse unit (RPU) input or external
interrupt request input
3
2
1
PM52
PM51
Function
0
Address
P50
FFFFF408H
Block Type
0
Address
PM50
FFFFF428H
At Reset
00H
A
At Reset
FFH

Advertisement

Table of Contents
loading

Table of Contents