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.

[参考译文] MSP430F5659:动态更改 SPI 预分频器

Guru**** 2522770 points
Other Parts Discussed in Thread: MSP430F5659

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/931382/msp430f5659-changing-spi-prescaler-on-the-fly

器件型号:MSP430F5659

您好!

我使用 MSP430F5659 I2C/SPI 与从器件通信。 我正在使用 XT2 24M 晶振通过 USB 对 MSP 引导加载程序进行编程。

我需要为某些从器件使用12M/4M 的 SPI 频率。 默认情况下、我将 SPI 预分频器保持为2、然后对器件进行编程。 在这种情况下、SPI 工作正常。  

一旦预分频器从12M 更改为4M、SPI 不能正常工作(SPI 开始读取一些随机值、读回错误)。 一旦我复位、MCU (默认加载2的预分频器)工作正常。

对 MCU 进行编程后是否可以更改预分频器。 请提供建议。

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

    您是否应用了 UCSWRST? [参考用户指南(SLAU208Q)、图40-6]