540
Chapter 16
Port Functions
Preliminary User’s Manual U14913EE1V0UM00
16.3.2 Port
2
Port 2 is a 8-bit input/output port in which input or output can be specified in 1-bit units.
Figure 16-12: Port 2 (P2)
Besides functioning as a port, in control mode, it also can operate as the serial interface (CSI0, CSI1,
UART0) input/output.
(1)
Operation in control mode
(2)
Setting in input/output mode and control mode
Port 2 is set in input/output mode using the port 2 mode register (PM2). In control mode, it is set
using the port 2 mode control register (PMC2).
(a) Port 2 mode register (PM2)
This register can be read or written in 8- or 1-bit units.
Figure 16-13: Port 2 Mode Register (PM2)
7
6
5
4
3
2
1
0
Address
At Reset
P2
P27
P26
P25
P24
P23
P22
P21
P20
FFFFF402H
00H
Bit position
Bit name
Function
7 to 0
P2n
(n = 7 to 0)
Input/output port
Port
Alternate Pin Name
Remarks
Block Type
Port 2
P20
SI0
Serial interface (
CSI0, CSI1, UART0
)
input/output.
A
P21
SO0
P22
SCK0
P23
SI1
P24
SO1
P25
SCK1
P26
RXD0
P27
TXD0
7
6
5
4
3
2
1
0
Address
At Reset
PM2
PM27
PM26
PM25
PM24
PM23
PM22
PM21
PM20
FFFFF422H
FFH
Bit Position
Bit Name
Function
7 to 0
PM2n
(n = 7 to 0)
Specifies input/output mode of P2n pin.
0: Output mode (Output buffer on)
1: Input mode (Output buffer off)
Summary of Contents for V850E/CA1 ATOMIC
Page 6: ...6 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 52: ...52 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 144: ...144 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 162: ...162 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 224: ...224 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 308: ...308 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 512: ...512 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 564: ...564 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 566: ...566 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 584: ...584 Preliminary User s Manual U14913EE1V0UM00 MEMO ...