UART DATA TRANSFER PROBLEM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

UART DATA TRANSFER PROBLEM

5,620 次查看
marceli1
Contributor III

I am using USB -TTL-5V cable to work with MKE02Z64VLC chip. Mine receiver on interrupt only receiving one character. Should I toggle CTS pin to receive rest of characters?

void AS1_OnRxCharExt(AS1_TComData Chr)
{
 /* Write your code here ... */
 word Received;
 //byte err = 0;
 (void) AS1_RecvBlock((byte*) &rx_message.RxBuffer, RX_DATA_BUFF_SIZE, &Received); 
}

Due to different received data length I need to detect last character '\0'.

标记 (1)
1 回复

1,477 次查看
marceli1
Contributor III

Problem finally was solved, as:  while using only Internal oscillator it can not be adjusted for standard baud rate. Just use whatever it gets, i.e. 58308.

New code looks like this see attachment.