This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STR9 motor control

I was interested in using the three phase motor controller for the MCBSTR9 eval board. I cant get the ADT interrupts working. Here is the code for the MC_IRQHandler. How do I initialize the interrupts?

void MC_IRQHandler(void)
{ if (MC_GetITStatus (MC_IT_ADT) == SET){ MC_ClearITPendingBit(MC_IT_ADT); MC_ClearITPendingBit (MC_IT_ADT);

VIC0->VAR = 0xFF; /* Acknowledge Interrupt */ }
}

0