Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Info about Q15 format for filter coefficients

Status
Not open for further replies.

pixel

Advanced Member level 2
Joined
Sep 16, 2004
Messages
508
Helped
69
Reputation
138
Reaction score
16
Trophy points
1,298
Activity points
3,993
Can you tell me more about Q15 format for filter coefficients.
 

Re: Q15

Hi

Q15 is a format for representation of fractional numbers in fixed format.
As you in byte format, real value can be calculated as below:

If number = D7D6...D0 ==> value = 2 ^ 0 * D0 + 2 ^ 1 * D1 + ... + 2 ^ 7 * D7.
In fractional numbers for example Q15 the value calculated as below:

if number = Q15Q14Q13...Q0 ==> value = 2 ^ (-15) * Q0 + 2 ^ (-14) * Q1 + ... + 2 ^ (-1) * Q14 + -2 * Q15.

so if your number is between 1 and -1 you can represent it in Qformat.
to conver a number betwwen -1 and 1 to Q15, you should multiply it by (2 ^ 15 -1).

Regards
 

Re: Q15

Now its clear. I think that ADSP have this representation of filter coeficiients.
I have wondered how to transform my real number coefficient into DSP readable form.
Do you know how shold it be done with motorola, and texas DSP?
 

Re: Q15

Hi

As i said first you should find the required precision, then convert filter coeffs to selected value.
For example, if you found that 16-bit precision is enough normalize filter coeffes to lie between 1 and -1, then multiply them by 2 ^ 15 - 1.

Regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top