In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Marcus, I usually start with an interrupt that is 2x the baud rate. That would be 62500. And you 1/60th would be 1042 of those interrupts so you'll need a counter for that. You'll need a variable to keep track of what bit you are sending and receiving. Sending is easier than receiving. Sending you'll just put the next bit on the pin every 2nd interrupt. Receiving you'll wait until you get an idle state, then wait to get the start bit (always will be opposite of idle), then wait "3" interrupts to sample the first bit, then 2 interrupts afterwards to get the rest of the bits. If I get some time I'll write up some code for ya. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=151101#m153548 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)