Timer on 28X2 and Timing on 18X??

greencardigan

Senior Member
Hello :)

On a 28X2 I can use the timer overflow interupt to run a portion of code at set intervals.

Can I do something equivalent on an 18X without an external timing circuit?
 

kranenborg

Senior Member
Yes, you can, even very accurately with a watch crystal. Hippy found the way and answered the same question I had, see posts #10 and #13 in the following thread: http://www.picaxeforum.co.uk/showthread.php?t=7142

This question is coincidentally very closely related to the question I posed today on touch(16) and Timer1 use on a 18M2, because I want to do the same on that device while using the touch functionality. That requires Timer1 to be available.

/Jurjen
 
Last edited:

hippy

Ex-Staff (retired)
Perhaps by manipulating internal SFR you can get an indication when your interrupt code should run, perhaps even force the interrupt to run by setting an output signal which feeds into an interrupt pin, but otherwise, no.
 
Top