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.

[参考译文] CCS/MSP432P401R:通过 UART 读取 GPS 数据

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/672677/ccs-msp432p401r-reading-gps-data-via-uart

器件型号:MSP432P401R

工具/软件:Code Composer Studio

我正在尝试使用 UART 从 Adafruit Ultimate GPS 模块读取数据。 我不熟悉 MSP432 MCU。 我从环回示例开始、能够发送和接收字符。 现在、我无法从 GPS 读取数据。 我猜是使用  MAP_UART_transmitData (EUSCI_A2_base、TXData)函数传输数据。 如何将 TXData (我用于回送测试)替换为来自 GPS 的数据。   

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    专家最好在 MSP 论坛上讨论这个问题。 我将把这个线程移到这里。

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

    在中断处理程序中、当您从 GPS 获取 RXData 时、将 RXData 传递到中断处理程序中的发送功能

    RXData = MAP_UART_receiveData (EUSCI_A2_base);
    MAP_UART_transmitData (EUSCI_A2_BASE、RXData);