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.
Hello,
My customer asked if the CMPSS comparators can be accessed from terminals?
I think it is possible but i am not sure how to translate the Hyteresis from DAC LSB to analug value.
My customer will try to build a hysteresis SW regulator from the comparator.
Hi Hideaki,
Yes, the comparators can be accessed through the device pins. The inputs to the comparators are shared with the adc inputs. Look at the analog subsystem chapter in the TRM for the details. The outputs of the comparator come out on gpios either through the output x-bar or epwm x-bar. You can find details for this connectivity in the x-bar and gpio chapters.
Yes, hysteresis is expressed in lsb because it is implemented with the compdac. To convert the hysteresis lsb into mV, you use the standard dac transfer function: (dacval/4096)*dac_ref_voltage. For instance, if the compdac reference is 3.3v, a hysteresis of 12 lsb is equivalent to 9.6mV.