PIC to PIC bit bang communication
Posted: Thu Dec 17, 2009 11:51 am
Good day all. I have a project where on my board I have to PIC 18F2680 running at 20Mhz and 12F683 running a 8Mhz.
Using the example posted on the learning center I am trying to bit bang RS232 between the 2 devices. I have done this before using 18F2680 running at 20Mhz and 16F690 running at 19.6Mhz with great success. I tried to communicate at 2400bps then 300 bps. The values I am sending are 0x01 to 03. I'm only communicating in one direction, 18F2680 to 12F683. Based on some test I have done using an LED, and an If block with "if dataRX is less then 255" I know that data is being receive. But response to "if dataRX is 0x01" produces no results. Is there something in particular that I might be missing when trying to link these 2 devices together. Note I am using the same bit time for both.
Ondra
Using the example posted on the learning center I am trying to bit bang RS232 between the 2 devices. I have done this before using 18F2680 running at 20Mhz and 16F690 running at 19.6Mhz with great success. I tried to communicate at 2400bps then 300 bps. The values I am sending are 0x01 to 03. I'm only communicating in one direction, 18F2680 to 12F683. Based on some test I have done using an LED, and an If block with "if dataRX is less then 255" I know that data is being receive. But response to "if dataRX is 0x01" produces no results. Is there something in particular that I might be missing when trying to link these 2 devices together. Note I am using the same bit time for both.
Ondra