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.

lookup table to generate sine using fast pwm;

Status
Not open for further replies.

siddiqui

Newbie level 2
Newbie level 2
Joined
May 10, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,290
How the lookup table values are created to vary the duty cycle accorging to sine amplitude
 

I'm not sure what you mean.

If you are asking for step values to create the sine waveform, use a spreadsheet or similar. You can even do it with a pocket calculator. You create as many samples as you need by calculating at the angles required. The resulting frequency is set by how fast you step through the table, not the values in it. The sine values are normally calcuated to go from 0% to 100% duty cycle and the amplitude controlled by the DC fed to the PWM output stage.

Brian.
 

Hi,

calcuated to go from 0% to 100% duty cycle and the amplitude controlled by the DC fed to the PWM output stage.
For high side drivers with bootstrap circuit you should not use 100%.

For adjusting amplitude you could multiply your table values with a gain factor.

Klaus
 

Excel, Mat lab, calculator etc., My choice is always C program.

Example code [written for 8051, using dev c++]
 

Attachments

  • sine table.zip
    41.9 KB · Views: 150

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top