James wrote: > Hi all, > I am still trying to get serial coms working with my 16F84. I have my > code compiling now, and am trying to get my BASIC Stamp II to send a > one byte message to the PIC. The PIC then toggles and LED (if the > message was received correctly) and sends back the same byte to the > stamp. > > Unfortunately it's not working! I can tell that the stamp is sending > the byte through as a logic probe on that port of the PIC show me. > > Question: Should I be connecting the Rx port of the PIC to VCC or GND? > What about the Tx port? > > I am still a big PIC newbie, and haven't ever had to do anything like > bit bashed serial coms before (BASIC Stamps make this easy) so would > appreciate any pointers. From what you say I think you need to put the data into the RxD line on the PIC (it's an input) and leave the TxD line open circuit (it's an output). A good way of checking serial comms is to use a "dumb" terminal program on your PC. You would need to use a MAX232 or similar to shift the voltage levels from +5V to +/-10V though. This will let you check that your basic stamp is outputting the data you are expecting and at the correct baud rate. Brent Brown Electronic Design Solutions 16 English Street Hamilton, New Zealand Ph/fax: +64 7 849 0069 Mobile/text: 025 334 069 eMail: brent.brown@clear.net.nz -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics