Manuals
/
Freescale Semiconductor
/
Home Audio
/
Stereo System
Freescale Semiconductor
M68HC08 manual Freescale Semiconductor
Models:
M68HC08
1
68
72
72
Download
72 pages
22.12 Kb
65
66
67
68
69
70
71
72
<
>
Specifications
Dimmable Light Ballast Characteristics
Parts list
Appendix A. Schematics and Part List
Set 1ms flag and reset 1ms counter
Initialization Setup
MCU PWM PWM1 FAULT PIN
Timer Interface Module TIM
Signal
Phase Shift Synchronization
Page 68
Image 68
Dimmable Light Ballast with Power Factor Correction, Rev. 1
68
Freescale Semiconductor
Page 67
Page 69
Page 68
Image 68
Page 67
Page 69
Contents
DRM067 Rev. 1 12/2005
Designer Reference Manual
M68HC08 Microcontrollers
Page
Designer Reference Manual
Draft 2 for Review
Freescale Semiconductor
Contents Chapter Introduction
Chapter Control Theory
Chapter Reference Design
Chapter Hardware Design
Chapter Demo Setup
Appendix A. Schematics and Part List
Chapter Software Design
Appendix B. References
1.1 Introduction
1.2 Benefits of this Solution
Chapter Introduction
1.3 The MC68HC908LB8 Microcontroller
7-bitkeyboard interrupt
Introduction
Freescale Semiconductor
Chapter Control Theory
2.1 Introduction
2.1.1 Fluorescent Lamp Control Theory
2.1.2 Fluorescent Lamp Operation
Gas filling mixture
2.1.3 Controlling the Fluorescent Lamp
Freescale Semiconductor
Freescale Semiconductor
2.2PFC Control Theory
2.2.1 Introduction
Freescale Semiconductor
Freescale Semiconductor
MCU PWM PWM1 FAULT PIN
Control Theory
DC Bus Voltage
Zero
2.2.4 Concept Summary
Figure 2-8.Generated Input Current Waveform
Control Theory
Freescale Semiconductor
3.1 Application Outline
3.2 Dimmable Light Ballast Characteristics
Chapter Reference Design
3.3 Application Description
Table 3-1.Light Ballast Characteristics
3.3.2 Power Factor Correction
3.3.1 Light Ballast Control
CONTROL BOARD
MC68HC908LB8
3.3.3 Protection Features
3.4 Software Specification
3.5 Hardware Specification
4.2 System Modules
Chapter Hardware Design
4.1 Hardware Implementation
4.2.1 Input and PFC
Hardware Design
Figure 4-3.Dimmable Light Ballast - Input and PFC
4.2.2 Inverter
Freescale Semiconductor
Figure 4-4.Dimmable Light Ballast - Inverter
System Modules
Freescale Semiconductor
HALF BRIDGE
4.2.3 Microcontroller
Signal
System Modules
Pin number
TOP BOT Comp Comp Out Zero Detect
Signal
Table 4-2.J2 Interface Header
Hardware Design
Pin number
Table 4-3.Supplied Voltages
4.2.4 Power Supply
Figure 4-6.Dimmable Light Ballast - Power Supply
Hardware Design
Freescale Semiconductor
5.2 Control Algorithm Description
Chapter Software Design
5.1 Introduction
5.2.1 Power Factor Correction Control
5.2.1.2 Phase Shift Synchronization
5.2.1.4 Generation of Output PFC Control SIgnal
5.2.1.1 DC-busVoltage Control
5.2.2.2 Luminance Level Control Tube Run Mode
5.2.2 Light Ballast Control
5.2.2.1 Tube Start Mode
q = itADmin - A ⋅ ek ⋅ ADmin
ireq = A ⋅ ek ⋅ ireqAD + q
rounditmin ⋅ ADmax ⁄ imax
rounditmax ⋅ ADmax ⁄ imax
5.3.1 Initialization Setup
5.3 Software Implementation
5.3.1.1 PWM Setup
5.3.1.2 HRP Setup
PWM Frequency =
BusFrequency
Hz Hz
5.3.2 Main Program Loop
Freescale Semiconductor
5.3.3 Synchronization Interrupt Routine
5.3.4 Sine Wave Generation Interrupt Routine
Set 1ms flag and reset 1ms counter
Software Design
interrupt void pwmISRvoid
Read new PWM value from table * sineGain
5.3.4.1 Fault Detection and Processing
5.4 Detailed Software Description
Figure 5-6.Flow Chart - timovISR and faultISR
Software Design
Stop HRP
Figure 5-7.Flow Chart - Main Flow, Part
Detailed Software Description
Freescale Semiconductor
Figure 5-8.Flow Chart - Main Flow, Part
Software Design
Freescale Semiconductor
Figure 5-9.Flow Chart - Main Flow, Part
Detailed Software Description
Freescale Semiconductor
Figure 5-10.Flow Chart - Main Flow, Part
Software Design
5.5.1.1 High Resolution PWM HRP
5.5.1.4 Timer Interface Module TIM
5.5 Microcontroller Usage
5.5.1 Microcontroller Peripheral Usage
5.6 Definitions of Constants and Variables
5.5.3 I/O Usage
Software Design
I/O pin
5.6.1 System Setup Definitions
defines the minimum HRP frequency in kHz
5.6.2 System Constants and Variables
Page
Chapter Demo Setup
6.1 Hardware Setup
6.2 Software Setup
6.2.1 Required Software Tools
6.2.3 Executing the Application
6.2.4 Project Files
\prm\P&E FCS linker.prm, linker program file
\Sources\pi controller.c, PI regulators file
Appendix A. Schematics and Part List
A.1 Schematics
2.7mH
PFC Current Sense
Comp
PFC Gate
PFC Current Sense
Comp
PFC Gate
Zero Detect
Figure A-3.Inverter
DCB TOP BOT
O1 O2 O3 O4 O5 O6 O7 O8
COM LO
TOP BOT Comp - Comp Out Zero Detect
Serial Data
Serial Data DCB Divider Tube Current Tube Current
Tube Voltage difference
GND
Serial Data5
Serial Data DCB Divider Tube Current Tube Current
Tube Voltage difference
Figure A-6.Power supply
A.2 Parts List
DESIGNATORS
QUANTITY
DESCRIPTION
DESIGNATORS
QUANTITY
DESCRIPTION
MANUFACTURER
Freescale Semiconductor
Appendix B. References
Freescale Semiconductor
Page
How to Reach Us
Home Page
E-mail
USA/Europe or Locations Not Listed