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.

CCS/MSP430F5514: Driver Library Comp_B Bug Report

Part Number: MSP430F5514

Tool/software: Code Composer Studio

In the MSP430F5XX_6XX_DriverLib, the Comp_B_setInterruptEdgeDirection function sets the CBIES bit in the CBCTL1 Register incorrectly. For a rising edge for CBIFG, the bit should be set to 0 but the COMP_B_RISINGEDGE parameter sets the bit to 1.

Also, there is a documentation error in the User Guide, page 88. Comp_B_LOW should be COMP_B_LOW, same for the high value.

And the configureReferenceVoltageParam Structure is confusing for the settings of Vref0 and Vref1. The lowerLimit sets the Vref0 divider and the upperLimit sets the Vref1 divider. Depending how the comparator is configured, these may or may not be upper or lower limits. It would be clearer just to set the Vref divider directly ie:

Vref0VoltageFractionOf32

Vref1VoltageFractionOf32

One more thing, Page 80 11.2.1 Detailed Description needs to be updated with the current functions

**Attention** This is a public forum