Post Created date
Alternatives to timer interupt
Got it to work after some tweaking.  The error was in the bit shifting which caused an overflow.    It's fixed now and samples 44.1k times   - Chris
Monday, 17 June 2019 - 15:03
Alternatives to timer interupt
Hello,   Im not sure what you mean by this.   The input is a 1v sine wave. And the formula is the same as the code posted a few replies above.   EDIT: The interupt...
Friday, 14 June 2019 - 17:39
Alternatives to timer interupt
Having tested it, it doesnt work sadly The interupt routine works but the filter doesnt.. It seems to oscilate even without an input signal which seems odd to me.
Friday, 14 June 2019 - 13:18
Alternatives to timer interupt
Allright i will stick to the code i posted earlier then and test it somewhere tommorow, thank you.       -Chris
Tuesday, 11 June 2019 - 18:29
Alternatives to timer interupt
Thank you for the reply this is very informative.   My application is just to test a few things and to learn stuff.   So the specs i've made for my filter are 1% THD in...
Tuesday, 11 June 2019 - 16:26
Alternatives to timer interupt
Yes i know its still duplicated thats why i commented that it still needs to be changed. It was just to make the math clear for myself.   And i could probably remove the...
Tuesday, 11 June 2019 - 15:39
Alternatives to timer interupt
This is what i've made of it now. I've changed the interupt to your suggestion and do the dac first and i've added a port so that i can check with my oscilloscope for...
Tuesday, 11 June 2019 - 13:25
Alternatives to timer interupt
i'm not sure if i truly understand but what you are saying is that i should have a rough estimate of the ISR time for my filter?   And then make it so that every ISR is the...
Tuesday, 11 June 2019 - 12:39
Alternatives to timer interupt
I'm sorry i was unaware of people being unable to acces pastebin it was meant so that my post wouldnt get cluttered.   This is the code van from the pastebin:   void...
Tuesday, 11 June 2019 - 09:04
Alternatives to timer interupt
I understand it's fun to try some stuff out though.   I've attempted to make something of the suggestions in the thread but i'm now stuck on event syncing also im not sure if...
Monday, 10 June 2019 - 22:26
Alternatives to timer interupt
@kerim thanks for the input but my assembler knowledge is about 2 lines i'm sorry.   @avrcandies Wouldn't dividing cause even more errors? just like the fixed point, which...
Monday, 10 June 2019 - 19:16
Alternatives to timer interupt
Basically the pastebin code is all it needs to do. The way it is now which is what needs to be changed is the timer overflow interupt.   It initializes the adc, dac and a...
Monday, 10 June 2019 - 15:12

Pages