This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about the example from CLA document -- Urgent

Other Parts Discussed in Thread: TMS320F28035

Hi,

I'm using TMS320F28035 controller.

In the CLA guide ---  'spruge6b', page 83, there is an example showing how to convert IQ format data to floating data in CLA using instruction  " MI32TOF32 MRa, mem32 "

It uses IQ24 as example.

What I don' t quite get is the following code:

MMPYF32 MR0, MR0, #0X3380 ;   M = 1/ (1*2^24) * iqm = 1.5  ( 0X3FC00000)

I think it is trying to get the original value which is 1.5 by multiplying 1/(2^24), but it is multiplied by #0x3380 ?

Is #0x3380 equivalent to 1/(2^24) ?

 

And, later when it convers the result from floating back to IQ24, it times #0X4B80, which is equivalent to Multiplying 2^24 ?

What if I want to use another IQ format, i.e IQ18 ?

Could someone help me understand this ?

 

Thank you.