whether the vars are in the same bank or not is irrelevant with indirect addressing, the point is that with pic18 chips an array can be more than 255 bytes in length and may cross a bank boundary. ...
Thanks for the insight! I ended up putting all the variables used in the ISR in bank 3 and starting the interrupt with "banksel _ppm_n" in case I every move them to a different bank. I may not need...
The Access Bank consists of the first 96 bytes of memory(00h-5Fh) so if you create your asm vars in that space you can use the opcode access field rather than needing to switch banks
Published on - 5th December 2010 17:58
Number of Views: 12851
Hi,
Here's a short list of Frequently Asked Questions that should be of interest for most beginners. Don't hesitate to read them... they're not going to bite you
...
Re: Frequency Counter
Thanks Jerson. I corrected the links.
Ioannis Today, 00:31Ioannis