Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
christopheridle
PostPosted: Mar 08, 2012 - 02:42 PM
Newbie


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
 
 View user's profile Send private message  
Reply with quote Back to top
indianajones11
PostPosted: Mar 09, 2012 - 12:59 AM
Raving lunatic


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
 
 View user's profile Send private message  
Reply with quote Back to top
christopheridle
PostPosted: Mar 10, 2012 - 11:35 AM
Newbie


Joined: Feb 14, 2012
Posts: 2


I am looking for 60KHz bandwidth FIR with about 500 taps.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 10, 2012 - 04:42 PM
10k+ Postman


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.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
leon_heller
PostPosted: Mar 10, 2012 - 05:13 PM
Raving lunatic


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
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
indianajones11
PostPosted: Mar 11, 2012 - 03:29 AM
Raving lunatic


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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits