what is the different between the control of CCP PWM and Power Control PWM especially in terms of coding? im looking the way to use the pwm's (no ccp) pins of this micro c..
sorry this post doesnt quite make sense...
can you provide an example of power control pwm?
the ccp pwm module on the pic allows the user to capture incoming pulses.. or generate pwm.. or compare a value to another value and toggle the output..
so.. whats power control pwm? if you can provide an example ill know what youre on about.
The difference is not in the coding; with the power control module you have more resolution allowing to program lower frequencies than with the PWM "normal" peripheric.
Look at the datasheet. There is an extra prescaler that the other one, has not. It is well explained.
ok,i have notice about the difference of resolutions. i had try to run the coding for power pwm at odd pins by using the ccs manual as a reference.but there is no pwm signal is displayed on oscilloscope.i don't know wether the coding is true or not since there is no error occured..below is the coding..
i simulated the circuit using proteus and i wonder if the circuit for power pwm is just the same as the circuit for ccp which is we just directly connect the oscilloscope to the pins in order to display the pwm signal..
Chrisw1990..if you look at the pic18f4431 configuration, you will notice that there is another pwm channel in order to produced pwm signal in stead of we used ccp pins..at ccp pins we just can produce max. 2 signals but for this pic, since there are 8 pwm channel we can produce until 8 pwm signals..