Given that the application is a lamp dimmer it is important to note that th= e perceived intensity is not linear with respect to the PWM. By using a non-linear transfer function (lookup table?) you might be able map more of the A/D counts to where it matters. You could even, with a little bit of code complication, dither the PWM between two adjacent values to improve the effective resolution. ~ Bob Ammerman RAm Systems --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .