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.

MSP430FR6928: COMP_E behavior

Part Number: MSP430FR6928

Referring to paragraph 35.2.6, the User Manual for the MSP430FR6928 states:

The voltage reference generator can generate a fraction of the device VCC or of the voltage reference of the integrated precision voltage reference source. Vref1 is used while CEOUT

is 1, and Vref0 is used while CEOUT is 0. This allows the generation of a hysteresis without using external components.

 

I would appreciate if you can take a look to the next figure. On the left (in black) there is an example of the pulse that I want to process with COMP_E.  And with red you can see what I want to see as a result.

 

 

Then I simplified the Figure 35-4 . And I had to add the polarity signs on the OP AMP.  I hope I did it right.

I referred to a DriverLib  function that should do the programming of these levels. According to the manual, CERF0 controls the reference voltage when COUT is 0. So CERF0 is active when the pulse shows up. Nevertheless, and referring to the only program that I found as an example by TI using hysterisis, UpperlimitSupplyVoltageFractionOf32 is loaded with 24 that seems to program CEREF1 (that is not active because CEOUT is low). BTW, there is another example in the Driverlib Manual about the use of this module, but it uses the same values for the upper and lower value (hysteresis then is disabled).

Help on this matter would be appreciated.

**Attention** This is a public forum