Steve,
nope, not yet. I'm at work and my project is waiting for me
back at home. However, I don't see (and forgive me if it's
stupid of me) what purpose the folowing statement serves
Rx_byte = pulse
I don't need to copy the value from pulse to Rx_Byte. That's
why I have the folowing statement(s) in place:
IF (Pulse > 80) AND (Pulse < 128) THEN Rx_Bit = 0
IF (Pulse >= 128) AND (Pulse < 220) THEN Rx_Bit = 1
... to determin which bit I just received and stuff it to
Rx_Byte.0, shift it and repeat the proces until I get all 6
bits per byte (.7 and .6 are not used). I do this for all 7 bytes
and voila, I've decoded the message sent by the encoder.
The only problem is placing the all the bits in the right
place. I hope it's clear now... TNX!
PS would you care to explain how exactly you mask the
bits with Rx_byte = Rx_Byte & $FE ? I'm not sure I follow...
YZ7REA Vladimir
Bookmarks