Interrupt on special function variable flags please.

tarzan

Senior Member
Congratulations Rev Ed on an exciting new stage of development for the Picaxe range of microprocessors. My interest has been invigorated and now I plan on learning new skills and techniques for programming these new microprocessors.

I do feel you’ve missed one opportunity. Is it possible to have an interrupt on the special function variable flags? So that instead of polling we could use an interrupt to control program flow.

In this example on the tenth external pulse on input 0 an interrupt would occur.

<code><pre><font size=2 face='Courier'>settimer count 65525 &#8216;on tenth pulse set overflow flag

setint flags,%10000000 &#8216;interrupt on flag7 toflag (timer overflow flag)

interrupt:
let toflag = 0 &#8216;reset toflag </font></pre></code>

Thank you for the exciting times ahead.

Dan aka Tarzan
 
Top