Continue to Site

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.

[PIC] PIC18 PWM1_Init, PWM2_Init

Status
Not open for further replies.

Alloy

Advanced Member level 4
Joined
Apr 3, 2016
Messages
116
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Activity points
1,003
Hey
Can I have two different frequencies in PWMs module?
For example 1kHz at CCP1 and 2kHz at CCP2?

I tried:
PWM1_Init(1000)
PWM2_Init(2000)
but it seems that one call is overriding second one.... and both PWMs behave the same.
Is this a hardware limitation??
 

Is this a hardware limitation?
Yes. As far as I know are all PIC18 PWM outputs using timer2 as period generator.
 
  • Like
Reactions: Alloy

    Alloy

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top