English
Language : 

MC9S08SH32 Datasheet, PDF (84/328 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 6 Parallel Input/Output Control
6.6.1.6 Port A Interrupt Status and Control Register (PTASC)
7
6
5
4
3
2
1
0
R
0
0
0
0
PTAIF
0
PTAIE
PTAMOD
W
PTAACK
Reset:
0
0
0
0
0
0
0
0
Figure 6-8. Port A Interrupt Status and Control Register (PTASC)
Table 6-7. PTASC Register Field Descriptions
Field
Description
3
PTAIF
2
PTAACK
1
PTAIE
0
PTAMOD
Port A Interrupt Flag — PTAIF indicates when a port A interrupt is detected. Writes have no effect on PTAIF.
0 No port A interrupt detected.
1 Port A interrupt detected.
Port A Interrupt Acknowledge — Writing a 1 to PTAACK is part of the flag clearing mechanism. PTAACK
always reads as 0.
Port A Interrupt Enable — PTAIE determines whether a port A interrupt is enabled.
0 Port A interrupt request not enabled.
1 Port A interrupt request enabled.
Port A Detection Mode — PTAMOD (along with the PTAES bits) controls the detection mode of the port A
interrupt pins.
0 Port A pins detect edges only.
1 Port A pins detect both edges and levels.
6.6.1.7 Port A Interrupt Pin Select Register (PTAPS)
7
R
0
W
Reset:
0
6
5
4
3
2
1
0
0
0
PTAPS3
PTAPS2
PTAPS1
0
0
0
0
0
0
Figure 6-9. Port A Interrupt Pin Select Register (PTAPS)
Table 6-8. PTAPS Register Field Descriptions
0
PTAPS0
0
Field
Description
3:0
Port A Interrupt Pin Selects — Each of the PTAPSn bits enable the corresponding port A interrupt pin.
PTAPS[3:0] 0 Pin not enabled as interrupt.
1 Pin enabled as interrupt.
MC9S08SH32 Series Data Sheet, Rev. 2
84
Freescale Semiconductor
PRELIMINARY