Can access the Configuration Registers "MIER" at the CLA?
Example:
MMOV32 MR1, #0x00000001
MMOVZ16 MR3, @_Cla1Regs.MIER.all
MOR32 MR3, MR3, MR1
MNOP
MNOP
MMOV16 @_Cla1Regs.MIER.all, MR3
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.
eric yg said:Can access the Configuration Registers "MIER" at the CLA?
Example:
MMOV32 MR1, #0x00000001
MMOVZ16 MR3, @_Cla1Regs.MIER.all
MOR32 MR3, MR3, MR1
MNOP
MNOP
MMOV16 @_Cla1Regs.MIER.all, MR3
Eric,
The CLA can not access its own registers.
Regards,
Lori
Hi Lori,
Thank you!
So, it can only access at the c2000 CPU. such as at the CLA1_INTx ISR also.
I have other one experience what can not into CLA1_INTx ISR when CLA Task completes.
My code CLA1_INT1 source is from epwm1. I testified that the CLA Task1 had come in. But can not in to the breakpointer of the INT11.1 when the Task1 completes.
My Initialize :
EALLOW;
PieVectTable.CLA1_INT2 = &cla1_isr1;
EDIS;
EALLOW;
PieCtrlRegs.PIEIER11.bit.INTx1 = 1;
EPwm1Regs.CMPA.half.CMPA = 62;
EPwm1Regs.ETSEL.bit.INTSEL = ET_CTR_ZERO;
EPwm1Regs.ETSEL.bit.INTEN = 1;
EPwm1Regs.ETPS.bit.INTPRD = ET_1ST;
EPwm1Regs.ETCLR.bit.INT = 1;
Cla1Regs.MPISRCSEL1.bit.PERINT1SEL = CLA_INT1_EPWM1INT;
IER |= M_INT11;
EINT;
ERTM;
EDIS;
interrupt void cla1_isr1()
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP11; /* set breakpointer here*/
}