This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/INSTASPIN-BLDC: TMS320F28027

Part Number: INSTASPIN-BLDC

Tool/software: Code Composer Studio

Hi,

I have a question about the interrupt  priority setting in the application of instaSpin-foc. My system has two interrupts: the ADC interrupt and the ecap interrupt. The ADC interrupt is used to obtain the three-phase current and voltage, and the ecap interrupt is used to obtain the external control instructions. My question is if the ecap interrupt is prior to the ADC interrupt, do there have any risks in the control  of current loop ?

  • That depends on how much CPU cycles will be taken by eCAP ISR. It should be ok if the eCAP ISR only needs a few CPU Cycles that is not close to the remaining bandwidth of ADC ISR for motor control. If not, you need to reduce the executing time of eCAP/others ISR.