为什么这里的P1.1时钟输出是MCLK/10?经过实际示波器测得也是10个MCLK。
#include <msp430g2231.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ;
//BCSCTL3 |= XCAP1;
P1DIR |= 0x13; // P1.0,1 and P1.4 outputs
P1SEL |= 0x11; // P1.0,4 ACLK, SMCLK output
while(1)
{
P1OUT |= 0x02;
// P1.1 = 1
P1OUT &= ~0x02; // P1.1 = 0
/**/
}
} |