S12 Clock, Reset and Power Management Unit (S12CPMU)
7.3.2.15 Autonomous Periodical Interrupt Control Register (CPMUAPICTL)
The CPMUAPICTL register allows the configuration of the autonomous periodical interrupt features.
0x02F2
7
6
5
4
3
2
1
0
R
W
0
0
APICLK
APIES
APIEA
APIFE
APIE
APIF
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 7-18. Autonomous Periodical Interrupt Control Register (CPMUAPICTL)
Read: Anytime
Write: Anytime
Table 7-15. CPMUAPICTL Field Descriptions
Description
Field
7
Autonomous Periodical Interrupt Clock Select Bit — Selects the clock source for the API. Writable only if
APIFE = 0. APICLK cannot be changed if APIFE is set by the same write operation.
0 Autonomous periodical interrupt clock used as source.
APICLK
1 Bus Clock used as source.
4
Autonomous Periodical Interrupt External Select Bit — Selects the waveform at the external pin
API_EXTCLK as shown in Figure 7-19. See device level specification for connectivity of API_EXTCLK pin.
0 If APIEA and APIFE are set, at the external pin API_EXTCLK periodic high pulses are visible at the end of
every selected period with the size of half of the min period (APIR=0x0000 in Table 7-19).
1 If APIEA and APIFE are set, at the external pin API_EXTCLK a clock is visible with 2 times the selected API
Period.
APIES
3
Autonomous Periodical Interrupt External Access Enable Bit — If set, the waveform selected by bit APIES
can be accessed externally. See device level specification for connectivity.
0 Waveform selected by APIES can not be accessed externally.
APIEA
1 Waveform selected by APIES can be accessed externally, if APIFE is set.
2
Autonomous Periodical Interrupt Feature Enable Bit — Enables the API feature and starts the API timer
when set.
APIFE
0 Autonomous periodical interrupt is disabled.
1 Autonomous periodical interrupt is enabled and timer starts running.
1
Autonomous Periodical Interrupt Enable Bit
0 API interrupt request is disabled.
APIE
1 API interrupt will be requested whenever APIF is set.
0
Autonomous Periodical Interrupt Flag — APIF is set to 1 when the in the API configured time has elapsed.
APIF
This flag can only be cleared by writing a 1. Writing a 0 has no effect. If enabled (APIE = 1), APIF causes an
interrupt request.
0 API time-out has not yet occurred.
1 API time-out has occurred.
S12P-Family Reference Manual, Rev. 1.13
Freescale Semiconductor
223