Chapter 7
I/O Port
Port 2 VII - 41
Table:7.6.3 P21 Function Selection
Table:7.6.4 P22 Function Selection
Table:7.6.5 P23 Function Selection
*1 When serial data is output, set the P2DIR.P2DIR3 to "1".
*2 When serial data is input and output, set the bit to "1".
Table:7.6.6 P24 Function Selection
*1 When the LSI is the master of Clock-synchronous communication or communicates on IIC bus,
set the P2DIR.P2DIR4 to "1".
Setup Function
Register LCCTR5 TMIOEN0 TM5MD TMIOSEL5
Bit name SEGSL41 TM5OEN TM5CK1-0 TM5IOSEL
1- - - SEG41
0
1 Other than 11 0 TM5IO (output)
0
11 0 TM5IO (input)
Other than 11 - P21
Setup Function
Register LCCTR5 SC2MD1 SC23SEL
Bit name SEGSL40 SC2SBIS SC2IOM SC2SEL0
1 - - - SEG40
0
1 0 1 SBI2B
00-P22
Setup Function
Register LCCTR5 SC2MD1 SC23SEL
Bit name SEGSL39 SC2SBOS SC2SBIS SC2IOM SC2SEL1
1----SEG39
0
1 (*1) - (*2) - (*2) 1
SBO2B/
SDA2B
0111
000-P23
Setup Function
Register LCCTR5 SC2MD1 SC23SEL
Bit name SEGSL38 SC2SBTS SC2SEL2
1 - - SEG38
0
1 (*1) 1
SBT2B/
SCL2B
0-P24