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.

help me with this PWM

Status
Not open for further replies.

alhamzi

Newbie level 2
Newbie level 2
Joined
Oct 3, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
i have five different PWM waveform generated using matlab software
i want to generate them using any PIC chip.here are the waveform
anyone have a clue for the programming??


thanks for your cooperation
alhamzi_b@yahoo.com
 

Attachments

  • Untitled.png
    Untitled.png
    16.3 KB · Views: 98
  • Untitled1.png
    Untitled1.png
    17.3 KB · Views: 89
  • Untitled2.png
    Untitled2.png
    16.2 KB · Views: 91
  • Untitled3.png
    Untitled3.png
    16.9 KB · Views: 84
  • Untitled4.png
    Untitled4.png
    15.1 KB · Views: 92
Last edited:

This is not originally PWM, because the duty cycle and frequency not constant. This is Sinusdoidal PWM, that why can't use CCP module.
 
For PWM duty cycle does not need to be constant, and you can change frequency as well. But in SPWM, you can see from the picture that the frequency is constant. The carrier frequency usually is. It's the reference frequency that can change depending on your need. But the carrier frequency is the same. You can easily do this with CCP.
 

actually, all spwm waveforms are generated for 1 cycle 0.02, but with different widths. they are applied for five switches. each waveform for 1 switch

i want clue in how to do programming in pic because i am new in microcontroller and what are the instructions or variables that can be used for generating PWM.If anyone has an idea please reply.

thanks for helping
 

I would say that you firstly learn the basics of PIC and then move on to PWM. You can refer to this thread which has a lot of information:
https://www.edaboard.com/threads/215581/

I would recommend you use C or BASIC for programming instead of assembly, but it's really upto you. Check out these tutorials as well:
**broken link removed**

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top