DSPRelated.com

REg: inline assembly

Started by Giridhar Tammana in TMS320c54x18 years ago 1 reply

Hi, I'm using c64x simulator. I want to use swap2 instruction. For this there is no intrinsic. How can I write inline asm if possible to use...

Hi, I'm using c64x simulator. I want to use swap2 instruction. For this there is no intrinsic. How can I write inline asm if possible to use swap2 instruction? { .... unsigned int val; asm("swap2 val, val"); ..... } asm("swap2 val, val"); above statement is wrong. I also tried _val for val. And GCC like asm("swap2 %0,%0" :"r" val); also doesnt work? Pls repl...


Fractional Divison operation

Started by sach...@gmail.com in TMS320c54x18 years ago 2 replies

Hello: I would like to perform the following operation on C54xx x/y*abs(x). Where y is constant and always greater than x. X and Y are in Q15...

Hello: I would like to perform the following operation on C54xx x/y*abs(x). Where y is constant and always greater than x. X and Y are in Q15 notation. Though TI documents on how to perform division, but in those scenarios x is always greater than y. I am not sure how to tackle this scenario. Probably by applying some sort of scaling to x before the division. Also, in order to reduce quant...


RE: connect C5402 DSK to a win XP PC

Started by etha...@163.com in TMS320c54x18 years ago

hi, if you use USB connection,it will be very simple if you use parallel connection,you can check parallel set mode > > > > ...

hi, if you use USB connection,it will be very simple if you use parallel connection,you can check parallel set mode > > > > hi, > > do you want to make a serial connection, or via parallel or jtag? > derk > > > > -----Original Message----- > > From: Ping Li [mailto:] > > Sent: dinsdag, september 17, 2002 11:44 > > To: > > Subject: [c54x] connect C5402 DSK t


McBSP as UART

Started by Andrew Ness in TMS320c54x18 years ago

Hi, I've followed the directions in SPRA661 to implement a software UART using the McBSP port 0. I am using a C5416 device and modified the...

Hi, I've followed the directions in SPRA661 to implement a software UART using the McBSP port 0. I am using a C5416 device and modified the included assembly slightly to allow for using a far memory model. Things work okay for the most part, but I am experiencing parity and framing errors every now and then when transmitting to the DSP. Sometimes I can transmit 100 or more characters wi...


Using RIFFT and CIFFT

Started by Guilherme Martinhon in TMS320c54x18 years ago 1 reply

Hello people! Does someone in this groups use the RIFFT or CIFFT function? I?m using it, but I can?t reach some results. I?m doing a FFT of a...

Hello people! Does someone in this groups use the RIFFT or CIFFT function? I?m using it, but I can?t reach some results. I?m doing a FFT of a real signal (using RFFT) anda after I want to reconstruct the same signal. As the FFT is a complex signal, I?m using the CIFFT function. My original signal has 256 points. The RFFT256 give only the half of the axis, so it has 128 complex values (256 on ...


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

Started by Jeff Brower in TMS320c54x18 years ago

Megha- Here is another way to think about it. If you start with simple 2-pole filter time domain equation: y[n] = b0x[n] + b1x[n-1] +...

Megha- Here is another way to think about it. If you start with simple 2-pole filter time domain equation: y[n] = b0x[n] + b1x[n-1] + b2x[n-2] +a1y[n-1] + a2y[n-2] Let's say your largest a or b coefficient is 3.5. Then you can think of quantizing coefficients to Q13 format -- 2 digits to left of decimal point, or maximum values of -4 and +3.9995 represented by each 16-bit word. Th...


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

Started by Jeff Brower in TMS320c54x18 years ago 1 reply

Megha- > I had one question regadring the normalization and I just thought > if you can help. When I normalize the sos matrix (by diving it...

Megha- > I had one question regadring the normalization and I just thought > if you can help. When I normalize the sos matrix (by diving it by > a factor), what should I do with value of "g". I guess that is also > suppose to be normalized. I assume that "g" is the gain factor for the overall filter. In that case, you don't have to do anything to it. When you have DAC value ready to


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

Started by megha daga in TMS320c54x18 years ago

Dear Jeff I did normalize and quantize the sos to Q15. But the thing I am not getting any difference in the filtered output of non quantized and...

Dear Jeff I did normalize and quantize the sos to Q15. But the thing I am not getting any difference in the filtered output of non quantized and quantized coefficients. I checked the pole zero plot in both the case and its the same. Following are my calculations: Fs = 48000; HalfFs = Fs/2; Wp = 6000/HalfFs; Ws = 8600/HalfFs; Rp = 3; Rs = 20; [n,Wn] = buttord(Wp,Ws,Rp,...


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

Started by Jeff Brower in TMS320c54x18 years ago 1 reply

Megha- Please post these questions to MATLAB group (m...@yahoogroups.com). They can help you figure out why your MATLAB code below is not...

Megha- Please post these questions to MATLAB group (m...@yahoogroups.com). They can help you figure out why your MATLAB code below is not yet working. -Jeff > I did normalize and quantize the sos to Q15. But the thing I am not > getting any difference in the filtered output of non quantized and > quantized coefficients. I checked the pole zero plot in both the case and > its the sam


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

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > wont the scaling of coefficients effect the filter response? Scaling all coefficients changes the overall filter gain, but the not...

Megha- > wont the scaling of coefficients effect the filter response? Scaling all coefficients changes the overall filter gain, but the not the shape of the frequency response. -Jeff > > Jeff Brower wrote: > > 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


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