facing flash memory shortage is PIC16F688, intend to increase some function but i try not too many re-engineering on PCB hardware to suit for it, b'cos there will be PCB cost. it seem like the only way is to optimize the "codes". i use 1 internal ADC at AN0, mutiplx-ed externally(using CD4051) get 8 analog inputs, it seem like 10 times of avg reading loop of each analog input, taking up 30% total flash memory in 4Kword, is there a way for optimize adc avg reading method ? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist