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.

MSP430 COMPARATOR PROBLEM

Other Parts Discussed in Thread: MSP430G2152

Hi,

  I am using MSP430G2152 controller for my comparator application .The comparator takes 100mV for transition between high to low and low to high from the threshold level it makes my application risky.my application is below the threshold level  comparator output (CAOUT) should be on.But it takes some minimum (mV) Volage.

Below i attached my code please refer and give the suggestion for that

 CACTL1 = CARSEL + CAON;     //-ve reference selected     
 CACTL2 = P2CA4+P2CA2;        //p1.1+p1.2

  while(1)
      {                  
        if((CAOUT & CACTL2))
            {
                P1OUT|=0x20;
              
                
            }
        else
            {
                ShortFlag=0;
                P1OUT=0x00;

}

**Attention** This is a public forum