> >The one thing that pushed me over the top was adding CRC > >checking for my 1 wire temperature sensors - needed it > >because I'm getting the occasional erroneous result. > >This adds about 300 program words. > > How often does this code run? Could you set a compiler switch to > optimise for size (but it may run a bit slower) for this section? Executes every 750ms (DS18B22 temp sensor in 12 bit mode). But I've got that section sorted now thanks. I took out the table driven CRC routine (256 words were used by the table) and used a full CRC calculator routine... more machine cycles but much less code space (approx 34 words now). -- Brent Brown, Electronic Design Solutions 16 English Street, St Andrews, Hamilton 3200, New Zealand Ph: +64 7 849 0069 Fax: +64 7 849 0071 Cell: 027 433 4069 eMail: brent.brown@clear.net.nz -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist