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.

TMS320F28P550SJ: ADC_enableSampleCAPReset() in the drilverlib does not seem correct?

Part Number: TMS320F28P550SJ
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi champs,

I am asking this for our customer.

The user found by using the driverlib API in C2000ware V5.04 like below

 ADC_enableSampleCAPReset(ADCB_BASE, ADC_SOC_NUMBER1);

But the result was incorrect because the upper 16-bit part (TRIGSEL etc.) was modified as zero unexpectedly.

If the user uses bit-field format like below, then it works.

AdcbRegs.ADCSOC1CTL.bit.SAMPCAPRESETDISABLE = 0;

Would you please help look into ADC_enableSampleCAPReset() and ADC_disableSampleCAPReset()?

For example, does it make sense to define below as 0x200U rather than 0x00000200 in uint32_t?

#define ADC_SOC0CTL_SAMPCAPRESETDISABLE   0x200U        // SOC0 Sample Cap Reset Select