Simulink to dspic

Post Reply
ELMAY
Posts: 14
Joined: Wed Feb 09, 2011 2:45 pm

Simulink to dspic

Post by ELMAY » Fri Apr 15, 2011 2:27 pm

Hi Lubin,

This is a model of a PWM rectifier in simulink I want to translate Blokset / MATLAB to program a dsPIC 30F4011 to Implement
But when I reflected I do not find output to the terminal dsPIC knowing that input is a sine wave and ferquence 50 hz
Can you help me about this problem?

thanks

Elmay
Attachments
model_PWM.mdl
simulink model to generate PWM
(161.71 KiB) Downloaded 452 times
model_PWM_dspic.mdl
simulink model / Blockset to generate PWM
(114.06 KiB) Downloaded 459 times

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: Simulink to dspic

Post by LubinKerhuel » Tue Apr 26, 2011 6:35 pm

Hi Elmay,

I do not understand what your model is supposed to do.
The input capture Up signal connected to a boolean data type conversion will provide you 1 until the Up period of the input signal is not 0.
you might use the rising edge detection of this block. In the input capture block, you might set the "Change Detected on" option to 1 for rising edge (see block dialog box).

You might also use only one block PWM_motor. Select three channels output. (output channel will be [1 2 3] )

Lubin

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests