#include <msp430x14x.h>
void main(void)
{
WDTCTL = WDTPW+WDTHOLD; //关闭看门狗
BCSCTL2 = SELS;
BCSCTL2 = DIVS0+DIVS1;
P1DIR |= 0X0C;
P1SEL |= 0X0C;
CCR0 = 20000;
CCTL1 = OUTMOD_7;
CCR1 = 10000;
CCTL2 = OUTMOD_7;
CCR2 = 5000;
TACTL = TASSEL_2+MC_1;
_BIS_SR(LPM0_bits);
}
用示波器测试陪p12和p13 为什么没有波形呢? |