Other Parts Discussed in Thread: CC2530
Tool/software: Code Composer Studio
Hello,
I am developing an AC dimmer switch with CC2652/CC1352.
The timer problem relate has been ask thousands here, i search across the forum but still not find a best solution.
I have try GPTimer26XX and Timer26XX driver with:
Power_setDependency(PowerCC26XX_XOSC_HF); Power_setConstraint(PowerCC26XX_SB_DISALLOW );
But those driver not product accurate timer (GPT and Timer driver), it may cause but timing for the stack. The best I found is standard timer in util_timer, use in sample application, but it not accurate enough, the level transition not smooth as require. For example 5% some time will not change anything in the output waveform (in oscilloscope) because the timer not change with that small time: it is about dimming 100 microseconds.
The AC dimmer is detect Zero cross by interrupt and control the output for the dimmer (high and low). It could not be use PWM because AC line could not be sync.
So i just use timer and PIN_setOutputValue to control the triac.
So anyone here develop a similar product and the what is the option?
I use latest SDK 4.10.