In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Funny, I'm just writing my July article for Nuts & Volts that shows how to do that. I do use a bit of a cheat: in a perfect world the serial line would only be pulled low by the SX for transmitting a "1" bit (assuming true mode) and left to the pull-up for a "0" bit, but this creates a lot of code trickery in the ISR that I don't want to be bothered with. Since only one device should be talking at a time, I just use a 220-ohm resistor inline with the serial pin to prevent pin death in the event of an electrical conflict. Since this is a slave device and does more listening than talking the program does check to make sure it's not in the middle of transmitting a byte before configuring the Sio line as an input so that it can receive one. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=191125#m191131 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)