Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to have two different PWM channels of PIC18F4620?

Status
Not open for further replies.

glias

Full Member level 2
Joined
Jul 31, 2004
Messages
140
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
1,076
Hello all,
I would want to use PWM channels of my PIC with different frequencies... is it possible ? I read the datasheet that mention that the reference clock is only the timer 2, so how can I do to have two independent output PWM channels ?
 

assasinsareus

Junior Member level 3
Joined
Jul 21, 2010
Messages
25
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,283
Activity points
1,428
Re: PIC18F4620 & pwm

Hello,

You can only have one PWM period but both channels can have unique mark space ratios. If you need to have two unique periods then this can be done by using 1 x PWM and 1 x software based PWM using a timer interrupt. See my website 001tech.co.uk for more details.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top