News for hackers. Stuff that matters.
Re:Digital Audio 101: Playing Audio from a Microcontroller by virgil_disgr4ce on Thursday April 15, 2021 @12:22PM (#26822502)
I mean... a microcontroller has only one 'loop'. If you don't want to 'block' it, you either 1) use external devices, i.e. a synth chip or 2) compose the multiple notes you want into one signal. If you're doing PWM only then option 2 will rapidly start to present interesting challenges.
Re:Digital Audio 101: Playing Audio from a Microcontroller by GeorgeTirebiter on Thursday April 15, 2021 @08:19PM (#26827824)
Counter/Timer peripherals on even low-end chips can help here.
Re:Digital Audio 101: Playing Audio from a Microcontroller by chabes on Thursday April 15, 2021 @12:25PM (#26822550)
Some MCUs have multiple cores
Re:Digital Audio 101: Playing Audio from a Microcontroller by makapuf on Thursday April 15, 2021 @01:59PM (#26823986)
But those dual core are generally way more powerful that a cortex m4 at 100mhz with a dac, where pwm gen is not necessary.