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.

430g2452ADC触发源问题

Other Parts Discussed in Thread: MSP430G2452

在TI官方网站下载的msp430g2452这款芯片的例程代码msp430g2x32_adc10_11中,其把TACCR0设置成2048-1,把TACCR1设置成2047,并且定时器输出是set/reset 增计数模式,CCR0跟CCR1同时到达,这么能产生给ADC一个触发信号呢?求解,关键代码如下:

  P1DIR |= 0x01;  // Set P1.0 output

  TACCR0 = 2048-1;   // PWM Period  

TACCTL1 = OUTMOD_3;  // TACCR1 set/reset

  TACCR1 = 2047; // TACCR1 PWM Duty Cycle  

 TACTL = TASSEL_1 + MC_1;  // ACLK, up mode