connect two pic16f84
Hi, every one
I have a problem when I try to connect two PIC u controllers (PIC16F877) and (PIC16F84) by using serial communication.
I test each PIC separately and they work well with virtual PC terminal.
The serial communication settings are : Baud rate = 9600, 8 bit without parity.
Each u Controller separately send and receive data correctly to and from the virtual PC terminal.
I use these commands for send and receive data :
For send data : (PIC16F877)
---------------
declare Xtal = 20
SERout portB.2, 16468 , ["00" , 13]
SERout portB.2, 16468 , [DEC 11 , 13]
SERout portB.2, 16468 , [DEC 10 , 13]
For receive data : (PIC16F84
-----------------
declare Xtal = 4
dim serdata as byte
SERIN portB.2 , 16468 , [DEC serdata]
Can any one have an idea about this situation.
---------------------------------------------------
Thank you ...
Mohamed Attia
technical(at)tibatech.com
mohamedattia35(at)yahoo.com