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.

MSP430FR5989: Is there a window comparator for ADC sampling in MSP430FR5989?

Part Number: MSP430FR5989


Hello,

Is there a window comparator for ADC sampling in MSP430FR5989? For example, I set 3.3V as the threshold of the window. When the signal exceeds 3.3V level, it triggers. Can I use this trigger signal to do interrupt wakeup? Thank you!

  • Hi Chen,
    there is a window comparator available, can you please check the 34.2.10 user guide chapter? Do you have any problems to configure it?

    34.2.10 Window Comparator
    The window comparator allows to monitor analog signals without any CPU interaction. It is enabled for the desired ADC12MEMx conversion with the ADC12WINC bit in the ADC12MCTLx register. In the following the window comparator interrupts are listed:
    • The ADC12LO interrupt flag (ADC12LOIFG) is set if the current result of the ADC12_B conversion is below the low threshold defined in register ADC12LO.
    • The ADC12HI interrupt flag (ADC12HIIFG) is set if the current result of the ADC12_B conversion is greater than the high threshold defined in the register ADC12HI.

    Best regards,
    Tobias

**Attention** This is a public forum