为何MSP430G2303 P3.6 PWM输出一直为低电平?初始化程序如下:
P3SEL=0x40; //P3.6 TA0.2 output
P3SEL2=0x00; //
P3REN=0x00; //Pullup/pulldown resistor disabled
P3DIR=0xcF; //
P3OUT=0xcb;
//定时器初始化
TACCTL0=OUTMOD_4; // toggle mode
TACCR0=10; //
TACTL=TASSEL_2+MC_3; // SMCLK, /1 , updownmode |