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.
工具/软件:Code Composer Studio
您好!
我想在微控制器上编写一个程序、该程序从射频接收数据、并通过串行方式将其发送到 PC、并将其保存在文件中。 我想 I/O 库只能用于读取、因为它发生在主机上的编译期间、但当我想将数据从 MCU 发送到 PC 时、写入函数在这里不起作用、因为 MCU 上没有文件系统。
如何通过串行端口将微控制器中的字符串以文件形式保存到 PC?
您好 Beso、
您似乎只需要将数据从 MSP 传输到 PC? 为此、我要使用终端仿真器程序(我个人喜欢使用 PuTTY、但有多种选项)来记录 MSP 通过通信接口发送的数据(UART 应易于实现)。
我们提供了多个 UART 代码示例、可通过打开 CCS 并导航至 View > Resource Explorer 来找到这些示例。 然后在 Resource Explorer 中、导航至 Software > MSP430Ware > Devices > MSP430F5XX_6XX > MSP430F5529 > Peripheral Examples > Register Level。 在这里、您将找到一组通信代码示例、这些示例应能帮助您实现目标。
谢谢!
Mitch