Author Topic: ARM ST32F400 - best way to generate a 400Hz sinewave, w/o the CPU doing it all  (Read 3050 times)

0 Members and 1 Guest are viewing this topic.

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Yes, but you must compute all, every time. The main thing was to not have to do that.
So in that case you must have these 3600 steps stored somewhere.

why bother?  a 700ns interrupt every 25us is less the 3% of the cpu
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5907
  • Country: es
If it really does ok with 100 samples/wave...
And you must add the interrupt overhead too.
Anyways, in the same case, 100 samples in the dma will be a lot faster. And only requiring 400bytes of ram.
« Last Edit: February 16, 2021, 11:42:35 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf