Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top