Hi all I have some few questions regarding PWM.
The PWM period = (PR2+1) * 4 * 1/OSC * TMR2 PS
Does the result in seconds or in uS?
Ex:
If I use PR2 = 255 & Pre Scalar = 16 & XT = 4Mhz the result will be 4096 is this in seconds or in uS?
Data sheet says CCPR1L is a 10 bit resolution for PWM function.
But the two lower bits from CCP1CON register (bit 4,5).
Can I use only CCPR1L as a 8 bit resolution by ignoring the two lower bits of
Duty cycle register?
Thanks
The PWM period = (PR2+1) * 4 * 1/OSC * TMR2 PS
Does the result in seconds or in uS?
Ex:
If I use PR2 = 255 & Pre Scalar = 16 & XT = 4Mhz the result will be 4096 is this in seconds or in uS?
Data sheet says CCPR1L is a 10 bit resolution for PWM function.
But the two lower bits from CCP1CON register (bit 4,5).
Can I use only CCPR1L as a 8 bit resolution by ignoring the two lower bits of
Duty cycle register?
Thanks