In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: Ok, I think that I can confirm that using TIMER1 TIMER is generating extra Interrupts and causing problems with the ISR Serial receive code. The little snippet of code above didn't seem to make any difference so either it was coded incorrectly or that isn't the right config bit to change to disable timer Interrupts. As a very temporary work around I did the following: To stop the PWM timer I used the following line instead of TIMER1 TIMER TIMER1 PWM, 1, dutyCycle Once I did that my program is behaving as I would expect and the ISR based serial code seems to receive everything sent to it perfectly! I really, really don't like my work around since it it sending out a tiny pulse to the H-Bridge all the time. Not enough to move the motor but wasting battery power all the same. It just isn't the right way to do it but at the moment it is the only thing I have that works. Help! Anyone have a better solution??? Can someone else using the ISR based Serial code on an SX48 try an experiment or two using the timers with PWM or trying the timer mode to confirm this behavior? There has got to be some way to shut off the PWM and put the timer truly back into the state it was before you start using the timers. Robert ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=251534#m251784 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)