75
Pin Functions
Chapter 2
Preliminary User’s Manual U17566EE1V2UM00
2.4.6
Port group 2
Port group 2 is an 8-bit port group. In alternative mode, it comprises pins for
the following functions:
• Timer TMG0 to TMG1 channels (TIG02 to TIG04, TIG11 to TIG14)
• I
2
C1 data/clock line (SDA1, SCL1)
• LCD controller segment signal output (SEG0 to SEG7) (µPD70(F)3420,
µPD70(F)3421, µPD70(F)3422, µPD70F3423 only)
Port group 2 includes the following pins:
Note
Alternative
input
functions of I
2
C1 (SDA1, SCL1) are provided on two pins
each. Thus you can select on which pin the alternative function should appear.
If alternative functions SDA1/SCL1 are used at P20/21 make sure to set also
PFSR0.PFSR05 = 0.
Refer to
“Alternative input selection“ on page 50
.
Access
All 8-bit registers can be accessed in 8-bit or 1-bit units.
Table 2-26
Port group 2: pin functions and port types
Pin functions in different modes
Pin function
after reset
Port type
Port mode
(PMCnm = 0)
Alternative mode
(PMCnm = 1)
LCD mode
(PLCDCnm = 1)
a
Output mode
(PMnm = 0)
Input mode
(PMnm = 1)
P20 (I/O)
SDA1
b
SDA1
SEG0
a
P20 (I)
M
P21 (I/O)
SCL1
b
TIG02/SCL1
SEG1
a
P21 (I)
M
P22 (I/O)
–
TIG03
SEG2
a
P22 (I)
M
P23 (I/O)
–
TIG04
SEG3
a
P23 (I)
M
P24 (I/O)
–
TIG11
SEG4
a
P24 (I)
M
P25 (I/O)
–
TIG12
SEG5
a
P25 (I)
M
P26 (I/O)
–
TIG13
SEG6
a
P26 (I)
M
P27 (I/O)
–
TIG14
SEG7
a
P27 (I)
M
a)
µPD70(F)3420, µPD70(F)3421, µPD70(F)3422, µPD70F3423 only
b)
In I
2
C function mode open drain emulation has to be enabled (PODC2.PODC20 = 1 and
PODC2.PODC21 = 1). Thus output function is enabled automatically, although PMnm = 1.
Table 2-27
Port group 2: Configuration registers
Register
Address
Initial
value
Used bits
PM2
FFFF F424
H
FF
H
PM27
PM26
PM25
PM24
PM23
PM22
PM21
PM20
PMC2
FFFF F444
H
00
H
PMC27
PMC26
PMC25
PMC24
PMC23
PMC22
PMC21
PMC20
PLCDC2
a
a)
µPD70(F)3420, µPD70(F)3421, µPD70(F)3422, µPD70F3423 only
FFFF F344
H
00
H
PLCDC27
PLCDC26
PLCDC25
PLCDC24
PLCDC23
PLCDC22
PLCDC21
PLCDC20
P2
FFFF F404
H
00
H
P27
P26
P25
P24
P23
P22
P21
P20
PPR2
FFFF F3C4
H
00
H
PPR27
PPR26
PPR25
PPR24
PPR23
PPR22
PPR21
PPR20
PDSC2
FFFF F304
H
00
H
PDSC27
PDSC26
PDSC25
PDSC24
PDSC23
PDSC22
PDSC21
PDSC20
PICC2
FFFF F384
H
00
H
PICC27
PICC26
PICC25
PICC24
PICC23
PICC22
PICC21
PICC20
PODC2
FFFF F364
H
00
H
PODC27
PODC26
PODC25
PODC24
PODC23
PODC22
PODC21
PODC20
electronic components distributor