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..
(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.