Timeline for Is this sampling frequency right?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 17, 2018 at 19:21 | comment | added | A_A | @XavierPachecoPaulino that's fine. I personally don't think a new question is required. You can update the current one with the latest data though. | |
Feb 17, 2018 at 19:17 | comment | added | Blue_Electronx | @A_A I'm not sure. I made a pin toggle during ISR to see if the sampling frequency is what I intended. And it's okay, the pin toggles with a frequency ok 9.99 kHz, as expected. If you think I should either modify or create another question on the forum, let me know. I would like to continue discussing this topic until I find out the cause of my problem. | |
Feb 17, 2018 at 19:09 | comment | added | A_A | @XavierPachecoPaulino that's fine, but are you sure that the ISR finishes within a sample time? | |
Feb 17, 2018 at 19:07 | comment | added | Blue_Electronx | @A_A I realized that FPU was enabled. So that's not the problem. Something that I noticed is that when I lower the sampling frequency, I approach a bit to the target frequency. I still don't understand what could be happening. | |
Feb 17, 2018 at 13:04 | comment | added | A_A | @XavierPachecoPaulino Thanks for letting me know but please note that this board's functionality is different than that of a forum. If you have additional data later that may be affecting your question it will be better to update your original question. Otherwise we are likely to lose the plot on what is mentioned where and what the exact problem and its solution is. | |
Feb 17, 2018 at 13:02 | comment | added | Blue_Electronx | Hi all. Thanks for your comments. I find them very useful. What I'm going to do now is to check if my FPU is enabled and then try again. I will let you know what's going on, | |
Feb 17, 2018 at 12:50 | comment | added | A_A | @mtrw You might want to leave this as a comment to the person who asked the question, optionally quoting this answer (?) | |
Feb 17, 2018 at 12:44 | comment | added | mtrw |
One way to check is to set b0 = 1.0 , set the other coefficients to 0.0 , (i.e., make a filter with 1.0 gain and no phase shift) and feed a simple signal like a sine wave in. You should get the same sine wave out. Besides processing speed, this will also check if your double is converted back to whatever the DAC expects correctly.
|
|
Feb 17, 2018 at 12:05 | history | answered | A_A | CC BY-SA 3.0 |