Freescale Semiconductor M68HC08 manual Detailed Software Description, Software Design, Stop HRP

Models: M68HC08

1 72
Download 72 pages 22.12 Kb
Page 46
Image 46
Stop HRP

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

Page 46
Image 46
Freescale Semiconductor M68HC08 manual Detailed Software Description, 6.Flow Chart - timovISR and faultISR, Software Design