Carl Denk wrote: > I have an 18F1320 with a C18 program and MPLAB (latest version). The > program has been running fine for several years, and recently I wanted > to add software averaging/filtering to the 3 ADC inputs, which > included declaring 3 int extern arrays [10]. On the surface, that sounds like yet another brain dead box filter by someone who didn't pay attention in digital signal processing class. Explain what characteristics you need this filter to have, such as random noise attenuation, step response time, frequency response, etc. What is the overall purpose of the filter? If you're just trying to reduce random noise, then there are better ways that also take less memory. > Apparently I was just > under the maximum data locations. The memory gauge shows 1683/4096 > program and 152/256 data before any changes. It would seem that 256 - > 152 = 104 would be sufficient, That doesn't mean the extra bytes are all in the same bank. I never use the memory gauge. Look in the MAP file to get the real info. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist