please help
There is no CCP3CON register on the 18F4550. CCP1CON configures PWM for CCP1. CCP2CON configures PWM for CCP2I dont know how to translate CCP3CON
You can have up to two standard PWM outputs. CCP2 on RC1 or RB3 depending on config fuse settings for CCP2MX in CONFIG3H, and CCP1 on RC2.
Or you can use the ECCP module with P1A, P1B, P1C and P1D for motor control driving an H-bridge.
Take your time and read through 18F4550 data sheet for PWM setup. It's really not that hard. A little time reading & experimenting with your 18F4550 is all you need to figure it out.
Bookmarks