KL16 UART junk characters between actual data

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

KL16 UART junk characters between actual data

663 Views
yasararafathcs
Contributor II

Hi All,

I am receiving the actual data through KL16 UART from the other processor. But in between some junk characters I am getting.

What will be the reason for that?

Below is the sample with junk characters:

þr$1B0B01 MATHRUCHAYA HOSPITAL    
$1B0B01 KGF                     
$1B0B02 øDr.Mohan Krishna
$1B0B01 28/08/17  17:ÿ32:39
$1B0B17 TOKEN No.:   3

$1B0B01 MATHRUCHAYA HOSPITAL    
$1B0B01 KGF   þ                  
$1B0B02 Dr.Mohan Krishna
$1B0B01 28/08/17  17:32:54
$1B0Bÿ17 TOKEN No.:   5

$1B0B01 MATHRÿUCHAYA HOSPITAL    ð
$1B0B01 KGF                     
$1B0B02 Dr.Mohan Krishnða
$1B0B01 28/08/17  þ17:33:02
$1B0B17 TOKEN No.:   6

Whenever I am connecting the other processor directly to the PC terminal data is receiving properly.

$1B0B01 MATHRUCHAYA HOSPITAL    
$1B0B01 KGF                     
$1B0B02 Dr.Mohan Krishna
$1B0B01 28/08/17  16:50:36
$1B0B17 TOKEN No.:  17

Thanks & Regards,

Yasar Arafath

Labels (1)
Tags (2)
0 Kudos
1 Reply

462 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Yasar Arafath,

   Junk characters normally is caused by the baudrate configuration.

   Please check you Uart baud rate configuration, your UART clock source.

  Normally, the uart baud rate is 1.5%, it the baudrate is out of the range of 1.5%, you will meet the Junk characters.

   Check your UART configuration, do you really set the baudrate which you want?

Have a great day,
Kerry

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos