Question: Enable channel 2 of microcontroller DAC. Write a program to prepare a memory buffer with shifted (unsigned) audio samples by processing each audio sample individually.
Enable channel 2 of microcontroller DAC. Write a program to prepare a memory buffer with shifted (unsigned) audio samples by processing each audio sample individually. Include buffer processing code into an endless loop (for measurement only). After processing is completed include a delay for 5 milliseconds. Use a timer to measure processing time. Reset timer counter to zero before processing starts. In your program declare time variable. After processing is completed assign the value of timer counter to this variable. Observe the variable in STM32CubeMonitor and estimate computation time T1 in milliseconds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
