Attached is the filter coefficient file and a sample code
Please check if there's some error in the coding...
Note that all the filter coeficients will be stored as an '.inc' file and there will be a 'include filter_coefficients.inc' in the .asm file.
coefficients are labelled as follows, for instance in "f1_b11l":
f1: filter function1 (note there will be a couple)
b11: coefficient of x(n)
l: refers to the lower byte
Also note in the 'sample code ' file, this is not a template...this is so you can read and understande my code...
I will fill in values for coeffients later as im doing the coding first...
I want you to check if the "coefficient buffer initialization" is done properly, also i know I'll have to clear the sample buffer at some point...so check that as well...and i want to know if this should be in a subroutine or macro...
my goal is to write an efficient code written in a way to reduce the numer of cycle as much as possible...
Next post will be a piece of code for a macro that does this: z+= x*y , where z is 24-bit register, x and y are 10-bit number stored in two byte register.
Thanks for your comment!
Please check if there's some error in the coding...
Note that all the filter coeficients will be stored as an '.inc' file and there will be a 'include filter_coefficients.inc' in the .asm file.
coefficients are labelled as follows, for instance in "f1_b11l":
f1: filter function1 (note there will be a couple)
b11: coefficient of x(n)
l: refers to the lower byte
Also note in the 'sample code ' file, this is not a template...this is so you can read and understande my code...
I will fill in values for coeffients later as im doing the coding first...
I want you to check if the "coefficient buffer initialization" is done properly, also i know I'll have to clear the sample buffer at some point...so check that as well...and i want to know if this should be in a subroutine or macro...
my goal is to write an efficient code written in a way to reduce the numer of cycle as much as possible...
Next post will be a piece of code for a macro that does this: z+= x*y , where z is 24-bit register, x and y are 10-bit number stored in two byte register.
Thanks for your comment!
Attachments
-
676 bytes Views: 11
-
2.1 KB Views: 16
Last edited: