----- Original Message ----- From: Hash To: Sent: Thursday, July 06, 2000 1:17 AM Subject: Receive serial data on a 16F84? Hello, I am having a problem trying to receive serial data on a 16F84. I have tried every piece of code i can find out there on that and my 16F877, and none of them work. I got one to almost work, but the data was still not quite right. All I am trying to do is read in one byte per second that is sent at a TTL level at 9600 baud (8N1). If anyone has some example code they know works for sure that shows the byte on portb perhaps for testing I would greatly appreciate it. Once the pic has this data all it has to do is examine the byte and send out a few pulses then watch for the byte again. Best Regards John -- 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 Hi John Square-1 has some example code that I just used to verify a circuit. It works fine but you must follow the given startup info. to the letter. go to http://www.sq-1.com then look under the software for the book PIC n' UP THE PACE. download the zip file for that book. Next you want to use the P2PSEND.ASM and P2PRCV.ASM files. compile and program chips send and receive. hookup as follows: Ra1 Sending PIC to Ra0 of Receiving PIC VSS Sending PIC to VSS of Receiving PIC Ra2 Sending PIC pulled up with switch to pull pin to ground Ra2 Receiving PIC pulled up with switch to pull pin to ground Rb7-0 Any pin or all through 680Ohm Res. to LED to ground To run program Turn on Sending PIC first with Ra2 switch off (Pin NOT pulled low) Turn on Receiving PIC second with Ra2 switch off (Pin NOT pulled low) Switch Receiving PIC Ra2 switch so pin is pulled low Switch Send PIC Ra2 switch so pin is pulled low I use this to test with using a 16f84 and 10mhz osc. By the way these books are great to get started with. Bill N8HKI -- 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