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.

求助:gps数据用msp430g2553串口接收后再转发出去用gps软件就识别不了位置了,直连可以识别。

Other Parts Discussed in Thread: MSP430G2553

gps数据用msp430g2553串口接收后再转发出去用gps软件就识别不了位置了,直连可以识别。如图

单片机只在中断里原样转发,程序如下:

#include“msp430g2553.h”

SBUF= UCA0RXBUF;//将uart串口接收寄存器收到的数据存入SBUF

UCA0TXBUF=SBUF;//将SBUF的数据存入uart串口发送寄存器并发送

串行口初始化

void USCI_A0_graceInit(void) {    

    UCA0CTL1 |= UCSWRST;

     UCA0CTL1 = UCSSEL_2 + UCSWRST;    

     UCA0BR0 = 160;     

    UCA0BR1 = 1;        

    UCA0CTL1 &= ~UCSWRST;       

 

可以用超级终端查看电脑收到的数据,

这两组数据有什么差别吗,一个能识别一个识别不了

这是什么原因呢,是我的转发改变了数据的什么东西么?为什么超级 终端就能收到数据?