In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ShadowsSoldier wrote: Thaks PJV, I fixed that part of my code. I have been trying to write the next stage. The problem is that in order to use an accounting method of interupts polled to toggle my bits I am forced to use comparison statements of multibyte counter variables. I can control the bursts no problem but the wait time in between bursts can approach 4ms which equates to some 300+ cycles and if using two transmitters 600+. My wait/burst ratio is huge. 4.0ms/75us. It would be nice to use the intertupts to trigger the bursts but it has to be conditional because there are more times NOT to trigger the bursts than to do so. I was using a retw table to write the pin HI/LO states based on interupt count and by controlling a program pointer to the state to be written. Now another way to do this would be to set the interrupt cycles at 4.0ms (RTCC hook) or some multiple instead of 12.5us and have the interrupt rountine toggle the transmitters on interrupt. Simply do the inverse. But then, in a way, I would be back where I started becuase I would have to hard code the burst because I would be using the interrupt cycles for the wait. I don't think you can program more than one interrupt can you?? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=107862#m108758 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)