Dear all,
FYI, recently i write a program to detect the data send by PC through UART. Here is the code,
Get_Data:
serin2,PORTC.4,16390,[serstring]
lookdown,serstring["CB2E"],STRING
Debug DEC STRING,10,13
goto Get_Data
Result of STRING: 0 0 0 0 3 3 3 3 3 0 0 0
The PC data is as below,
A5 5A 00 20 30 00 00
A5 33 00 20 30 10 00
A5 5A CB2E
My question is :
- i want to capture data "CB2E" only and ignore the other data. Somehow, i get the result STRING not consistent. I am not familiar with this command Lookdown.
- Is there anything wrong with my source code??? need some advice from the expect...please help!
TQ
Bookmarks