UART DATA TRANSFER PROBLEM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART DATA TRANSFER PROBLEM

4,660 Views
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'.

Tags (1)
1 Reply

518 Views
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.