I have a 16F628A ired xmtr/rcvr pair that works just fine on the breadboard, as long as I keep a steady 5volt on my xmtr.
I'm using a steady 5v from power supply on the rcvr and a seperate 5v battery on the xmtr.
I have 8 inputs on the xmtr PIC pulled to ground through 10k's and a logic high on the input(s) will give the same in my SEROUT data.
Now, like I say, if the xmtr is always tied to Vdd and I simply take an input high, than I see a coresponding LED light on the receiver's PORTB. BUT....when I take both the Vdd and the same input pin high together...the LED will latch on and stay on even after I've unpowered the PIC and input pin.
Of course, I'd like to "power up" the PIC when I use the transmitter as it will be battery operated.
I have the WDT and Brown out disabled on both PICs.
I'm puzzled because on my rcvr code I have.....
SERIN PORTA.0,T1200,50,NONE,[QUALA,QUALB],DAT
IF DAT.0 = 1 THEN
PORTB.0 = 1
ELSE
PORTB.0 = 0
ENDIF
(REPEATS FOR OTHER 7 BITS)
GOTO START
NONE:
DAT = 0
PORTB = 0
GOTO START
So, if there is no serial data (battery off on xmtr) then it will jump to NONE:
which should turn off PORTB.....right?
Or am I doing something wrong?
Like I say.....the LED will stay latched on.
THANKS VERY MUCH for your help.
Bookmarks