Quote Originally Posted by lerameur View Post

AND RECEIVING:
.......................................
pause 500

lcdout $FE,1 - put this above your main loop, you don't need to 'home' the LCD, you already do that with $FE,$C0.

loop:
'36
serin portB.3, n2400,[ encoded22.HighBYTE, encoded22.LowBYTE, encoded11.HighBYTE, encoded11.LowBYTE]

LCDOUT "datain: ", BIN 5 ------------- ???? what's this for?

lcdout $FE,$C0, "datain2: ", bin encoded22.HighBYTE , ".", dec datain2," ",$DF,"C" ---------- where is datain2 getting set at?

Pause 500

For counter=0 TO 7 'decoding
encoded1.0[counter]=encoded11.0[counter*2]
encoded2.0[counter]=encoded22.0[counter*2]
Next counter

temperature= encoded1 ' putting back together as the original temperature
For counter=0 TO 7
temperature.0[counter+8]=encoded2.0[counter+8]
Next counter

goto loop

End



No LCD_RWREG or LCD_RWBIT defines in either transmit or receive sections.

Add:
DEFINE LCD_COMMANDUS 2500
DEFINE LCD_DATAUS 250
to both sections.

Increase initial pause to 1000 or higher as needed.

Where is datain2 getting it's value from?

You don't do your decoding/etc until after you've displayed it. Change that around.

Check the listing above for other notes.