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.

LAUNCHXL-F28027: ADC requires the ADCTRL3.ADCCLKPS configuration?

Part Number: LAUNCHXL-F28027
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Hi Experts,

We'd like to ask clarification on this from a user:

I don't think the ADC on the F28027 requires the ADCTRL3.ADCCLKPS configuration, as I didn't find ADCTRL3.ADCCLKPS in its header file.

Here's the situation: I remember that when configuring ADC for C2000, I need to first enable the ADC system clock (PCLKCR0.ADCENCLK) and then set the clock divider (ADCTRL3.ADCCLKPS). However, in F2802x_adc.h, I only see ADCTRL1 and ADCTRL2, and I can't find ADCTRL3.

So I'm not sure if this step of configuration is still necessary.

Thank you.

Regards,
Archie A.

  • Hi Archie,

    Apologies for the late reply! Many team members are out of the office this time of year.

    The ADC clock prescaler is still configured via ADCTRL3.ADCCLKPS. The ADC reference guide explicitly shows that HSPCLK is divided down by ADCTRL3.ADCCLKPS[3:0] (with an additional divide-by-2 via ADCTRL1.CPS).

    The missing ADCTRL3 issue is just a header/include mismatch, not a hardware/feature change. In many projects, F2802x_adc.h is a driver/helper header and may not expose every register bitfield. The register/bitfield definitions where you’ll see AdcRegs.ADCTRL3.bit.ADCCLKPS) are typically in the device header set.

    If your current include set doesn’t show ADCTRL3, include the device register headers via the standard project include like DSP28x_Project.h / device header bundle used by C2000Ware/controlSUITE for F2802x.

    Best Regards,

    Masoud