Hi i have problem im using a 433mhz tx and rx pair to send a qualifier byte + 6 bytes of data the serin command works fine however when i use the hserin command with the same qualifier byte + baud rate the data is incorrectly received.I need the hserin to put 6 bytes into scratch pad in the background so that it doesn't stop the main program at serin waiting for data.
TX code
hserin RX code
TX code
Code:
symbol TX_POWER = c.6
symbol TX_PIN = c.7
symbol TX_BAUD = N1200_4
main:
high TX_POWER
serout TX_PIN,TX_BAUD,("UUUUUUUUUUUUUUUUUU","D",67,68,69,70,71,b1)
low TX_POWER
pause 1000
inc b1
goto main
hserin RX code
Code:
main:
hsersetup B1200_4,%00
hserin 0,6,("D")
ptr = 0 ; reset sp pointer
get 0,b18
get 1,b19
get 2,b20
get 3,b21
get 4,b22
get 5,b23
sertxd("hserin data ",#b18," ",#b19," ",#b20," ",#b21," ",#b22," ",#b23,13,10)
pause 10
goto main