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.

sinusoidal reference current

Status
Not open for further replies.

abel51

Junior Member level 2
Joined
Mar 26, 2006
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,444
Hi

I am trying to program closed loop SPWM controller for an inverter using dsPIC33.

I get the feedback ac current and want to compare it with a sinusoidal reference current. So can anyone tell me how to generate 60Hz sinusoidal reference current in my dsPIC33. I only have the peak value of the sinusiod. Any suggestions or sample code will be greatly appreciated.

Regards,
 

I a situation like this, I always store samples of the sine wave in a look-up table. The number of samples required will be determined according to you sampling frequency (also switching frequency in your case).
 

we faced the same situation but not at a big level.... what we did was found the time period T of the sine wave needed and then divided it by the maximum value N that could be stored in the register.... now we have the time period for each count... so we introduced delay equal to this time for each increment and kept outputting the register value each time.....
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top