Software Design
interrupt void timovISR(void) |
interrupt void faultISR(void) |
Disable all interrupts |
Stop timer and enable timer overflow interrupts |
Stop HRP |
Disconnect internal comparator from pins |
and powered off |
Set Vout(PTB7) pin as an output and set it to log. 1 |
Stop PWM |
1 |
Blink fault diode |
Figure 5-6. Flow Chart — timovISR and faultISR
5.4 Detailed Software Description
This section provides a detailed graphical description of the software. It explains each particular part of the application software in detail.
Dimmable Light Ballast with Power Factor Correction, Rev. 1
46 | Freescale Semiconductor |