> but to undestand why this happens Microchip themselves say that incorrect set-up can cause unexpected and unpredictable chip behaviour. In your case it appeared to be the PWM module. I've had the timers go bad when I missed setting a port-related register The best thing to do is not assume anything about set-up is either irrelevant or not important. Account for everything Joe --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .