I have ported a project from the 16F690 to the 16F886 to gain more memory codespace, and have benefitted form getting more ram too.
The datasheet says I have over 300 bytes of SRAM, but as I've got to about my 70th byte of ram I have started to get problems with the chip stopping.
I have an assembly interupt running (well established code I've used many times), the code enters the interupt, resets the one second flag properly and exits cleanly, but ponly on the first interupt, thereafter it crashes.
Are there any issues with accessing the whole ram codespace ? Am I missing something like as if I should be taking responsibility for bank switching and so on.
I had a similar thing happen to me with a pic which had 128 bytes of ram, I ran out of variables at about 70 or 80 (due to the pbp overhead) but didn't expect to run out so soon with over 300 bytes of sram.
I would appreciate any help with this because I'm really stuck.
The reason I need so many variables is because I'm doing a lot with arrays/scrolling messages and menu items on a 2x16 lcd running a menu system, so there's lot's of pointers and screen maps etc. required
Thanks in advance
Chris
Bookmarks