Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

MSP430I2040: 关于该芯片内部晶振16.384M和外部晶振16.384M都不准确的疑问

$
0
0
Part Number: MSP430I2040

我在芯片的25引脚外接有源晶振16.384M后,使用旁路模式进行仿真,发现延时间隔与我设定的延时时间相差太多,和使用内部晶振时一样差的非常多,导致我的在使用UART传输协议时,与其他芯片通信时的波特率无法匹配上。

以下是我调试时写的简单例程仿真结果。(设定延时1ms LED灯闪烁)

#include "msp430.h"

void main(void)
{
WDTCTL = WDTPW | WDTHOLD; // Stop Watchdog Timer

CSCTL0 = DCOBYP; 

P2DIR|=BIT2;

while(1)
{

P2OUT|=BIT2;
__delay_cycles(16384);
P2OUT&=~BIT2;
__delay_cycles(16384);

}

}


Viewing all articles
Browse latest Browse all 3634

Trending Articles