No experience with this particular part, so take this with a grain of salt... I see mention of setting the peripheral pin select to map the PWM to an output. My understanding is that that has to be done inside a specific unlock-lock sequence written in assembly language. On the dsPIC33 parts I use for sure... -Denny --=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 .