It might help to know what PIC and version of PBP you are using.
I never did PWM but I see a few things:
1. That is not a correct CONFIG statement (chech PBP manual).
2. Move TRIS before HPWM statements.
3. Add ENDIF to IF statements (check PBP manual).
4. Missing a space in HPWM2,0,0.
Do not use political hash strings in thread titles.
Robert
Bookmarks