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.

[参考译文] MSP430FR2476:サンプルコード「timer_A_ex2_continousModeOperationWithCCR0中断」について

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1275574/msp430fr2476-timer_a_ex2_continousmodeoperationwithccr0interrupt

器件型号:MSP430FR2476

Lp- MSP430FR2476を用いて Ω

サンプルコード「TIMER_A_ex2_ContinousModeOperationWithCCR0 Interrupt」を動作させる際、

P2.0、P2.1に接続している外部クロックを使用したいのですが

initContParam.clockSource = TIMER_A_CLOCKSOURCE_SMCLK;

initContParam.clockSource =  TIMER_A_CLOCKSOURCE_EXTERNAL_TXCLK

に変更する以外にどこを変更及び設定を行えば良いのでしょうか。

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

    您能用英语来描述这个问题吗?

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

    我使用的是 LP-MSP430FR2476。

    当运行示例代码"timer_a_ex2_continuousModeOperationWithCCR0Interrupt"时、

    我想使用连接到 P2.0和 P2.1的外部时钟。

    我更改了「initContParam.ClockSource = TIMER_A_CLOCKSOURCE_SMCLK;」至「initContParam.ClockSource = TIMER_A_CLOCKSOURCE_EXTERNAL_TXCLK;」μ s、但它不起作用。

    请告诉我还需要更改哪些设置或添加哪些代码。

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

    要在 P2.0/.1 (XOUT/XIN)上使用晶体振荡器、您需要通过设置 PSEL 位来启动它、然后将其连接至 ACLK。 然后使用 ACLK 为计时器计时。

    示例 cs_ex3_XT1SourcesACLK 中说明了这些步骤(您必须调整引脚分配):

    https://dev.ti.com/tirex/explore/node?node=A__APG6.sBanos74CnDSnfwgA__msp430ware__IOGqZri__LATEST