Chapter 2 Port Integration Module (PIM9C32) Block Description
Freescale Semiconductor
MC9S12C-Family / MC9S12GC-Family
95
Rev 01.24
2.3.2.4.5
Port P Pull Device Enable Register (PERP)
Read: Anytime.
Write: Anytime.
2.3.2.4.6
Port P Polarity Select Register (PPSP)
Read: Anytime.
Write: Anytime.
Module Base + 0x001C
7
6
5
4
3
2
1
0
R
PERP7
PERP6
PERP5
PERP4
PERP3
PERP2
PERP1
PERP0
W
Reset
0
0
0
0
0
0
0
0
Figure 2-28. Port P Pull Device Enable Register (PERP)
Table 2-24. PERP Field Descriptions
Field
Description
7–0
PERP[7:0]
Pull Device Enable Port P
— This register configures whether a pull-up or a pull-down device is activated, if the
port is used as input. This bit has no effect if the port is used as output. Out of reset no pull device is enabled.
0 Pull-up or pull-down device is disabled.
1 Either a pull-up or pull-down device is enabled.
Module Base + 0x001D
7
6
5
4
3
2
1
0
R
PPSP7
PPSP6
PPSP5
PPSP4
PPSP3
PPSP2
PPSP1
PPSP0
W
Reset
0
0
0
0
0
0
0
0
Figure 2-29. Port P Polarity Select Register (PPSP)
Table 2-25. PPSP Field Descriptions
Field
Description
7–0
PPSP[7:0]
Pull Select Port P
— This register serves a dual purpose by selecting the polarity of the active interrupt edge
as well as selecting a pull-up or pull-down device if enabled.
0 Falling edge on the associated port P pin sets the associated flag bit in the PIFP register.A pull-up device is
connected to the associated port P pin, if enabled by the associated bit in register PERP and if the port is used
as input.
1 Rising edge on the associated port P pin sets the associated flag bit in the PIFP register.A pull-down device
is connected to the associated port P pin, if enabled by the associated bit in register PERP and if the port is
used as input.
Summary of Contents for MC9S12C Family
Page 689: ......