Sorry, abt that my badHere are the defines:
DEFINE OSC 20
Rx_Data Var Byte[7]
Rx_Byte Var Byte
Rx_Bit Var Bit
Pulse Var Word
I Var Byte
w Var Byte
... and it's not .byte7 and .byte0 it's byte.bit7 and byte.bit0
BTW I found a typo in my snippet:
Rx_Byte = Rx_Byte << 1
Rx_Byte.0 = Rx_bit
the actual code is:
Rx_Byte.0 = Rx_bit
Rx_Byte = Rx_Byte << 1
I'm trying to receive 7 bytes of data, each containing 6 bits
(bit.7 and bit6 are not used). Data received per w loop looks
like this: 01001000 = $48 but I've sent 00100100 = $24. So,
you see all bits are shifted one place to the left towards MSB.
What am I doing wrong here?
YZ7REA Vladimir


Here are the defines:

Bookmarks