Freescale Semiconductor M68HC08 manual Chapter Software Design, Introduction

Models: M68HC08

1 72
Download 72 pages 22.12 Kb
Page 35
Image 35
Chapter 5

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-1shows 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

Dimmable Light Ballast with Power Factor Correction, Rev. 1

Freescale Semiconductor

35

Page 35
Image 35
Freescale Semiconductor M68HC08 manual Chapter Software Design, Introduction, Control Algorithm Description