Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Jan 24, 2014 #21 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
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
camerart Well-Known Member Jan 24, 2014 #22 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
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.