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.

Compiler/MSP430G2210: MSP430G2210 comparator functioning

Part Number: MSP430G2210

Tool/software: TI C/C++ Compiler

Hello, can somebody help me ?

I’m using the MSP430G2210 and have to detect a voltage superior of 0.25xVcc on pin 4 (P1.6) and give a high output on pin 5 (P1.7) when this is the case.

I’ve used following settings :
P1REN=0x1B;           // Terminate unavailable Port1 pins (P1.0/1/3/4) properly
P1DIR= 0x80;         // my output



With my program I would like to activate my output whenever I test CAOUT==0, but CAOUT stays==1?

Thanks for any help