STEVAL-ILL004V1 STMicroelectronics, STEVAL-ILL004V1 Datasheet - Page 28

no-image

STEVAL-ILL004V1

Manufacturer Part Number
STEVAL-ILL004V1
Description
EVAL BOARD PHASE CONTROL DIMMER
Manufacturer
STMicroelectronics
Type
Power Management: Lighting and Ballast Controllerr
Datasheets

Specifications of STEVAL-ILL004V1

Design Resources
STEVAL-ILL004V1 Gerber Files STEVAL-ILL004V1 Bill of Material STEVAL-ILL004V1 Schematic
Contents
Fully Assembled Evaluation Board
Product
Display Modules
For Use With/related Products
ST7FLITE09
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
497-5081
Software
6.3
28/38
synchronization phase, a new ZC event is set up and the software watchdog is enabled.
After a successful synchronization phase, the next ZC event is monitored during the
following ZC interrupt and checked to see if the ZC interval passes synchronization
parameters, or if the timer needs to be synchronized again. In this case, a new ZC interval is
measured and the new value is used to fire the TRIAC (via the 'Read from' button or
potentiometer). If the ZC interval is missed the first time, the program continues with the
synchronization and measured period from the previous ZC interrupt, in case the next ZC
interval is missed again the microcontroller is reset by the WDG.
Pwm_ar_timer_12bit.c module
The AT timer in OC mode is used as the main time counter. This interrupt is handled in the
AR_TIMER_OC_Interrupt routine in the pwm_ar_timer_12bit.c module. This routine
generates the 0.2 ms time base, push-button handling, TRIAC firing, WDG refresh, and
software counter incrementing (see
checks the state of the button driving pin every 0.2 ms.
If you switch OFF the dimmer using the push button, the microcontroller enters Halt mode,
reducing power consumption to the minimum. Switching back ON the light dimmer using the
the push button restarts the microcontroller to synchronize on the mains. It means that the
light dimmer starts again with the maximum power.
Figure 24. PORTS_0_interrupt routine flow diagram
Synchronize TIMER
Re-initialize all timer
PORTS_0_Interrupt
flags and counter
Synchronization
Set ZC Interval
RETURN
interrupt
for new
1 st
?
Yes
Set 50 Hz flag
No
Set ZC interval for 50 Hz or 60 Hz
Other
Synchronize TIMER
Synchronize TIMER
Hz
Measure Interval
MCU is already
with WDG ON
synchronized
or 60 Hz
interrupt
50 Hz
2 nd
1
?
?
Yes
50 Hz
Figure
Set 60 Hz flag
60 Hz
No
25). The button checking and handling routine
No
WDG resets MCU
Set MISSED flag
meaured interval
Use previously
ZC missed
1 st
?
Yes
No
Synchronize TIMER
Set normal run flags
(push-button or pot)
for firing theTRIAC
Measure Interval
Set ZC interval
Set ZC interval
New value
signal fits
RETURN
ZC
?
1
Yes
AI12214a
AN2263

Related parts for STEVAL-ILL004V1