Freescale Semiconductor M68HC08 Stereo System User Manual


 
Dimmable Light Ballast with Power Factor Correction, Rev. 1
Freescale Semiconductor 35
Chapter 5
Software Design
5.1 Introduction
This section describes software features and behavior of the software in all function modes. The software
is described in terms of:
Control Algorithm Description
Software Implementation
Detailed Software Description
Microcontroller Usage
Constant and Variable Definitions
5.2 Control Algorithm Description
The application performs dimmable light ballast for fluorescent lamp control and PFC control. It uses
microcontroller built-in peripherals.
Figure 5-1 shows the high level software block diagram for hysteresis
current control mode HW variation. Software block diagram for DCM HW variation is not placed because
diagram is very similar. As can be seen, the PFC Control and Light Ballast Control are separate routines.
Figure 5-1. Dimmable Light Ballast with Hysteresis PFC HW Variation — Software Block Diagram