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.

Can ADC pins of TMS570LS0432 used as GPIO?

Other Parts Discussed in Thread: TMS570LS0432

Hi

Am using TMS570LS0432 controller for my project. Almost all the GPIOs available are used in my application. Now am running short of GPIOs. Now that the controller is fixed, I should some how use the unused ADC pins as GPIO.

Can  ADC pins of TMS570LS0432 used as GPIO?

If yes, are there any precautions to be taken in order to use the available ADC pins as GPIO (both in hardware and software).

  • An,
    Only the ADEVT pin can be used as a GPIO. The ADIN pins can be converted as analog inputs (which can be configured to be done automatically by the ADC by setting up one of the conversion groups for continous conversions). For most of the pins you'd then need to apply a software 'compare' on the result to determine if the pin is high or low. But there are 3 magnitude compare sets of registers (See ADCMAGINTxCR) where you tell the ADC to monitor the conversion results on one of the input pins and trigger an interrupt whenever that input crosses a programmable threshold.
    Summary: You can use the ADEVT pin as GIO. The ADIN pins can be used for up to 3 'slow' interrupts w. programmable threshold with the rest of the inputs being 'slow' polled inputs.
    By 'slow' I mean you have to convert the channels in order to update their input values - since conversions take about 1.6 to 2us - that's about 500 times slower than a normal GIO when it comes to 'sensitivity' to edges. But you normally don't read GIOs that quickly - it's only the edge detection logic that's that sensitive normally.