| Author |
Message |
|
|
Posted: Mar 08, 2012 - 02:42 PM |
|

Joined: Feb 14, 2012
Posts: 2
|
|
I am trying to design an FIR filter for an XMEGA device.
Does anyone have any C code or ASM code for an FIR filter? Or can you point me in the right direction.
Thanks
Chris |
|
|
| |
|
|
|
|
|
Posted: Mar 09, 2012 - 12:59 AM |
|

Joined: Nov 28, 2004
Posts: 3552
Location: San Diego, Ca
|
|
| Atmel has a FIR code A.N. on their site, that's good up to about 15 KHz, IIRC ( Google for it ) . What are your specs ? |
_________________ 1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1
|
| |
|
|
|
|
|
Posted: Mar 10, 2012 - 11:35 AM |
|

Joined: Feb 14, 2012
Posts: 2
|
|
| I am looking for 60KHz bandwidth FIR with about 500 taps. |
|
|
| |
|
|
|
|
|
Posted: Mar 10, 2012 - 04:42 PM |
|


Joined: Jul 18, 2005
Posts: 62337
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| Note that there's going to be nothing particularly Xmega specific about a digital filter so you can broaden your search - even beyond AVR in fact. |
_________________
|
| |
|
|
|
|
|
Posted: Mar 10, 2012 - 05:13 PM |
|


Joined: Jul 27, 2001
Posts: 7429
Location: St. Leonards-on-Sea (UK)
|
|
See this thread:
http://www.avrfreaks.net/index.php?name ... p;t=118020
The dsPIC I suggested there would be a better choice than the Xmega. I've just assembled the PCB I mentioned there with the minimal number of parts needed to test it, it's working OK so far. |
_________________ Leon Heller
G1HSM
|
| |
|
|
|
|
|
Posted: Mar 11, 2012 - 03:29 AM |
|

Joined: Nov 28, 2004
Posts: 3552
Location: San Diego, Ca
|
|
|
christopheridle wrote:
I am looking for 60KHz bandwidth FIR with about 500 taps.
What kind of app. is THAT, which needs so many taps in a practical design ? I'd be surprised if the non-MAC-unit Xmega can pull that off, esp. depending on what the rest of the app.'s doing ( Is it just for curiosity to see how close to a brickwall response you can get ? 32 MHz / 60 KHz = 533 cycles is all you have per sample ) .
It'll be interesting to know what the TAP_max will finally be, but it won't be ANYWHERE near 500 w/o a MAC unit, ZOL and circular buffers even if the adc, or an ext. adc , was fast enough to keep up . |
_________________ 1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1
|
| |
|
|
|
|
|