Hello,
I'm following the examples "cla_ex1_adc_fir" and "cla_ex2_background_task" from the DriverLib f280049 folder in C2000 ware, but even without changing anything (but the Targetconfigs to debug the Launchpad f280049), the ADC values acquired are not consistent. The output value of the filter changes from 35 to -2048 erratically whether the pin ADCINA0 is connected to +3.3V or ground. However, it is possible to read successfully the ADC value from CPU1 using ADC_readResult(ADCARESULT_BASE, ADC_SOC_NUMBER0);
On the other hand, I haven´t been able to change epwm CMPA value from cla.
I've been trying to use SysCtl_setPeripheralAccessControl(SYSCTL_ACCESS_ADCA,SYSCTL_ACCESS_CLA1,SYSCTL_ACCESS_FULL ) to allow access for the cla to the peripheral but no success
I've added too #include "f28004x_cla_typedefs.h" to the cla file but no success.
Using assembler code for the cla is not an option.
What am I doing wrong? is there another example that successfully reads the ADC / changes CMPA from the cla?
I've spent many hours on a project that uses the CLA, and CPU1 with the DriverLib and this is the only part that doesn't work, I'd thank you very much if you can give me an advice