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
Simulink to dspic
Simulink to dspic
- Attachments
-
- model_PWM.mdl
- simulink model to generate PWM
- (161.71 KiB) Downloaded 912 times
-
- model_PWM_dspic.mdl
- simulink model / Blockset to generate PWM
- (114.06 KiB) Downloaded 894 times
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: Simulink to dspic
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
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
Who is online
Users browsing this forum: No registered users and 17 guests