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.

TMS320F2800157: Configuration of A16/C16/GPIO028, as analog pin in Sysconfig

Part Number: TMS320F2800157
Other Parts Discussed in Thread: SYSCONFIG

Hello All,

I am using TMS320F2800157

How can I configure the A16/C16/GPIO028 pin as an analog pin using Sysconfig? I attempted this with a different SOC4, replacing ADCint4 with ADCint16. However, the register consistently reads 0xFFF without updating the ADC values when adjusting the voltage with a potentiometer.

Could someone please offer guidance on properly setting up A16/C16/GPIO028 as an analog pin in Sysconfig?

Thanks and Regards

Siva Kumar

  • Hi Siva,

    Could you try starting out with one of the ADC examples? In SysConfig, you should only need to select your desired channel in the SOC menu for that pin to be set up as an analog pin. You still need to make sure that you are providing a trigger for that SOC. You also need to make sure that you're including the sysconfig generated source files correctly, which is shown in our examples.

    Best Regards,

    Ben Collier

  • Hello Ben Collier,

    Thank you for responding. The ADC pins in Sysconfig have been configured as desired, and all are working except for A16/C16/GPIO28. Unfortunately, no data has been received from the registers for this particular pin. Although I'm using SOC4 channel to read ADC data, it seems inadequate for retrieving the A16 value. Could you confirm which SOC channel should be utilized to read the A16/C16 ADC data?

    Below are the images of Sysconfig.

    Despite using SOC4, it is not reading the A16 value accurately..

    Selecting the A16 pin in Sysconfig.

    AGPIOCTRLA enable registers

    The default value remains high (0x0FFF), and it does not change even as I adjust the potentiometer.

    Regards & Thanks

    Siva Kumar