In your receiver, if that is all the code you have, when you test a bit and it is high, you're going to skip right over the "GOTO" statement and start executing whatever is in memory past that point. If it is a new part, or an erased part, it will probably execute "NOP's". This may be part of your problem, but it's really difficult to say without all of the code shown so we can see your logic. Regards, Jim > Hello, > > I try to connect to two pics with two wires (Ground and Data). I'm > sending ASCII codes and the receiver has to diplay the text on a LCD. > It is NOT working. The receiver waits for the startbit (5V) and the > sender is sending all the bits, but the pic16f818 is not passing the > code > back btfss Portb,dataIn > goto back. > I have measured with my scope the signal on pin 10 (portB - 4) and that > is okay. > > Is there some special on connecting two pics which I forget?? > > ; pic12f675/sender > ; GPIO1 = output dataOut pin 6 > #define dataOut gpio,1 > ; code: > bcf dataOut > call delaybit ; delay 2 bits / 2millisec > call delaybit ; > bsf dataOut ; Startbit high > call delaybit ; > bcf dataOut ; bit low > ++++++++++++++++++++++++++++++++++++++++ > ; pic16F818/receiver > ; B4 - DataIn input > dataIn equ 4 > > back btfss Portb,dataIn ; read start bit > goto back > > > > met vriendelijke groeten, > Chris Burger > Aalden (Dr)/NL > +++++++++++++++ > ac.burger@hccnet.nl > +++++++++++++++ > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist