Hi CNCMG (can I call you Bert?!))
I get where you're coming from...I will dabble tonight.
Fortunately (unlike my phase thread), such "Hmm, I wonder how many cycles it takes to do interrupt x" one that most on here can easily/readily do & experiment with too (no need for all pass filters etc).
But yes, with such time sensitive stuff as generating a desired sine wave frequency, we all need to know the overhead involved in the generation code ....just so we can cater for them.
For example, I was factoring in an a count of '30' to the Timer1 preload value to finally the actual frequency being targeted (vs what I was seeing), which suggests it takes 30 instruction cycles to handle all the interrupt to-ing & fro-ing?
Bookmarks