Hi Jim, I haven't used the 16f1779 with PWM, but I do with a 16f18855. I expect=20 for PWM these are similar. As you can see in the datasheet (TABLE 4) there is no default PWM output=20 pin. You need to assign one with PPS. Not very complicated: RA3PPS =3D 0x1E; when you want the PWM signal on=20 RA3 (see table 12.2 and provided you follow example 12.1) Good luck! Rob. On 07/06/2016 07:51 PM, Jim Ruxton wrote: > I have used PWM a number of times in the past but for some reason I am > having trouble getting it to work on this chip. Can anyone think of any > gotchas I may be missing? Could it be something to do with the PPS? I > have never used that feature on a PIC before. I am expecting PWM output > on RA3 but getting nothing. Below is the code I am using to start the > PWM? Any thoughts? Pulling my hair out on this one. Thanks. > > TRISA=3D0xFF; > PWM10CON=3D0x00; > T2PR=3D0x52; > PWM10DCL =3D 0x80; > PWM10DCH =3D 0xF0; > PIR1bits.TMR2IF =3D 0; > T2CON =3D 0x00; > T2CON=3D0x80; > TRISA=3D0xF0; > RA3PPS=3D0x1E; > PWM10CON =3D 0x80; > > Jim > > --=20 *Rob H*amerling - http://www.robh.nl --=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 .