Other Parts Discussed in Thread: C2000WARE
Hi, Engineers
I am trying to setup the CPU2 interrupt. CPU timer0 interrupt is setup, but no int triggerred. by the way, is it possible that setup PWM4 interrupt on CPU1 and CPU2 handles the PWM4INT?
the code is below:
////////--------PIE interrupts---------/////////////////
pie.PIECTRL.bit.ENPIE = 1; // enable PIE vectors ENPIE=1
pie.PIEIFR1.all = 0x0000; // clear all PIE INT1 flags
pie.PIEIER1.all = 0x0000; // disable all PIE INT1
pie.PIEIER1.bit.INTx7 = 1; // enable INT1.7 = T0INT - T0 CPU
pie.PIEACK.all = 0xFFFF; // clear all PIE ACK flags
// CPU interrupts
IFR = 0;
IER = 31;
// CPU Timer T0
T0.PERD = 32000; // 5kHz, T0PER = 200us s at 160 MHz
T0.CTRL.all = 0xC820;