UART DATA TRANSFER PROBLEM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART DATA TRANSFER PROBLEM

5,675件の閲覧回数
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,532件の閲覧回数
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.