Hello!
I am currently working on an audio project using the MSP432P401R launchpad, and I've been having some trouble using the timer Interrupts on the device. For this application, we would like to sample the input at 44.1 kHz. Our current setup involves interfacing a 16-bit ADC via the SPI interface on the MSP432 and setting up the timer interrupt to read from the ADC at the desired frequency.
However, we have run into a problem where the timer interrupt, although being set up to run at the given frequency, will be unable to run at this frequency due to a software bottleneck. The reason we believe it is a software bottleneck is due to the fact that when more/less code is being executed inside the timer interrupt ISR, the frequency decreases/increases respectively. Currently, our ISR is simply toggling a pin, then reading from an ADC, then writing to a DAC, then clearing the ISR flag.
Some things we have tried to do to increase the MSP432's performance include trying to set it to 32-bit mode within project properties and turning on full project optimizations. The 32-bit mode did not work due to the "target processor option" not being correct (I am not sure exactly what this means, but it is the option directly above the 16/32 bit option in Code Composer's Project Properties) and the full optimizations got rid of some functionality.
We are using Code Composer 6 for this project. Any debugging tips would be appreciated!
Thank you!
-Daniel