Other Parts Discussed in Thread: C2000WARE
Hello,
I am trying to understand the CLA example adc_cla for 28035. Without making any changes to the code, I try to see the CLA interrupt frequency on my oscilliscope. The CLA is triggered by adc interrupt 2, which is set to 20 kHz interrupt frequency in the example. After the CLA task 2, an interrupt is cla1_isr2 is entered in order to clear the adc interrupt flag. I added a gpio toggle in cla1_isr2 to see the CLA interrupt frequency on the oscilloscope. However, regardless of how I set the ADC interrupt frequency, the gpio toggles at 500 kHz! How come?
BR Niclas
__interrupt void cla1_isr2()
{
GpioDataRegs.GPBTOGGLE.bit.GPIO41 = 1;
AdcRegs.ADCINTFLGCLR.bit.ADCINT2 = 1; // Clear ADCINT2 flag reinitialize for next SOC
PieCtrlRegs.PIEACK.all = 0xFFFF;
}