Hello Unregistered ,
Originally Posted by mohamedattia35 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 [email protected] [email protected] Doesn't look like PBP to me...or am I wrong again... At any rate, have you checked your PBP manual? There's an interesting note on page 202 that may help your situation.
Forum Rules
Bookmarks