DSPRelated.com

Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > Are you saying that I should divide all my coefficients by max coeff (2.0085) in > this case Yes. > and provide first 3 as "b"...

Megha- > Are you saying that I should divide all my coefficients by max coeff (2.0085) in > this case Yes. > and provide first 3 as "b" and last 2 as "a"? That I don't know. You have to study MATLAB docs and figure out which are numerator and which are demoninator coefficients, and compare to TI docs. A good problem for new DSP students. > Another thing I didnt understand is u said a


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago 1 reply

Megha- > Thanks for the reply. But I guess I need the format in Q15 to use it in the command > iircas51. Even if I convert it to Q13, it wont...

Megha- > Thanks for the reply. But I guess I need the format in Q15 to use it in the command > iircas51. Even if I convert it to Q13, it wont work. > Can you suggest a method so that I can quantize/normalize my whole data between 1 > and -1. After that I can convert it into Q15 and I guess that should work. iircas51() uses 5 coefficients per biquad, so it makes no assumption that one coeff


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago 1 reply

Megha- > I had a query in Q format. I am using iircas51 for IIR filter. In that > the coefficient data type should be DATA thats defined as...

Megha- > I had a query in Q format. I am using iircas51 for IIR filter. In that > the coefficient data type should be DATA thats defined as short. So my > query is its not necessary to use Q15 format. I can aswell use Q2.13 > format. But jeff is there any function to convert float to Q2.13 as > there is for float to Q15. To convert floating-point coefficients to Q13, multiply by 8192 (i


Taking values from matlab

Started by Guilherme Martinhon in TMS320c54x18 years ago 1 reply

Hello people! I?m looking some discussions about IIR filter coefficients and some others. Only by curiosity, how do you are transfering the...

Hello people! I?m looking some discussions about IIR filter coefficients and some others. Only by curiosity, how do you are transfering the data from matlab to DSP? Cause I?m using somethink similar, and I generate the data in Matlab and after save it in a file. After, I call this file on the header of the code. Do you use somethink similar? Thanks, Guilherme _____________________ Guilh...


Re: [Fwd: Re: code working on simulator but not on device?]

Started by megha daga in TMS320c54x18 years ago

Dear Jeff Thanks. Thight might help. i will read and follow that. I had one question. In functions like butter (for filters) we declare a...

Dear Jeff Thanks. Thight might help. i will read and follow that. I had one question. In functions like butter (for filters) we declare a variable Wn (the cut off frequency). ex: [B,A] = BUTTER(N,Wn). In this Wn value is between 0 and 1, where 1 means half of sampling rate. What I am not understanding is where is it getting sample rate value from. I saw some codes and in that the sample rate...


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > I had one question. In functions like butter (for filters) we declare a variable Wn > (the cut off frequency). ex: [B,A] =...

Megha- > I had one question. In functions like butter (for filters) we declare a variable Wn > (the cut off frequency). ex: [B,A] = BUTTER(N,Wn). In this Wn value is between 0 > and 1, where 1 means half of sampling rate. What I am not understanding is where is > it getting sample rate value from. I saw some codes and in that the sample rate > value is not declared before using the command.


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > I tried getting more material on maxflat but I am not getting much. I am not > understanding what exactly SOS and G stand for. > If...

Megha- > I tried getting more material on maxflat but I am not getting much. I am not > understanding what exactly SOS and G stand for. > If I want coeff for IIRCAS51 (cascaded IIR filter design with biquads qith 5 > coefficients) I want 3 coeff for zero (numerator) and 2 for poles (denominator). I > am not getting how to get those. i am not understanding what does what stand for. Maxflat(


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > I have not worked with matlab much and I am having some problem with creating > coefficients. I got how to get coefficients for fir...

Megha- > I have not worked with matlab much and I am having some problem with creating > coefficients. I got how to get coefficients for fir or for simple iir. But I am not > getting how to get coeff for biquads. If you can help kindly do. Suggest to try this MATLAB function: [bcas,acas,g] = tocas(b,a) which converts direct-form to a series of biquad (2nd order) filter sections. Thi


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > This is in continuation to my previous mail. I also tried with a breakpoint at my > next statement after fltoq15. If I run that. It...

Megha- > This is in continuation to my previous mail. I also tried with a breakpoint at my > next statement after fltoq15. If I run that. It stops in between and gives the > error: > Trouble running Target CPU: Attempted write to ROM at Addr:0x00ffff, Page:0 > I guess it is because of the infinite loop thing. Kindly reply and suggest > something.Waiting for your reply. Your code is tr


problem regarding conversion from float to Q15

Started by megha daga in TMS320c54x18 years ago

Hi I am working on a code to convert float to Q15. I am working with just 4 samples. I have stored the 4 coefficients in coeff[4]. the...

Hi I am working on a code to convert float to Q15. I am working with just 4 samples. I have stored the 4 coefficients in coeff[4]. the converted value is going to get stored in h[4]. I am using the following command: #pragma DATA_SECTION(h,".coeffs") DATA h[NH]; and I am getting following warning: warning: creating output section .coeffs without SECTIONS specification The program is getti...


Ask a Question to the DSPRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright