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: Importance of COMPDACE bit

Part Number: TMS320F28388D

Tool/software:

Hello,

While referring to CMPSS chapter, I came across one bit COMPDACE. I am not able to find much details for it, even in CMPSS module block diagrams, this bit is not mentioned.

What is the importance of this bit? 

If set to zero, then will it disable whole the CMPSS module (including the RAMP generator) or it only disable to analog comparator part and RAMP generator can still operate?

Pls provide some insights. 

Regards,

  • Hello,

    COMPDACOUT is the low comparator DAC output which is available only in CMPSS1 module. To enable this DAC output, set the register CMPxDACOUTEN from analog subsystem. 

    Enabling the CMPx_DACL to a pin disables its functionality to the COMPL (low comparator). In this case the inverting input of the COMPL must come from the CMPx_LN input pin. All other functions of the CMPSS module are retained. Therefore, you can use ramp generator and other feature, just the internal DAC would be output to external GPIO pin and cannot go to COMPL negative pin anymore.

  • Thank you, Stevan, for your response. However, the explanation is still not entirely clear.

    I was specifically referring to the COMPDACE bit, not COMPDACOUT or any other bit.

    Based on your statement, my current understanding is that even when COMPDACE = 0, the ramp generator continues to operate, and the result is still updated in the DAC register (DACxVALS or DACxVALA). However, the key difference is that this signal is no longer connected to the negative input of the comparator.

    Please correct me if I have misunderstood your point.

    Regards,

  • Hello,

    Yes, that is correct.