PWM help for PIC18F4550

Status
Not open for further replies.

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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…