In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: The TX UART is not used by that project but could be used by another so I left it in place. You'll notice that each section of the ISR is very modular and can be pulled out if you desire. Since you're using a PDB, put a 10K pull-up on RA.1 and use open-true baud mode. And you only need to update the device when required -- the servo updates are handled internally, so refreshing more frequently that 20 milliseconds doesn't do anything for you. To use the controller as it's designed you'll need a byte for the digital outputs and an eight byte array for the servos; you should be able to send the values like this: [code] PAUSE 1 SEROUT Sio, Baud, [digOuts, STR servos\8] [/code] The initial pause ensures the device has seen the proper break between packets and can re-arm to receive the next. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=189837#m189934 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)