BobP
- 28th November 2012, 12:44
Hi,
Have been experimenting with putting ASCII data in to code space and it didn't work as I expected. Hopefully someone will point out my stupid mistakes!!
Using a PIC18F2525 with PicBasicPro 2.50 (has been tested with 2.60)
Here is what I have found already;
1. ASCII Code is written to the PIC correctly at program time.
2. ASCII Code will read and display correctly if reading in same 8k memory page.
3. If memory location is set outside the 8k page it will only return zeros.
Have checked manual and can find no mention of limitations to using 'READCODE'. Have I missed something?
I have attached the test program and the asm file with the ASCII data.
Thanks,
Bob
Have been experimenting with putting ASCII data in to code space and it didn't work as I expected. Hopefully someone will point out my stupid mistakes!!
Using a PIC18F2525 with PicBasicPro 2.50 (has been tested with 2.60)
Here is what I have found already;
1. ASCII Code is written to the PIC correctly at program time.
2. ASCII Code will read and display correctly if reading in same 8k memory page.
3. If memory location is set outside the 8k page it will only return zeros.
Have checked manual and can find no mention of limitations to using 'READCODE'. Have I missed something?
I have attached the test program and the asm file with the ASCII data.
Thanks,
Bob