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.

[参考译文] MSP430FR6989:MSP430FR6989手动设置 SPI 引脚

Guru**** 2510095 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/849778/msp430fr6989-msp430fr6989-set-spi-pins-manually

器件型号:MSP430FR6989

您好!

是否可以手动将 SPI CLK 和 MOSI 引脚设置为高电平和低电平?

此致
Tobi

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

    您可以切换到两个引脚的端口功能并将其用作 GPIO。

    这会有帮助吗?

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

    我该怎么做? 我尝试设置 P1DIR 和 P1OUT 寄存器的位、但它不起作用。

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

    您需要将引脚功能从 SPI 更改为 GPIO。

    这可以通过 P1SEL 位来完成、请参阅数据表 /用户指南。