Is there a runtime means to adjust the internal comparator voltage level ?
SYSCFG sets it compile time: Comparator.referenceLevel = "1.65V"; , but I don't see how to adjust it after that.
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.
Is there a runtime means to adjust the internal comparator voltage level ?
SYSCFG sets it compile time: Comparator.referenceLevel = "1.65V"; , but I don't see how to adjust it after that.
The driver in C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\devices\msp432e4\driverlib\comp.h appears to provide an API to set the comparator Vref. There is a function ComparatorRefSet(), and a set of defined values to set voltages, such as
#define COMP_REF_1_65V 0x0000030C // Internal reference of 1.65V
Is that what you are looking for?
Jim