first of all many thanks for repply dear pedja089
now my code like this,
main:
HSERIN [WAIT($07), str DATAIN\8]
if datain[1] = $06 then high portc.3
hserout [str datain\8]
goto main
END
this not working
first of all many thanks for repply dear pedja089
now my code like this,
main:
HSERIN [WAIT($07), str DATAIN\8]
if datain[1] = $06 then high portc.3
hserout [str datain\8]
goto main
END
this not working
Datain[1] is second byte in string.
If you wait number 7, then that byte isn't in datain array.
If you sent 7,6,12, then in datain first byte is 6, second is 12, so you need something like this
And now if you send 7,then 6, and 6 more byte portc will go high.Code:HSERIN [WAIT($07), str DATAIN\8] if datain[0] = $06 then high portc.3
many many thanks dear pedja089
now code is working
what methed in short becuse i have too bytes for compare for example
hex :07 06 00 82 2D A1 00 D7 D8 , 07 06 00 82 2D CF 35 C4 90 , 07 06 00 82 2E 2F 35 C4 73 , many more ,so
i want further help?
thanks ,
now i want write this 9 byte data and read its back .How this posible my mean how to write aray and read it again.
Regards
Bookmarks