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.

TMS320F28069: TMS320F28069

Part Number: TMS320F28069
Other Parts Discussed in Thread: CONTROLSUITE

Dear Friend,

I am trying to use the Analog comparator for comparing  the external analog voltage with the reference voltage and then the output of the comparator has to to be captured for high capture module. I tried to use EPWM TZ  (trip zone ) sample program provided in the Control Suite  software. 

When I am trying to use ADCA2, and ADCB2 as signals as comparator input. Is the output of comparator starightway cannot come to GPIO 20 (Comparator output)?

When I am checking the comparator output  at GPIO 20 pin , I am not getting any change if i swap  the ADC1 & ADC2 signals. IS there any sample program or application note to understand ? 

Kindly indicate where am I making mistake?

Regards,

S.M.Sundari,

 

  • S.M.Sundari,

    You will find that most digital pins on the device are assigned multiple functional signals. The GPIO module uses a software-configurable MUX to determine which signal is routed to the pin. The analog pins do not use a MUX -- all functions are simultaneously available.

    The COMP1OUT signal is available on the GPIO20 pin, but the default MUX selection for the pin is to pass through the GPIO functionality.  You will need to configure the pin to pass through the COMP1OUT signal instead using the GPAMUX2 register.

    The technical details can be found in the TRM. There are also examples of GPIO MUX configurations in the various controlSUITE examples.

    -Tommy

  • Hi,

    I have made  a mistake of non configuring AIO2 signal 

  • S.M.Sundari,

    The AIOs should be configured as disabled (default) when using the ADC or Comparator function. AIO is a feature that allows the ADC pins to be used as GPIO-like signals (as a last resort) when the native GPIO signal availability has been exhausted.

    -Tommy