In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: Theoretically, all you would need to do is change the Baud constant at the beginning of the program (see SERIN and SEROUT in the SX/B documentation). However, in practice, a higher baud rate's timing will prob. be thrown off by the ISR, esp. since this program wants to receive, what, 20 bytes, if you include the address header and the 16 bytes of PWM targets. If it were me, I would use an ISR based serial routine, rather than SX/B's built-in serial function. There are numerous examples; see esp. Nuts/Volts 143, 144 for examples of ISR serial routines. That said, you will then need to (possibly) make some adjustments to the PWM ISR routine -- the ISR will run much faster (more often) so that it can handle a higher-baud serial function. At 50mhz you should be able to do bauds up to the 100k range, presuming you still have the overhead in the ISR for the PWM. If you go really high-baud, and you are not using all 16 channels of PWM, you might consider cutting some of the channel code out of the ISR. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=256460#m257139 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)