Tool/software: Code Composer Studio
I'm using MSP432P401R with TI-RTOS(CCS).
My system has 3 tasks(adc, ethernet, encoder).
The encoder is connected to a GPIO interrupt.
The ADC task runs on a 12,500Hz timer and reads it as SPI within the timer callback function.
Since the SPI function consumes about 80us, it can be said that it consumes most of the time here.
The problem is that encoder interrupts are not read correctly.
The encoder generates 2000 pulse/r. As I move the encoder quickly, only 10 pulses are generated. I need to move very very slowly to generate 2000 pulses.
So I've tested it and it seems that there is a conflict with the timer of the ADC task.
When the ADC task runs on a 10Hz timer, the encoder works perfectly.
Can Interrupt and Timer conflict?
How can I solve it?(Interrupt Priority? Multi-interrupt?)
Thank you.