Jumper
- 13th August 2006, 15:39
Hi,
Baudrate 9600 just for safe.
I have a need to read a String of 256 characters from a PC and I would like to use the HSERIN command. There is a lovely little modifier STR that would allow me to do this. To test this I turn on a LED when waiting for the String, and as soon as I pass this line in my code I turn the LED off.
LED=1
HSERIN [STR RxData\64]
LED=0
First I tried with a shorter string of 64 chars and it works nice BUT when I increase the number to RxData\256 the command behaves in the same way as if I would have set it to \0. The led flashes and that's it, even if I send nothing to the PIC. It just skips the command....
I am using a 18F4620 and according to the "Manual" arrays used in 18-series can span Banks and are ONLY "limited in length by the amount of memory"
Bug or feature or did I miss some important part in the Holy Book of Pics?
/j
Baudrate 9600 just for safe.
I have a need to read a String of 256 characters from a PC and I would like to use the HSERIN command. There is a lovely little modifier STR that would allow me to do this. To test this I turn on a LED when waiting for the String, and as soon as I pass this line in my code I turn the LED off.
LED=1
HSERIN [STR RxData\64]
LED=0
First I tried with a shorter string of 64 chars and it works nice BUT when I increase the number to RxData\256 the command behaves in the same way as if I would have set it to \0. The led flashes and that's it, even if I send nothing to the PIC. It just skips the command....
I am using a 18F4620 and according to the "Manual" arrays used in 18-series can span Banks and are ONLY "limited in length by the amount of memory"
Bug or feature or did I miss some important part in the Holy Book of Pics?
/j