In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: You need to set the INTERRUPT rate parameter based on timing needs of your program. For example, I have an intervalometer (time-lapse controller) that uses an interrupt rate of 80_000 so that I can use the ISR to modulate an IR LED at 40kHz. I also need a one-second timer to run in the ISR and this was built, manually, using assembly and three bytes (you can't count to 80_000 with a word). The point is that you can do what you want to do -- you just need to think it through and find the lowest common denominator. Remember, the faster your INTERRUPT rate, the less time you have between interrupts which means you limit the amount of code you can place in the ISR. My suggestion is that you make the ISR rate as low as possible to do what you want to do. And avoid tasks if possible as they add a GIGANTIC amount of [necessary] overhead to the ISR. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=363831#m364711 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)