English
Language : 

S912XHZ512F1VAG Datasheet, PDF (85/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
2.3.6.6
Chapter 2 Port Integration Module (S12XHZPIMV1)
Port AD Polarity Select Register (PPSAD)
Module Base + 0x005B
7
R
PPSAD7
W
6
PPSAD6
5
PPSAD5
4
PPSAD4
3
PPSAD3
2
PPSAD2
1
PPSAD1
0
PPSAD0
Reset
0
0
0
0
0
0
0
0
Figure 2-24. Port AD Polarity Select Register (PPSAD)
Read: Anytime. Write: Anytime.
The Port AD Polarity Select 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 (PERADx = 1). The Port AD Polarity
Select Register is effective only when the corresponding Data Direction Register bit is set to 0 (input).
In pull-down mode (PPSADx = 1), a rising edge on a port AD pin sets the corresponding PIFADx bit. In
pull-up mode (PPSADx = 0), a falling edge on a port AD pin sets the corresponding PIFADx bit.
Table 2-18. PPSAD Field Descriptions
Field
Description
7:0
Polarity Select Port AD
PPSAD[7:0] 0 A pull-up device is connected to the associated port AD pin, and detects falling edge for interrupt generation.
1 A pull-down device is connected to the associated port AD pin, and detects rising edge for interrupt
generation.
2.3.6.7 Port AD Interrupt Enable Register (PIEAD)
Module Base + 0x005D
R
W
Reset
7
PIEAD7
0
6
PIEAD6
5
PIEAD5
4
PIEAD4
3
PIEAD3
2
PIEAD2
1
PIEAD1
0
0
0
0
0
0
Figure 2-25. Port AD Interrupt Enable Register (PIEAD)
0
PIEAD0
0
Read: Anytime. Write: Anytime.
This register disables or enables on a per pin basis the edge sensitive external interrupt associated with
port AD.
Table 2-19. PIEAD Field Descriptions
Field
Description
7:0
Interrupt Enable Port AD
PIEAD[7:0] 0 Interrupt is disabled (interrupt flag masked).
1 Interrupt is enabled.
MC9S12XHZ512 Data Sheet, Rev. 1.06
Freescale Semiconductor
85