Posted inanalog3 tech notes
How Busy Will the Microcontroller Be for Generating Envelopes?
In the previous article, I described how to calculate envelope curves and how to determine the calculation parameters. This article is about calculation speed. I implemented the ADSR calculation and found that it's desirable to update envelope values as fast as every 125 microseconds (8 kHz). The STM32C092KCT controller has clock frequency 48 MHz at the highest. Each update interval has 6,000 clock cycles. I wonder the number of cycles are enough to run the envelope generator. I'm sure they are enough to calculate the values, but the controller has more jobs than that in order to run as a module: Send data to DAC, there will be two channels…
