903
Chapter 20
Port Functions
User’s Manual U16580EE3V1UD00
(2)
Control registers
(a) Port register 2 (P2)
The P2 register is an 8-bit register that controls reading the pin levels and writing the output levels
of port pins P20 to P27.
This register can be read or written in 8-bit or 1-bit units.
Reset input causes an undefined register content.
Figure 20-27:
Port Register 2 (P2)
Remark:
n = 0 to 7
(b) Port mode register 2 (PM2)
The PM2 register is an 8-bit register that specifies the input or output mode.
This register can be read or written in 8-bit or 1-bit units.
Reset input sets this register to FFH.
Figure 20-28:
Port Mode Register 2 (PM2)
Remark:
n = 0 to 7
PM2 is an 8 bit read/write register. It is the port mode register of Port 2. PM2 determines the input or
output direction of the respective port pin.
After reset:
Undefined
R/W
Address:
FFFFF404H
7
6
5
4
3
2
1
0
P2
P27
P26
P25
P24
P23
P22
P21
P20
P2n
Input/Output Data Control of Pin P2n
0
Input mode: Low level is input
Output mode: Low level is output
1
Input mode: High level is input
Output mode: High level is output
After reset:
FFH
R/W
Address:
FFFFF424H
7
6
5
4
3
2
1
0
PM2
PM27
PM26
PM25
PM24
PM23
PM22
PM21
PM20
PM2n
Input/Output Mode Control of Pin P2n (in Port Mode)
0
Output mode
1
Input mode
Summary of Contents for MuPD70F3187
Page 6: ...6 Preface User s Manual U16580EE3V1UD00 ...
Page 16: ...16 User s Manual U16580EE3V1UD00 ...
Page 28: ...28 User s Manual U16580EE3V1UD00 ...
Page 32: ...32 User s Manual U16580EE3V1UD00 ...
Page 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO ...
Page 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00 ...
Page 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 ...
Page 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO ...
Page 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO ...
Page 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO ...
Page 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO ...
Page 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO ...
Page 1052: ...1052 User s Manual U16580EE3V1UD00 ...
Page 1053: ......