Timing interrupts

Status
Not open for further replies.
Also you are clearing t every cycle.... Move t=0 to the upper half of the if else statement.

In fact do this
Code:
if t>= 10 then
   t=0
   toggle rled
endif
 
The attached program works on the simulator, also works on the bench with a flashing LED.

I got a bit mixed up with different TMRs etc Those PIC PDFs are complicated aren't they. I can't think how to memorise all the options!

Thanks for all of your patience and help.

Camerart.
 

Attachments

  • TIMER WORKING.bas
    1.5 KB · Views: 370
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…