主题中讨论的其他器件: Energia
-
您好、请提出一个问题:
- 使用芯片 MSP430G2955、使用 IO 端口模拟 UART 串行通信、P3.6=Tx、P3.7=Rx。
无法使用定时器 A (因为硬件 UART 串行端口已在使用中)、系统时钟采用1MHz 的内置时钟。 用于模拟 UART 串行端口的 I/O 端口的波特率为115200。
-
希望提供参考例程、非常感谢!
- 我期待你的答复。 谢谢!
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.
您好、请提出一个问题:
无法使用定时器 A (因为硬件 UART 串行端口已在使用中)、系统时钟采用1MHz 的内置时钟。 用于模拟 UART 串行端口的 I/O 端口的波特率为115200。
希望提供参考例程、非常感谢!
您好!
请参阅下面有关位拆裂 UART 的主题。 TI 在 Resource Explorer 中提供的示例使用计时器模块。
您可以查看 Energia 源代码。 它们可能有一个 SoftwareSerial 库。
https://github.com/energia/Energia/blob/master/libraries/SoftwareSerial/SoftwareSerial.h
但是、这将需要端口1或端口2来实现中断。