Software Implementation
5.3.4.1 Fault Detection and Processing
The following application faults are detected by the software:
•
•
•Failure of the
•Zero current fault
•Ignition fault
•COP overflow
A zero current fault launches the faultISR routine when one of the tube currents is zero during the zero current checking interval in run mode for the specified time.
An ignition fault launches the faultISR routine when the lamps do not ignite within a specified number of attempts.
All these fault states are serviced by the following fault service routines:
•timovISR() — services interrupts from TIM
•faultISR() — services HRP fault interrupts and all other faults
The timovISR routine is launched when the COP counter overflows (this occurs when the correct input voltage is missing). The timovISR routine calls the faultISR routine (see Figure
The faultISR routine serves all fault states. It disables all interrupts, stops PWM, HRP, TIM, CM (see the flow chart in Figure
Dimmable Light Ballast with Power Factor Correction, Rev. 1
Freescale Semiconductor | 45 |