Part Number: TMS320F28069M
Tool/software:
Dear TI Team,
I am using the TMS320F28069M microcontroller for my development.
I used CLA to read ADC data and send it to the CPU.
I tried to toggle the GPIO in the CLA task. I failed to toggle the GPIO in the CLA task.
My query is How to toggle GPIO in CLA tasks?
The code is shown below.
__interrupt void Cla1Task1 ( void )
{
// Local Variables
dummyCounter++;
for(ConversionCount=0; ConversionCount < NUM_DATA_POINTS ;ConversionCount++)
{
VoltageCLA[ConversionCount] = AdcResult.ADCRESULT1;
}
if(dummyCounter >= 10 )
{
GpioDataRegs.GPATOGGLE.bit.GPIO17 = 1;
dummyCounter = 0;
}
// for(dummyCounter =0 ; dummyCounter < 100000; dummyCounter++);
}
Thanks in advance.
Regards
Ram Singh