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