Hi Skimask
Counter 0 to 7, perhaps? And possibly no quote marks in third line after 8?
Adrian
Hi Skimask
Counter 0 to 7, perhaps? And possibly no quote marks in third line after 8?
Adrian
Hi Skimask
Thanks but there is something I'm not understanding. I've tried your programme and it works fine until the first timeout then it won't 'goto main' and loop through again. Should it? If I change the counter to FOR temp = 0 to 7 then the programme loops round endlessly. What am I not understanding or what am I doing wrong? Please help - going mad here!!
Adrian
Might get a couple of hints from this:
http://www.picbasic.co.uk/forum/show...ht=hserin+idle
If not there, then try a search on serial and idle and see what happens.
Hi,
I usually refer back to this sample program if I forget how to use a modifier;
http://www.melabs.com/resources/samples.htm
and load the sample program ser2mod.bas
Bob
Thanks for that Bob. The bit I was confused about is Skimask's statement "MyVars var Byte[8] sets aside 9 bytes, index 0 (zero) is also valid"
I thought I understood that MyVars VAR BYTE[8] had 8 elements numbered 0 to 7 (Page 26 PBP new manual). If that were the case then the 'clearance' counter ought surely to be 0 to 7 not 0 to 8, which would be invalid.
Adrian
Bookmarks