Aug 13, 2009 #1 I Innovator Newbie level 3 Joined Jun 15, 2009 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location Singapore Activity points 1,342 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
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