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.

想使用msp430f149的CA0 CA1的外部参考?下面设置是否正确?

Other Parts Discussed in Thread: MSP430F149

想使用msp430f149的CA0  CA1的外部参考?下面设置是否正确?P2DIR     P2SEL对应 P2.3  P2.4的位是否需要设置?

 // P2DIR       = 0x18;                 //P2.3为输入 
  // P2SEL |=   BIT3||BIT4;              //P2.3第二功能

下面设置是否正确?
   C语言中进行如下设置:
   CAPD   |= 0x18  ;
   CACTL2  = P2CA0 + P2CA1  ;                   //比较器两个输入端 都是从外部输入

  汇编语言中进行如下设置:

     mov.b    #CAON,&CACTL1