CHAPTER 12 PORT FUNCTIONS
User’s Manual U12688EJ4V0UM00
375
(2) Input/output mode/control mode setting
Port 2 input/output mode setting is performed by means of the port 2 mode register (PM2), and control mode
setting is performed by means of the port 2 mode control register (PMC2). Pin P20 is fixed to NMI input mode.
(a) Port 2 mode register (PM2)
This register can be read/written in 8- or 1-bit units. However, bit 0 is fixed at 1 by hardware, so writing 0
to this bit is ignored.
Address
FFFFF024H
7
PM27
PM2
6
PM26
5
PM25
4
PM24
3
PM23
2
PM22
1
PM21
0
1
After reset
FFH
Bit Position
Bit Name
Function
7 to 1
PM2n (n = 7 to 1)
Port Mode
Sets P2n in input/output mode.
0: Output mode (output buffer ON)
1: Input mode (output buffer OFF)
Caution When the serial interface is used, use the following bits in the state when they are set to 1 (initial
value).
When UART0 is used: PM22
When UART1 is used: PM25
When CSI0 is used:
PM24 to PM22
When CSI1 is used:
PM27 to PM25
Содержание V850E/MS1 UPD703100
Страница 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Страница 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Страница 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Страница 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Страница 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Страница 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Страница 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Страница 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Страница 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...
Страница 422: ...User s Manual U12688EJ4V0UM00 422 MEMO ...