Innovator
Newbie level 3
pic18f4550 pwm
Hi, I have a problem here:
PWM Duty Cycle = (CCPRXL:CCPXCON<5:4>) • TOSC • (TMR2 Prescale Value)
1.5ms = (CCPRXL:CCPXCON<5:4>) • 1/(48MHz) • 16
(CCPRXL:CCPXCON<5:4>) = 4500
However, (CCPRXL:CCPXCON<5:4>) is only 10 bit. Therefore it can't be > 1024.
What should I do? Because 16 is the highest prescaler value selectable in TMR2
Hi, I have a problem here:
PWM Duty Cycle = (CCPRXL:CCPXCON<5:4>) • TOSC • (TMR2 Prescale Value)
1.5ms = (CCPRXL:CCPXCON<5:4>) • 1/(48MHz) • 16
(CCPRXL:CCPXCON<5:4>) = 4500
However, (CCPRXL:CCPXCON<5:4>) is only 10 bit. Therefore it can't be > 1024.
What should I do? Because 16 is the highest prescaler value selectable in TMR2