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.

[参考译文] MSP430FR5962:低功耗模式期间的时间测量

Guru**** 2439710 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/932603/msp430fr5962-time-measurement-during-the-low-power-mode

器件型号:MSP430FR5962

大家好、我目前正在使用 Msp430FR5962 控制器。 我将其置于 LPM3模式(请参阅代码):

   //时钟系统设置
    CSCTL0_H = CSKKEY_H;//解锁 CS 寄存器
    CSCTL1 = DCOFSEL_0;//将 DCO 设置为1MHz
    CSCTL2 = SELM__DCOCLK | SELESS__DCOCLK | SELA_VLOCLK;
    CSCTL3 = DIVA__1 | DIVM_1 | DIVM__1;//将所有分频器设置为1
    CSCTL4 = LFXTOFF | HFXTOFF;
    CSCTL0_H = 0;//锁定 CS 寄存器

    _bis_SR_register (LPM3_bits | GIE);

我想将 MSP 切换到低功耗模式、并计算(测量) MSP 离开低功耗模式之前的时间。 VLOCLK 与上述代码一同运行、但是它非常不精确并且温度不稳定。
我必须如何将 MSP 置于超低功耗模式、同时仍以大约+-1ms 的精度测量时间。 在-40°C 至°C 的温度范围内... 85°C

此外、该时钟发生器还必须以相对较快的速度开始振荡、最大时间为5到10ms。

我有哪些选择?