In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: If you subscribe to SERVO magazine you'll see that there is an article in this months issue (April 2008) which uses the SX48 Timer to do control a motor. The Serial routines and encoder routines are in the ISR. The 16-bit timers seem to work great but I haven't seen a lot of other people using them in other projects. I expect that once people try them they will start using them a lot more. One issue that I had when using them is how to turn them off when I was done. Bean suggested using TIMERx TIMER to change the timer to timer more. This worked but caused another issue of extra interrupts being generated from the timer mode. To get around that I just had to set a couple of the option bits to mask off any interrupts from the timer mode to prevent them from coming through. Once that was done it worked out great! Robert ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=259867#m259898 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)