I am using a 16f688 and I use HSEROUT with no problems. I now need to send some data back to the 16f688. How do I format the HSERIN command if I don't know how much data is coming?
Thanks,
Bob Hiller
Lifts for the Disabled LLC
I am using a 16f688 and I use HSEROUT with no problems. I now need to send some data back to the 16f688. How do I format the HSERIN command if I don't know how much data is coming?
Thanks,
Bob Hiller
Lifts for the Disabled LLC
I see no reference to filling an array and waiting for termination characters in the PBP manual. Do you have a sample?
Thanks,
Bob Hiller
Lifts for the Disabled LLC
I think he meant ...
See HSERIN in the PBP manual. Look at the STR modifier.
<br>
DT
Being a beginner myself I have the same problem with getting simple commands and mondifiers to function. I'm looking in the PBP manual at the STR Modifier and they just don't give any examples on how to use it. I'm also interested in the use of this function as I would like to be able to send commands to the PIC and dinamicly update it.
MyVars VAR BYTE(8)
Main:
HSERIN 500,NoData,[STR MyVars\8\"~"]
NoData:
do something else
This will wait 500mS before jumping to NoData. It will receive a string of up to 8 characters
in byte array MyVars, or exit on receipt of the "~" character.
Bookmarks