English
Language : 

MC9S12KG128 Datasheet, PDF (169/600 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 4 Port Integration Module (PIM9KG128V1)
4.3.6.5 Port J Pull Device Enable Register (PERJ)
Module Base + 0x002C
7
6
5
4
3
2
R
0
0
0
0
PERJ7
PERJ6
W
Reset
1
1
—
—
—
—
= Unimplemented or Reserved
Figure 4-43. Port J Pull Device Enable Register (PERJ)
Read: Anytime. Write: Anytime.
1
PERJ1
1
0
PERJ0
1
This register configures whether a pull-up or a pull-down device is activated, if the port is used as input or
as wired-OR output. This bit has no effect if the port is used as push-pull output. Out of reset a pull-up
device is enabled.
Table 4-38. PERJ Field Descriptions
Field
Description
7, 6, 1, 0 Pull Device Enable Port J
PERJ[7:6] 0 Pull-up or pull-down device is disabled.
PERJ[1:0] 1 Either a pull-up or pull-down device is enabled.
4.3.6.6 Port J Polarity Select Register (PPSJ)
Module Base + 0x002D
7
6
5
4
3
2
R
0
0
0
0
PPSJ7
PPSJ6
W
Reset
0
0
—
—
—
—
= Unimplemented or Reserved
Figure 4-44. Port J Polarity Select Register (PPSJ)
Read: Anytime. Write: Anytime.
1
PPSJ1
0
0
PPSJ0
0
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.
Table 4-39. PPSJ Field Descriptions
Field
Description
7, 6, 1, 0
PPSJ[7:6]
PPSJ[1:0]
Polarity Select Port J
0 Falling edge on the associated port J pin sets the associated flag bit in the PIFJ register. A pull-up device is
connected to the associated port J pin, if enabled by the associated bit in register PERJ and if the port is used
as general purpose input or as IIC port.
1 Rising edge on the associated port J pin sets the associated flag bit in the PIFJ register. A pull-down device
is connected to the associated port J pin, if enabled by the associated bit in register PERJ and if the port is
used as input.
MC9S12KG128 Data Sheet, Rev. 1.15
Freescale Semiconductor
169