The book also says
"Arrays must fit entirely within one RAM bank on most PICmicros. They may not span RAM banks on 14-bit or 17Cxxx devices. (Arrays may span banks on 18Cxxx devices. Byte- and word-sized arrays are only limited in length by the amount of memory.) The compiler will assure that arrays will fit in memory before successfully compiling."
I am not familiar with the PIC 16F676 so decided to look up the datasheet
http://ww1.microchip.com/downloads/e...Doc/40039c.pdf
At the bottom of page three it says "SRAM 64 bytes EEPROM 128 bytes"
Have you quoted the correct processor number ?
I was unable to create a large array on a 16F processor despite having enough memory but on an 18F it worked just fine
Keith
www.diyha.co.uk
www.kat5.tv
Bookmarks