Just checked, sorry, I've pasted ENDIF at wrong place. It should look like this
and so on, for all LEDS and cases.Code:SOFTPWM: IF A=1 THEN HIGH LED1 ENDIF PAUSE 100 LOW LED1 PAUSE 100 GOTO SOFTPWM
I want to run this code in background of main task, so this is why I wanted to use interrupt. Seems like it is impossible?
Bookmarks