Part Number: MSP430F413
In my MSP430F413 design, Pin 47 (P16/CA0) is connected to a sensor. When the
sensor is not connected. The program goes into a loop :
----------------------------------------------------------------------------------------------------------
C1_pH
BIT.B #CAOUT,&CACTL2 ; Comparator out hi/low?
JNZ C1_pH
-----------------------------------------------------------------------------------------------------------
&CACTL2 always shows 000Dh (0000 1101). Unable to change to 000Ch.
CAOUT is : #define CAOUT (0x01)
Only when sensor is connected, &CACTL2 change to 000Ch.
Is there any instruction that I can add in such that it'll could come out of the loop when no sensor
is connected.