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.

[参考译文] MSP430FR2433:在计时器运行时访问 TAxR

Guru**** 2482105 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1259238/msp430fr2433-accessing-taxr-while-the-timer-is-running

器件型号:MSP430FR2433

您好!

假定"当定时器时钟和 CPU 时钟异步时、任何对 TAxR 的读取都会发生
而计时器不运行、或者结果可能无法预测。"、为什么使用代码示例

msp430fr243x_ta0_22.asm

TI Resource Explorer 中的工具是:

           MOV.w  #tassel_0|MC_2|TACLR|TAIE,&TA0CTL      ;ACLK,计数模式,清除 TAR,启用中断
           MOV.w  #0xFFEB、&TA0R                          ;TAR 溢出前的偏移           

即、在定时器运行时写入 TAR?

此致、

毛罗

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

    Mauro、您好!

    ACLK 使用的时钟源与 REFO 相同、也与用于 CPU 的 MCLK 相同、因此应该没问题。 但在演示中、 若要选择 ACLK、则应为 tassel tassel_1、这似乎是一个错误。