Hi Crist=F3v=E3o, The NOPs were left over from a delay I added to move the glitch away = from the zero-crossing point. I got the PWM working properly this evening and the problem turned out = to be the way I was using the override bits. Regards, Nigel Crist=F3v=E3o Dalla Costa wrote: > = > Hello > > Why do you have the NOPs? > > Just an idea, but try disabling PWM completely while you toggle the outpu= ts. > > > On 5/2/07, Nigel Duckworth wrote: > = >> Hi, >> >> Does anyone have experience with the Power Control PWM module on the >> 18F4331 or it's siblings? >> >> I have a glitch on the start of the PWM pulse train after switching from >> one half-cycle to the next using the Output Override bits (independent >> mode). >> >> = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist