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
CACTL1=CAREF0 | CAON | CAEX;
CACTL2=P2CA3|P2CA2
With my program I would like to activate my output whenever I test CAOUT==0, but CAOUT stays==1?
Thanks for any help
Robert