Based on interrupt so jumps in out much more
Quote:
Originally Posted by
skimask
Code?
And maybe, maybe not. If your LCDs are slow and don't respond quick enough, then you might not be able to fit 10ms of display data inside of a 100Hz PWM loop without the code jumping out of the LCD portion, into the SSPWM portion, and back.
Although 10ms is the cycle duration still for software PWM of 64 steps it does enters the ISR at least 64 times in that 10ms. Correct me if I am wrong.
However that should not be much problem since it is interrupt based. What happens when all the PWM channels have the same duty cycle.
I had a different problem
Hi,
I once found that my LCD was spitting garbage and sometimes went blank. On inspection with the panel itself I found it would happen when a contactor picks up. My experiments.
1. LCD changed with a different brand --> Reduced frequency of the problem but still exist
2. LCD timing --> Reduced the missing display
3. Remove shielding from the LCD mounting --> Problem almost gone
4. Software measure taken:
Use the Flag to re-initialize and clear the LCD after contactor pick up/drop.
So what I mean to say is that in my case the LCD itself was picking up noise and not stable.
Darrel's SPWM - stop/start SPWM
Hi to all.
I never stop to thaks Darrel for he very useful SPWM.
Using it, I have found the necessity to stop and then later start or restart restart the SPWM having the same value for each SPWM channel.
During the stop period all the channels/pin should be set high or low a desidered.
Could you please suggest the best way to stop and start the SPWM.
Ciao
Leo