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.

TMS320F28374S: CLA read ADC data error

Part Number: TMS320F28374S

Hi expert,

My customer is reading ADC result with CLA.

Statement as below:

vxCapR = AdcaResultRegs.ADCRESULT0;

vxCapR is a float type variable.

The result we get from vxCapR is 65535 times of the actual voltage value on ADC pin. 

Disassembly is shown below:

818               vxCapR = AdcaResultRegs.ADCRESULT0;

0000a3d8:   74800B00    MUI32TOF32 MR0, @0xb00

0000a3da:   74C01490    MMOV32     @0x1490, MR0

CCS:              v8.3.1;

Compiler:    v18.12.5 LTS

Thanks

Sheldon