Freescale Semiconductor M68HC08 Stereo System User Manual


 
Software Design
Dimmable Light Ballast with Power Factor Correction, Rev. 1
56 Freescale Semiconductor
for timing 1 ms intervals.
8. extern tU08 curr_T1;
This variable represents the current in tube 1.
9. extern tU08 curr_T2;
This variable represents the current in tube 2.
10. extern tU08 avg_CurrentT1T2;
This variable represents the average value of the tube currents.
11. extern tU16 mscounter;
This variable counts 1 ms intervals. It is incremented every 1 ms. It is used for application timing.
12. extern tU08 sineGain;
This variable represents the gain of the reference sine waveform.
13. extern tU16 timCntVal;
This variable represents an auxiliary variable used to get the timer value required to trim the
internal oscillator to the reference frequency (frequecy of mains * 2)
14. extern tU08 aux;
This variable represents an auxiliary variable.
15. extern tU16 ramp;
This variable represents an auxiliary variable (HRP frequency) for dimming by ramping.
16. extern tU08 currFltCNT;
This variable represents the number of fault states occurring during run mode.
17. extern tU08 currFltMS;
This variable counts the zero current checking interval. It is incremented every 1 ms.
18. extern tU08 ignitFltCNT;
This variable represents the number of fault states occurring during tube ignition.
19. extern tU16 integralPortionK_1;
This variable represents integral n-1 value of the PI PFC stage regulator.
20. extern tU08 proportionalGain;
This variable represents proportional gain of the PI PFC stage regulator.
21. extern tU08 integralGain;
This variable represents integral gain of the PI PFC stage regulator.
22. extern tU08 uCreq;
This variable represents the required value of the DC-bus voltage.
23. extern tU16 integralPortionK_1I;
This variable represents integral n-1 value of the PI ballast stage regulator.
24. extern tU08 proportionalGainI;
This variable represents proportional gain of the PI ballast stage regulator.
25. extern tU08 integralGainI;
This variable represents integral gain of the PI ballast stage regulator.
26. extern tU08 req_Cur;
This variable represents the actual value of the required dimming value.
27. extern tU08 time500us;
This variable counts PWM interrupts. The variable is incremented at every PWM interrupt. It is used
for timing 500
us intervals.