In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Kingneb, Instead of, "Lets say I have data coming from an external source, such as a Parallal port or dip switches," why not just say [b]exactly[/b] what you want to hook up to the RA port and then see if people can help you. Waving your hands around the problem isn't making it any clearer for those trying to assist you. If you have a parallel port, then provide details such as : What the device is that actually has the port in question. Is it a PC? An embedded processor? What handshake mechanism there is to let the SX know that data is ready and that a nibble has been retrieved. If it's not a parallel port, then don't mention parallel ports at all. If it's a DIP switch, then say it's a DIP switch. In that case, you still need to tell folks what sort of handshake or sync mechanism there is to let the SX know that data is ready. If there is no mechanism, then all you are trying to do is read an 8 bit DIP switch with a 4 bit port. In that case you're going to need some external hardware to assist. Period. There is no magic to getting a four bit port to read an eight bit DIP swtich - it's just a matter of buffering the data and presenting it as a pair of nibbles, but you stil need an extra bit or two to load the buffer and switch between nibbles. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=91478#m91541 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)