In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Have a look at the program I've attached; it will get you there. It's not as easy as you want it to be, but it's not that bad if you'll just take a few minutes to study it and learn from what I've done (which I, of course, learned from others). In the program I've attached the foreground blinking is not affected by the background blinking when activated. Notes: A. Don't post your full listings; attach them (posting just takes a lot of space and hoses up the formatting) B. If you're going to use an interrupt, there's no getting around the fact that time-based functions like PAUSE will get screwed up -- don't use them (recode them) C. When possible, set you interurrupt rate to a convenient value; if you have to divide down from that, no problem (it's easy) D. Get used to enabling pull-ups on unused pins; this will help keep current consumption down E. I've adjusted the order of times in my programming template to allow for slightly-longer ISR code before pushing the jump table passed the half-page boundary ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=291549#m291566 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)