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.

[参考译文] MSP430I2040:内部晶体16.384M 和外部晶体16.384M 不准确

Guru**** 2379860 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1070809/msp430i2040-the-internal-crystal-16-384m-and-the-external-crystal-16-384m-are-not-accurate

部件号:MSP430I2040
“线程:测试”中讨论的其它部件

大家好,团队

客户提出的问题可能需要您的帮助:

问题:在芯片的25针外部连接到有源晶体16.384M 后,使用旁路模式模拟并发现延迟时间间隔与设定的延迟时间太不同,问题与使用内部晶体时的问题相同, 然后,当使用 UART 传输协议与其它芯片通信时,波特率将不匹配。

以下是调试过程中编写的简单例程模拟结果。 (设置1毫秒 LED 闪烁的延迟):

#包括“MSP4C.h”

主无效(无效)

WDTCTL = WDTPW | WDTHOLD;//停止看门狗计时器

CSCTL0 = DCOBYP;  

P2DIR|=BIT2;

While (1)(同时)

P2OUT|=BIT2;
_延迟周期(16384);
P2OUT =~BIT2;
_延迟周期(16384);

}

}

请帮您检查此案例? 谢谢。

此致,

樱桃

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好,Cherry,

    __delay_cycles();函数是粗略的延迟。

    您可以尝试使用计时器测试频率。

    谢谢!

    此致

    约翰逊