为了查明原因 我更加简化了
unsigned char TEST[6]={0X54,0x4F,0x53,0x44,0X0D};
while(!TXSTA5bits.TRMT);
TXREG5 =0X54;
while(!TXSTA5bits.TRMT);
TXREG5 =TEST[1];
while(!TXSTA5bits.TRMT);
TXREG5 =0x53;
while(!TXSTA5bits.TRMT);
TXREG5 =0x44;
while(!TXSTA5bits.TRMT);
TXREG5 =0X0D;
delay_100ms(20); |