Talk About Network

Google





Electronic Equipment > Digital Signal Processing (DSP) > Re: fixed point...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 23 of 25 Topic 13249 of 14426
Post > Topic >>

Re: fixed point to integer conversion

by raj <rajesh.obli@[EMAIL PROTECTED] > Jun 29, 2008 at 11:18 PM

Hai randy ,

Sorry for the mistake pls see the following:

x1=3D 3.5 * sin(2*pi*fin1*t)
a=3D fi(x1)
a*8192
a.int


x1 =3D



         0    3.3664   -1.8425   -2.3579    3.1331    0.6431   -3.4851

a =3D


         0    3.3663   -1.8425   -2.3579    3.1331    0.6431   -3.4851

   DataTypeMode: Fixed-point: binary point scaling
                Signed: true
            WordLength: 16
        FractionLength: 13

             RoundMode: nearest
          OverflowMode: saturate
           ProductMode: FullPrecision
  MaxProductWordLength: 128
               SumMode: FullPrecision
      MaxSumWordLength: 128
         CastBeforeSum: true

ans =3D


           0       27577      -15094      -19316       25666
5268  -28550


  DataTypeMode: Fixed-point: binary point scaling
                Signed: true
            WordLength: 32
        FractionLength: 14

             RoundMode: nearest
          OverflowMode: saturate
           ProductMode: FullPrecision
  MaxProductWordLength: 128
               SumMode: FullPrecision
      MaxSumWordLength: 128
         CastBeforeSum: true


ans =3D


      0  27577 -15094 -19316  25666   5268 -28550


I think now u can able to help me...whether the above conversion is
proper?I am finding mismatch here between wordlength and fraction
length....

so 3.3663*8192=3D27,576.7296(rounded to nearest as 27577)

As it is rounding to nearest value.. it means some information is
lost..this will ultimately affect the frequency response of the
sinewave which i am trying to generate?I am i correct?can i conclude
that it is not advisable to use integers to represent a signal?But
fixed point is tedious to implement in hardware?any alternative?


regards,
raj.



On Jun 29, 1:05=A0pm, Mikolaj
<sterowanie_komputer...@[EMAIL PROTECTED]
> wrote:
> On 28-06-2008 at 23:11:42 Randy Yates <ya...@[EMAIL PROTECTED]
> wrote:
>
> > Randy Yates <ya...@[EMAIL PROTECTED]
> writes:
>
> (...)
>
> >
=A0http://www.mathworks.com/access/helpdesk/help/toolbox/fixedpoint/ind=
e...
>
> Here is a helpful websitehttp://tinyurl.com/.
>
> http://tinyurl.com/3lv43u
>
> --
> Mikolaj
 




 25 Posts in Topic:
fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-28 05:35:21 
Re: fixed point to integer conversion
Hendrik van der Heijden &  2008-06-28 15:03:55 
Re: fixed point to integer conversion
Mikolaj <sterowanie_ko  2008-06-28 16:23:37 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-28 07:51:29 
Re: fixed point to integer conversion
Jerry Avins <jya@[EMAI  2008-06-28 13:41:55 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-28 11:17:57 
Re: fixed point to integer conversion
robert bristow-johnson &l  2008-06-28 12:04:58 
Re: fixed point to integer conversion
Vladimir Vassilevsky <  2008-06-28 14:17:31 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-28 12:38:45 
Re: fixed point to integer conversion
"Vladimir Vassilevsk  2008-06-28 14:13:28 
Re: fixed point to integer conversion
Jerry Avins <jya@[EMAI  2008-06-28 16:19:10 
Re: fixed point to integer conversion
Randy Yates <yates@[EM  2008-06-28 15:44:34 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-28 13:25:16 
Re: fixed point to integer conversion
Piergiorgio Sartor <pi  2008-06-28 22:57:25 
Re: fixed point to integer conversion
Randy Yates <yates@[EM  2008-06-28 17:04:43 
Re: fixed point to integer conversion
Randy Yates <yates@[EM  2008-06-28 17:11:42 
Re: fixed point to integer conversion
Mikolaj <sterowanie_ko  2008-06-29 10:05:19 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-28 14:38:21 
Re: fixed point to integer conversion
robert bristow-johnson &l  2008-06-28 15:21:55 
Re: fixed point to integer conversion
Randy Yates <yates@[EM  2008-06-28 22:04:32 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-28 19:48:38 
Re: fixed point to integer conversion
Randy Yates <yates@[EM  2008-06-28 23:29:45 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-06-29 23:18:04 
Re: fixed point to integer conversion
Randy Yates <yates@[EM  2008-06-30 19:51:54 
Re: fixed point to integer conversion
raj <rajesh.obli@[EMAI  2008-07-01 00:30:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 10:40:13 PST 2009.