Sign in

username:

password:



Not a member?

Search c28x



Search tips

Subscribe to c28x



Ads

Discussion Groups

Discussion Groups | TMS320C28x | Newbie to DSP seeks your 'HELP'

Technical discussions about the TI C28x DSPs (including the C2810, C2811, C2812, F2801, F2806, F2808, F2810,, F2811, F2812, R2811 and R2812).

  

Post a new Thread

Newbie to DSP seeks your 'HELP' - dhavalshah82 - Dec 8 20:58:00 2005



Hi Everybody,

I am a new member to this group. Thanks to the mod/owner who started
this yahoo group. I am a newbie to DSP programming and just commenced
my project using TMSDSPF2812. I have to develop V/F control inverter
for motor applicaiton.

While debugging a frustrating problem, I found that _IQsin function
was not returning proper value, the _IQsin wont work as specified in
IQMath document.

Do you have any clue of what could be the possible reason or a way to
get around it.

Thanks.

- Dhaval

-------------------------
_iq29 in2, out2;

void main(void )
{
in2=_IQ29(0.25*PI);
out2=_IQ29sin(in2);
}
------------------------------------- Expected values;
in2= 0x1921EA40 h
out2= 0x16A09E66 h

Actual values;
in2= 0x1921EA40 h
out2=0xE0473A3D h (this is totally wrong.. dont know why)

Please help.. I am a newbie and frustrated by this simple problem. I
would really appreciate your support and guidance.

Thanks.

- Dhaval Shah
http://www.ece.uvic.ca/~dhavalss/




(You need to be a member of c28x -- send a blank email to c28x-subscribe@yahoogroups.com )

Re: Newbie to DSP seeks your 'HELP' - chirag jagadish - Dec 10 12:36:00 2005

hi dhaval,
how r u going about debugging the code
r u using watch window
in case u r using watch window,
before u display the result in watch window remember to convert the IQ number into a float and assign it to a temporary float variable and then watch it on the watch window
if u r not using watch window, then the problem might be different
if u give more info we can all try

bye dhavalshah82 <dhavalshah82@dhav...> wrote: Hi Everybody,

I am a new member to this group. Thanks to the mod/owner who started
this yahoo group. I am a newbie to DSP programming and just commenced
my project using TMSDSPF2812. I have to develop V/F control inverter
for motor applicaiton.

While debugging a frustrating problem, I found that _IQsin function
was not returning proper value, the _IQsin wont work as specified in
IQMath document.

Do you have any clue of what could be the possible reason or a way to
get around it.

Thanks.

- Dhaval

-------------------------
_iq29 in2, out2;

void main(void )
{
in2=_IQ29(0.25*PI);
out2=_IQ29sin(in2);
}
------------------------------------- Expected values;
in2= 0x1921EA40 h
out2= 0x16A09E66 h

Actual values;
in2= 0x1921EA40 h
out2=0xE0473A3D h (this is totally wrong.. dont know why)

Please help.. I am a newbie and frustrated by this simple problem. I
would really appreciate your support and guidance.

Thanks.

- Dhaval Shah
http://www.ece.uvic.ca/~dhavalss/




(You need to be a member of c28x -- send a blank email to c28x-subscribe@yahoogroups.com )

Re: Newbie to DSP seeks your 'HELP' - chirag jagadish - Dec 12 11:16:00 2005

hi,
try pre multiplying the .25 * PI , put it in a float variable
and then use the convert function _IQ29( )
bye

dhavalshah82 <dhavalshah82@dhav...> wrote:
Hi Everybody,

I am a new member to this group. Thanks to the mod/owner who started
this yahoo group. I am a newbie to DSP programming and just commenced
my project using TMSDSPF2812. I have to develop V/F control inverter
for motor applicaiton.

While debugging a frustrating problem, I found that _IQsin function
was not returning proper value, the _IQsin wont work as specified in
IQMath document.

Do you have any clue of what could be the possible reason or a way to
get around it.

Thanks.

- Dhaval

-------------------------
_iq29 in2, out2;

void main(void )
{
in2=_IQ29(0.25*PI);
out2=_IQ29sin(in2);
}
------------------------------------- Expected values;
in2= 0x1921EA40 h
out2= 0x16A09E66 h

Actual values;
in2= 0x1921EA40 h
out2=0xE0473A3D h (this is totally wrong.. dont know why)

Please help.. I am a newbie and frustrated by this simple problem. I
would really appreciate your support and guidance.

Thanks.

- Dhaval Shah
http://www.ece.uvic.ca/~dhavalss/





(You need to be a member of c28x -- send a blank email to c28x-subscribe@yahoogroups.com )

Re: Newbie to DSP seeks your 'HELP' - dhavalshah82 - Dec 19 20:42:00 2005

Thank you Chirag,

I found the solution to problem. The issue was with the IQmath.Lib
included in the project was corrupted. Fixed it with new file and now
all is fine. I finished the project too.. implementing a v/f control
for an Induction motor using SVPWM. By the way, I am working on
Induction Motor/Inverter/Motor Faultdiagnosis area. If there is anyone
on the group working on similar topic. I would be glad to know. Also I
will be glad to help any newbie like me needing any guidance with
F2812 and powerelectronics/motor control.

cheers,

Dhaval Shah
dhavalshah82@dhav...
www.ece.uvic.ca/~dhavalss/

--- In c28x@c28x..., chirag jagadish <chirag_jagadish@y...> wrote:
>
> hi dhaval,
> how r u going about debugging the code
> r u using watch window
> in case u r using watch window,
> before u display the result in watch window remember to convert
the IQ number into a float and assign it to a temporary float
variable and then watch it on the watch window
> if u r not using watch window, then the problem might be different
> if u give more info we can all try
>
> bye > dhavalshah82 <dhavalshah82@y...> wrote: Hi Everybody,
>
> I am a new member to this group. Thanks to the mod/owner who started
> this yahoo group. I am a newbie to DSP programming and just commenced
> my project using TMSDSPF2812. I have to develop V/F control inverter
> for motor applicaiton.
>
> While debugging a frustrating problem, I found that _IQsin function
> was not returning proper value, the _IQsin wont work as specified in
> IQMath document.
>
> Do you have any clue of what could be the possible reason or a way to
> get around it.
>
> Thanks.
>
> - Dhaval
>
> -------------------------
> _iq29 in2, out2;
>
> void main(void )
> {
> in2=_IQ29(0.25*PI);
> out2=_IQ29sin(in2);
> }
> ------------------------------------- > Expected values;
> in2= 0x1921EA40 h
> out2= 0x16A09E66 h
>
> Actual values;
> in2= 0x1921EA40 h
> out2=0xE0473A3D h (this is totally wrong.. dont know why)
>
> Please help.. I am a newbie and frustrated by this simple problem. I
> would really appreciate your support and guidance.
>
> Thanks.
>
> - Dhaval Shah
> http://www.ece.uvic.ca/~dhavalss/




(You need to be a member of c28x -- send a blank email to c28x-subscribe@yahoogroups.com )