DSPRelated.com
Forums

Re: fixed point in blackfin

Started by Jaime Andres Aranguren Cardona May 19, 2005
Hello Prasanth,

It is all up to the representation that you select for
your numbers, or better said, to the INTERPRETATION
that you should give to the bits.

You'll need to go to the basics of the numeric base
representation. There is a good explanation of this on
Appendix D of the BF533/2/1 Hardware Reference Manual,
which you can find here: http://tinyurl.com/7wj95

Specially have a look at pages D1-D4. As you can see
from table D1, a unique bitstream can represent
different real numbers, depending on how to interpret
the bitstream, as either signed or unsigned, integer
of fractional, and in fractional mode, it can vary
depending on how many bits are considered for the
integer part and how many ones for the fractional
part. And for floating point representation, it is
similar, but now you need to take care of a mantissa
and an exponent, so every bit (or field of bits) will
have different meaing.

In summary, you need to select FIRST how to interpret
your numbers, then interpret them.

I copy the group adsp@adsp... - where you
already posted this question -, in order to both help
others with the same question in mind, and to catch
the atention of the many helpful regulars out there.

Please, read and try the understand the Appendix D of
the Hardware Reference Manual and come back with
questions, if you still have.

Regards,

JaaC

--- prasanth rajagopal <emailtoprs@emai...> wrote:
> Sir,
> Iam doing a small project on blackfin
> processor from ADI. To be frank Iam new to dsp
> programming. I shall tell my problem like this:
> I can store a value 0.5. the register content is
> 4000h. It is the same for 16384. How can i deal with
> this? for every decimal i store, there will be an
> integer if i do like this. Can u give me a code in
> blackfin say x=3, and y=0.5 and store them in
> registers? does it have anything to do wat is called
> scaling? then wat is the technology behind this? I
> cant go ahead without understanding this basic thing
>
> regards
> prasanth


Jaime Andr Aranguren Cardona
jaime.aranguren@jaim...
jaime.aranguren@jaim...

__________________________________