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.

Comparator_A+的问题

Other Parts Discussed in Thread: MSP430G2553

include  <msp430g2553.h>

void main (void)

{

 WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT

 CACTL2 |= BIT6+BIT1;                           // CA1/P1.1 = +comp

CAPD&=~BIT1;

P1DIR|=BIT0;

P1SEL|=BIT3;

  CACTL1 = CAREF0 + CAON+CARSEL;                 // 0.25*Vcc, Comp. on

 while(1)

 {

  if(CACTL2& BIT0)

 P1OUT|=BIT0;

 else

 P1OUT&=~BIT0;

}

}

这个程序P1.3口怎么用电压表测不出来有输出的啊?