Good Morning to All,
I am exerimenting with Linx's new long range rxm-lr series modules, seem to be pretty nice. The datasheet shows that the receiver output may switch randomly due to the absence of a transmitter in which it does, 10101010, etc coming out of the datapin. So, shouldn't be a problem, I could add a squelch they even give the circuit for that in the datasheet.

Now for the real question, I am telling the pic16f628a to :
SERIN2 SERPIN, 16572,100, START,[WAIT(254),address1, address2,address3,address4,mydata1,mydata2,mydata3 ,mydata4,mydata5,mydata6]

and of course on the TX side:

SEROUT2 SERPIN,16572,[$AA,$AA,$AA,$AA,$AA,$AA,synch, address,address1,address,address1,keydata,keydata, keydata,keydata,keydata,keydata]

My address is an 8bit constant and the keydata is a variable
address con %00000001
keydata var byte

what I have on the rx side to check the address and it seems to work but is flaky :
addressY con %00000001
addressZ con %00000010
address1 var byte
address2 var byte
address3 var byte
address4 var byte

IF ((address1 == addressy) && (address3 == addressy)) && ((address2 == addressz) &&(address4 == addressz)) then
portb.1=1 'address matched
else
portb.1=0
endif

I am also using 8 bits for the keydata, is there a better way to check both address and keydata for being good data plus maybe pickup on good data and reject the bad?

Thanks