Hello,
I'm on Control Card F2837x.
My project is issue from exemple development kit TMDSIDDK v2.0 to control a brushless motor.
Then I have a Main ISR interrupt to compute the motor control loop (Set to "LPI" low priority) issue from ADC/Pwm interrupt
I have also an It from Pwm to control a Resolver Feedback which is set to "HPI".
Now I have integrated the USB from the usb_dev_serial exemple.
USB use also interrupt.
Problem is this interrupt occurs always and like my MainISR allowed interrupt (EINT) to be preempted by the resolver interrupt, this MainISR is also preempted by the USB interrupt.
This USB interrupt can take a long time 1.8µs or 15µs only when I connected to the computer, without any trafic on it.
The UsB trafic is not a priority for my application.
1- Is it normal to have an interrupt with an exact period of 1ms even if no trafic? (Where come from this exact period of 1ms?)
2- Can we configure the USB stack to work in "Polling mode" instead of interrupt mode?
3- if interrupt mode is mandatory, which is the better way to not interrupt my MainISR by the USB without discard any USB frame?
Thank