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.

[参考译文] 编译器/CC2541:使用一个 USART 作为 UART 和 SPI

Guru**** 2562120 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/569836/compiler-cc2541-using-one-usart-as-uart-and-spi

器件型号:CC2541

工具/软件:TI C/C++编译器

您好!

e2e.ti.com/.../1419816
查看此线程后 、我意识到我们可以同时将 USART0和 USART1用作 UART 模式和 SPI 模式。

我的问题是  、通过将代码中的 PERCFG.U0CFG 位更改为交流1和交流2、我们能否同时将 USART0用作 UART 和 SPI 模式?

此致、
伊德里斯

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

    不能同时为交流1和交流2设置 PERCFG.U0CFG、因此不能同时为 UART 和 SPI 使用 USART0。

    -弥敦