avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] Porting Digital Filters (doc2527) assembly to avrgcc


From: Kreyl
Subject: [avr-chat] Porting Digital Filters (doc2527) assembly to avrgcc
Date: Thu, 20 Mar 2008 13:32:15 +0300

    Hi!  

  I  want  to  implement FIR digital filter on my ATMega16, running at
  8MHz.  I was succeeded with input, output and C-based implementation
  of  the filter. It works, but too slow: troubles coming at 10 kHz of
  sampling frequency, and fifth order of the filter. 
  
  Surely, assembly would help me.
  
  But  I can't make included .S90 assembly file work for me. In C code
  of ATMEL example we see function declaration
  
  extern int FIR2( struct FIR_filter *thisFilter, int newSample );

  and usage:
  
  filterOutput = FIR2((struct FIR_filter*)&filter04, filterInput);
  
  And there is "FIR2: ..." filter function in 2nd_order_FIR.s90
  
  What  should  I do (makefile, includes, etc.) to tell compiler where
  to search and what to do with FIR2 function? 
  
  Thanks!   

 
                                          Best regards,
                                                        Kreyl

                                          mailto: address@hidden
                                             ICQ: 171094105





reply via email to

[Prev in Thread] Current Thread [Next in Thread]