Re: PIC16 Max Array Size
The manual is right. But, you have to read the fine print 
Under the asterisk, it says that for PIC16 devices, the array must fit in one RAM bank. If you look at the data sheet for the PIC16F1825 it talks about each bank. Although it has 128 bytes in each bank, only 80 of those are for General Purpose RAM. I believe that is why the largest array you can have on this chip, is an array of 40 words.
3.2 Data Memory Organization
The data memory is partitioned in 32 memory banks
with 128 bytes in a bank. Each bank consists of
(Figure 3-2):
• 12 core registers
• 20 Special Function Registers (SFR)
• Up to 80 bytes of General Purpose RAM (GPR)
• 16 bytes of common RAM
http://www.scalerobotics.com
Bookmarks