Re: A Question on IQ Math Library
- From: Jerry Avins <jya@xxxxxxxx>
- Date: Mon, 06 Feb 2006 15:58:43 -0500
vickykulkarni wrote:
Hi
I need to use the IQ math library of TIC2000 on eZdsp f2812. I have some
questions about it:
1. It is my understanding that I can use the IQ math library to get a bit
equivalent of floating point number. For example if i want to write into a
16 bit register values from 0 to 1 (like .2,.3,.5 etc) like a sine wave
between -1 & 1 to generate an output. I can use this library to get a 16
bit equivalent of the number. Is this correct?
Basically what i want is to use a 16 bit register to output a waveform
like a sine wave etc or generate my own type of waveform
real=_IQ(0.4);
2.I have 2 analog input signals coming into the ADC. suppose I call them
real & imag. The ADC gives a 12 bit representation of each input sample.
If i right shift the value by 4 & save it in a 16 bit register. Can i use
the IQmag function to get a 16 bit magnitude equivalent of real & imag?
As: sdata =_IQmag(real,imag);//
This is ofcourse when global Q is set to 15.
Any help/tips/advice is highly appreciated. Thanks.
Here's a tip: you need guard bits. A magnitude computed from two 16-bit values may not fit into 16 bits.
Jerry
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
.
- References:
- A Question on IQ Math Library
- From: vickykulkarni
- A Question on IQ Math Library
- Prev by Date: Re: A Question on IQ Math Library
- Next by Date: Re: BGA hardware question
- Previous by thread: Re: A Question on IQ Math Library
- Index(es):
Relevant Pages
|