Freescale Semiconductor Demonstration Board for Freescale MC9S12XHY256 Microcontroller DEMO9S12XHY256 DEMO9S12XHY256 Manuale Utente

Codici prodotto
DEMO9S12XHY256
Pagina di 924
Port Integration Module (S12XHYPIMV1)
MC9S12XHY-Family Reference Manual, Rev. 1.04
114
Freescale Semiconductor
2.3.44
Port P Polarity Select Register (PPSP)
2.3.45
Port P Routing Register High (PTPRRH)
Read: Anytime.
1
Read: Anytime.
Write: Anytime.
Table 2-34. PERP Register Field Descriptions
Field
Description
7-0
PERP
Port P pull device enable—Enable pull devices on input pins
These bits configure whether a pull device is activated, if the associated pin is used as an input. This bit has no effect
if the pin is used as an output. Out of reset all pull device is enabled.
1 Pull device enabled.
0 Pull device disabled.
 Address 0x025D
Access: User read/write
1
1
Read: Anytime.
Write: Anytime.
7
6
5
4
3
2
1
0
R
PPSP7
PPSP6
PPSP5
PPSP4
PPSP3
PPSP2
PPSP1
PPSP0
W
Reset
1
1
1
1
1
1
1
1
Figure 2-41. Port P Polarity Select Register (PPSP)
Table 2-35. PPSP Register Field Descriptions
Field
Description
7-0
PPSP
Port P pull device select—Determine pull device polarity on input pins
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.
1 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.
0 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.
 Address 0x025E
Access: User read/write
1
1
Read: Anytime.
Write: Anytime.
7
6
5
4
3
2
1
0
R
PTPRRH7
PTPRRH6
PTPRRH5
PTPRRH4
PTPRRH3
PTPRRH2
PTPRRH1
PTPRRH0
W
Reset
0
0
0
0
0
0
0
0
Figure 2-42. Port P Routing Register High (PTPRRH)