In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: The project uses an 8x8 LED matrix that is multiplexed, hence the use of the ISR (yes, I could have done without it, but then I would have need to pad the code to get fixed-rate display refreshing -- the ISR was a better call IMO). As the ISR was in place, I made the decision to put the LFSR code into it; for other programs I would just create a standard function. Since I do in fact have an ISR, and it is conveniently running once each millisecond, I also update a timer variable that can be used for creating known delays (as PAUSE is adversely affected by the ISR). And my ISR does not run the same number of cycles on every pass so I am not able to use the EffectiveHertz option of FREQ which would have enabled the use of PAUSE. Your RTCC value idea is a novel one for programs that are not enabling periodic interrupts that reload the RTCC with a value other than zero. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=167121#m167409 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)