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.

TMS320F280039: GPIO20 and GPIO21 analog and digital configuration

Part Number: TMS320F280039
Other Parts Discussed in Thread: SYSCONFIG

Hello,

We are using F280039 100 pin (PZ) package in one of our designs.

I need clarification on the following:

How are the 2 ADC pins B5 (pin 32), B11 (pin 30) internally coupled with the GPIO pins B5GPIO20 (pin 48) and B11GPIO21 (pin 49)? Can I use pins 32 and 30 for analog inputs (ADC inputs B5 and B11) and simultaneously use pins 48 and 49 as GPIO? If that is possible, how to configure them in the code?

When I tried to configure the 4 pins as intended using .syscfg file, I get a "resource conflict" error message.

With regards,

 

Vijay Limaye

  • Hello Vijay,

    Some GPIOs on this device are multiplexed with analog pins. These are also referred to as AGPIOs. Unlike AIOs, AGPIOs have full input and output capability. This device has two GPIOs (GPIO20 and GPIO21) that offer this feature on the 100-pin PZ and 80-pin PN packages.

    100-Pin PZ: On this package, there are dedicated pins for B5 (pin 32) and B11 (pin 30) that also have AIO252 and AIO251 functionality, respectively. In addition, GPIO20 (pin 48) and GPIO21 (pin 49) are also available as B5 and B11, respectively. Since B5 and B11 are dedicated pins on this package, use these pins instead of the pins on GPIO20/21.

    SysConfig treats ADC channel B5 (and B11) as a single resource, and its current device data doesn’t fully model the AGPIO matrix; so if you try to “use B5” on both the dedicated pin and the GPIO20 pad inside SysConfig, it flags a conflict.

    For your use case you can let SysConfig assign ADCB5/ADCB11 to the dedicated analog pins (32/30), and manually configure GPIO20/21 as GPIO in user code without trying to enable the B5/B11 analog function on those pins in SysConfig.

    Best Regards,

    Masoud

  • Hello Masoud,

    Thanks for the reply.

    I have modified the code as per your suggestion (assigning ADCB5/ADCB11 to the dedicated analog pins (32/30) by SysConfig , and manually configured GPIO20/21 as GPIO) and will test the same.

    With regards.

    Vijay Limaye