I am using 506f BF and was wondering what are fract 16/32 types different from short and int respectively?
I am asking since i need to fft the data after a A/D converter and the only fft function uses fract16/32 .
Thanks in advance,
I moved this question about the ADSP-BF506F to the Blackfin Processors Community. Someone here should be able to assist you.
EngineerZone Community Manager
Fract values are very different from int/short, in that they represent fractional data in a range from -1.0...+1.0, where short and int represent integer values. The Fract16/32 data formats are discussed in the Compiler and Libraries Manual under:
C/C++ Compiler and Library Manual for Blackfin Processors > 1 Compiler > C/C++ Run-Time Model and Environment > Using Data Storage Formats > Fract16 and Fract32 Data Representation.
This is available through Help, or via the link below.
Fract type is clearly understood .
but fract16 and fracy32 as explained in BF processor programing are like
short and integer types ,moreover while debuging my program with
fract16/32 parameters the values stored in the registers are like integers
not like fracts..meaning 0.25 does not stored like 0010....but like
please help me understand why it does not act like a fract because i need
to fft data and i dont know how to treat it ,like integers or like fracts...
On Mon, Oct 29, 2012 at 2:46 PM, CraigG <
You need to use the r16 or r32 suffix when defining a value, such as:
fract16 foo16 = 0.25r16;
fract32 foo32 = 0.25r32
Alternatively, you can use a hex value to initialize them. For example:
fract16 foo16 = 0x2000;
fract32 foo32 = 0x20000000;
You may also want to take a look at the Compiler Build-Ins section of the manual for details of the functions available for converting between data types.
Retrieving data ...