|
MC9S12P128 Datasheet, PDF (242/564 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers | |||
|
◁ |
S12 Clock, Reset and Power Management Unit (S12CPMU) Block Description
A write to the CPMURTI register restarts the RTI time-out period.
7.6.1.2 PLL Lock Interrupt
The S12CPMU generates a PLL Lock interrupt when the lock condition (LOCK status bit) of the PLL
changes, either from a locked state to an unlocked state or vice versa. Lock interrupts are locally disabled
by setting the LOCKIE bit to zero. The PLL Lock interrupt ï¬ag (LOCKIF) is set to1 when the lock
condition has changed, and is cleared to 0 by writing a 1 to the LOCKIF bit.
7.6.1.3 Oscillator Status Interrupt
The Oscillator Filter has 2 different tasks:
1. It ï¬lters spikes.
2. It qualiï¬es the oscillation.
When the OSCE bit is 0, then UPOSC stays 0. When OSCEN=1 and OSCFILT = 0, then the ï¬lter is
transparent and no spikes are ï¬ltered. The UPOSC bit is then set after the LOCK bit is set.
Upon detection of a status change (UPOSC), that is either a unqualiï¬ed oscillation becomes qualiï¬ed or
vice versa the OSCIF ï¬ag is set. Going into full stop mode or disabling the oscillator can also cause a status
change of UPOSC.
Also, since the oscillator ï¬lter is based on the PLL clock, any change in PLL conï¬guration or any other
event which causes the PLL lock status to be cleared leads to a loss of the oscillator status information as
well (UPOSC=0).
Oscillator status change interrupts are locally enabled with the OSCIE bit.
NOTE
Losing the oscillator status (UPOSC=0) affects the clock conï¬guration of
the system1. This needs to be dealt with in application software.
7.6.1.4 Low-Voltage Interrupt (LVI)
In FPM the input voltage VDDA is monitored. Whenever VDDA drops below level VLVIA, the status bit
LVDS is set to 1. On the other hand, LVDS is reset to 0 when VDDA rises above level VLVID. An interrupt,
indicated by ï¬ag LVIF = 1, is triggered by any change of the status bit LVDS if interrupt enable bit LVIE
= 1.
7.6.1.5 HTI - High Temperature Interrupt
In FPM the junction temperature TJ is monitored. Whenever TJ exceeds level THTIA the status bit HTDS
is set to 1. Vice versa, HTDS is reset to 0 when TJ get below level THTID. An interrupt, indicated by ï¬ag
HTIF = 1, is triggered by any change of the status bit HTDS, if interrupt enable bit HTIE = 1.
1. For details please refer to â7.4.6 System Clock Conï¬gurationsâ
S12P-Family Reference Manual, Rev. 1.12
242
Freescale Semiconductor
|
▷ |