Tool/software: Code Composer Studio
Hi, Dear colleague
I want to set the fast-interrupt of fault3 with the code , but failed, Could you tell me what's wrong with it?
TimerRegs.T16PWM2CMPCTRL.all = 2; //Enables compare 0 (reset) interrupt
TimerRegs.T16PWM2CNTCTRL.all = 0x00c; //PWM counter is running & enables PWM counter reset by compare action on compare 0
disable_fast_interrupt(); //make sure fast interrupt is disabled
write_firqpr (CIMINT_ALL_FAULT_PIN); //(0x02000000); //make them all irqs except FAULT_INT
enable_fast_interrupt(); //make sure fast interrupt is enabled for OVP shutdown