CHAPTER 12 PORT FUNCTIONS
User’s Manual U12688EJ4V0UM00
383
(2) Input/output mode/control mode setting
Port 5 input/output mode setting is performed by means of the port 5 mode register (PM5), and control mode
(external expansion mode) setting is performed by means of the mode specification pins (MODE0 to MODE3)
and the memory expansion mode register (MM: refer to 3.4.6 (1)).
(a) Port 5 mode register (PM5)
This register can be read/written in 8- or 1-bit units.
Address
FFFFF02AH
7
PM57
PM5
6
PM56
5
PM55
4
PM54
3
PM53
2
PM52
1
PM51
0
PM50
After reset
FFH
Bit Position
Bit Name
Function
7 to 0
PM5n (n = 7 to 0)
Port Mode
Sets P5n in input/output mode.
0: Output mode (output buffer ON)
1: Input mode (output buffer OFF)
(b) Operation mode of port 5
Bit of MM Register
Operation Mode
MM3
MM2
MM1
MM0
P50
P51
P52
P53
P54
P55
P56
P57
0
0
0
0
Port (P50 to P57)
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
Data bus (D8 to D15)
1
don’t care
Port (50 to P57)
For the details of mode selection by the MODE0 to MODE3 pins, refer to 3.3.2 Operating mode
specification.
In ROM-less mode 0 or single-chip mode 1, the MM0 to MM3 bits are initialized to 1110 at system reset,
enabling the external expansion mode. External expansion can be disabled by programming the MM0 to
MM3 bits and setting the port mode. If MM0 to MM3 are set to
×××
1 or 0000, the subsequent external
instruction cannot be fetched.
Remark
×
: don’t care
Summary of Contents for V850E/MS1 UPD703100
Page 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Page 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Page 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Page 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Page 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Page 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Page 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Page 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Page 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...