Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - serial PIC master-slave

(you are viewing a thread; or go back to list of threads)

serial PIC master-slave (by adli)
i tried a program which send a data/character from a master PIC to a slave PIC but it didnt work at all..i used PIC16F877A (20MHz) for both n set the baud rate at 9600..the cable connected from Tx (master,pin25) to Rx (slave,pin26)..i need help for this,tq..
Tue Dec 6 2011, 07:34:01, download attachment PIC master_slave.rar
(no subject) (by David R)
The problem is the fact you are sending '1' then /r/n this means that "char" only = '1' for about 10ms then it does not ='1' any more because A different char was received.

you also don't need line 5 at the slave end or R1 because if char is '4' then it is not '1','2'or'3' anyway.

try delay turn off say 500ms on the outputs of the slave so you can see the pulse.
David.
Tue Dec 6 2011, 15:32:47
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):