MB95710M Series
MB95770M Series
Document Number: 002-09307 Rev. *D
Page 62 of 172
• P22/SCL pin
This pin has the following peripheral function:
• I
2
C bus interface ch. 0 clock I/O pin (SCL)
• P23/SDA pin
This pin has the following peripheral function:
• I
2
C bus interface ch. 0 data I/O pin (SDA)
• Block diagram of P22/SCL and P23/SDA
18.3.3 Port 2 registers
• Port 2 register functions
*: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z.
• Correspondence between registers and pins for port 2
Register
abbreviation
Data
Read
Read by read-modify-write
(RMW) instruction
Write
PDR2
0
Pin state is “L” level.
PDR2 value is “0”.
As output port, outputs “L” level.
1
Pin state is “H” level.
PDR2 value is “1”.
As output port, outputs “H” level.*
DDR2
0
Port input enabled
1
Port output enabled
PUL2
0
Pull-up disabled
1
Pull-up enabled
Correspondence between related register bits and pins
Pin name
-
-
-
-
P23
P22
P21
P20
PDR2
-
-
-
-
bit3
bit2
bit1
bit0
DDR2
PUL2
-
-
PDR2
PDR2 read
PDR2 write
Executing bit manipulation instruction
DDR2 read
DDR2 write
DDR2
0
1
1
0
Stop mode, watch mode (SPL = 1)
Peripheral function input
Peripheral function input enable
Peripheral function output enable
Peripheral function output
CMOS
Pin
OD
Inter
nal b
u
s