You may need to limit the decrement counter so that it never goes below 0
CheersCode:If DutyVar3 > 0 then DutyVar3 = DutyVar3 -1 else DutyVar3 = 0 endif
Barry
VK2XBP
You may need to limit the decrement counter so that it never goes below 0
CheersCode:If DutyVar3 > 0 then DutyVar3 = DutyVar3 -1 else DutyVar3 = 0 endif
Barry
VK2XBP
That was it. I should have learned by now to go over my loop code in more detail.
Any ideas on combining SPWM and blinking LEDs?
Bookmarks