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.

TMS320F28388D: TMS320F28388D: ADCIN and CMPIN

Part Number: TMS320F28388D

Hi,

I understand that the ADCIN and CMPIN share the same pin on MCU and always connected together internally.

With my project that I am working on,  I only want to use CMPIN with CMPSS module (for comparing analog signal from CMPIN pin) and don't need to read it by ADC module.

I have concern:

Must I configure the ADCIN pin with ADC module (by ADC_SetupSOC()....) in order to  make CMPIN pin has analog signal and CMPSS module work?

OR no need to configure the ADCIN pin with ADC module and  CMPIN pin still has analog signal and CMPSS module works normally?

Brs,

Longpt

  • Hi Longpt,

    They are independent modules; no need to perform any ADC configurations related to that channel if you only want to use the comparator on that channel. 

    Note that the comparator does have a mux to select comparison with the internal DAC or comparison with the pin the negative comparator input is connected to. 

    Also note that on some other C2000 devices there is an additional level of muxing for the comparator inputs that gives additional flexibility for which device pin is connected to the comparator (in this case you still don't need to configure the ADC, but do probably want to mindful of the additional layer of muxing).  

  • Thanks a lot for quick reponse!