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.
Hello,
I am using a Piccolo x28075 for my application. It involves control loops for which I am hoping to use the CLA.
I need to directly access the ADC RESULTS Register to get the ADC values. I read this value within my CLA task code (which I have written in C). I read this in this way
UInt16Variable = AdcaResultRegs.ADCRESULT0;
I have placed an _mdebug and on comparing the ADCRESULT0 value and the UInt16Variable I see that they are very different. (I have placed the _mdebug after many statements so no issue of pipelining)
How do I make sure that the CLA is able to properly access the ADCRESULTS0 register ? I have not included the "F28x_Project.h" in the .cla file. Instead I have included the "F2807x_adc.h" for accessing the ADC registers.
Any ideas?
Mathew JM
Hi Mathew,
datat types differ between the c28x and the CLA. You will need to include F2807x_Cla_typedefs.h before including any peripheral header files.