74
Chapter 2
Pin Functions
Preliminary User’s Manual U17566EE1V2UM00
2.4.5
Port group 1
Port group 1 is a 2-bit port group. In alternative mode, it comprises pins for the
following functions:
• I
2
C0 data/clock line (SDA0/SCL0)
Port group 1 includes the following pins:
Note
Alternative
input
functions SDA0 and SCL0 are provided on two pins each.
Thus you can select on which pin the alternative function should appear. If
alternative functions SDA0/SCL0 are used at P16/17 make sure to set also
PFSR0.PFSR04 = 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-24
Port group 1: pin functions and port types
Pin functions in different modes
Pin function
after reset
Port type
Port mode
(PMCnm = 0)
Alternative mode
(PMCnm = 1)
Output mode
(PMnm = 0)
Input mode
(PMnm = 1)
P16 (I/O)
SDA0
a
a)
In I
2
C function mode open drain emulation has to be enabled
(PODC1.PODC16 = 1 and PODC1.PODC17 = 1). Thus output function is enabled
automatically, although PMnm = 1.
SDA0
P16 (I)
M
P17 (I/O)
SCL0
a
SCL0
P17 (I)
M
Table 2-25
Port group 1: configuration registers
Register
Address
Initial
value
Used bits
PM1
FFFF F422
H
FF
H
PM17
PM16
X
X
X
X
X
X
PMC1
FFFF F442
H
00
H
PMC17
PMC16
X
X
X
X
X
X
P1
FFFF F402
H
00
H
P17
P16
X
X
X
X
X
X
PPR1
FFFF F3C2
H
00
H
PPR17
PPR16
X
X
X
X
X
X
PDSC1
FFFF F302
H
00
H
PDSC17
PDSC16
X
X
X
X
X
X
PICC1
FFFF F382
H
00
H
PICC17
PICC16
X
X
X
X
X
X
PODC1
FFFF F362
H
00
H
PODC17
PODC16
X
X
X
X
X
X
electronic components distributor