Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi,
My code is behaving erratically after sometime from start. The code is slightly long with many calculations. I want to check the code execution time for the code written inside the ISR. I am toggling GPIO64 at the start and end of ISR as:
GpioDataRegs.GPCTOGGLE.bit.GPIO64 = 1; // GPIO64 for loop execution time
I have also done the settings for GPIO as:
void GpioSelect(void)
{
EALLOW;
GpioCtrlRegs.GPCGMUX1.bit.GPIO64 = 00; // Selecting pin function as GPIO64
GpioCtrlRegs.GPCMUX1.bit.GPIO64 = 00; // Selecting pin function as GPIO64
GpioCtrlRegs.GPCDIR.bit.GPIO64 = 1; // GPIO64 as output
GpioDataRegs.GPCCLEAR.bit.GPIO64 = 1; // GPIO64 value initialize
EDIS;
}
Is this ok?
Regards