Ke06Z UART Baud Rate Issues

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

Ke06Z UART Baud Rate Issues

824 Views
tcwong
Contributor III

Hello,

I'm trying to make the KE06Z communicate with a device that runs at 62500 baud rate and I seem to be having problems with this. I am using the line of code "config.baudRate_Bps = 62500U;" in order to try to achieve this. Is this correct? Thank you in advance.

Best,

Tyler Wong 

Tags (3)
0 Kudos
4 Replies

690 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello tcwong@buffalo.edu

To configure the UART Baud rate you have to to modify the field  SBR contained at the registers UARTx_BDH and UARTx_BDL. The baud rate is given by this formula:

pastedImage_1.png 

The function UART_Init() in the driver already sets the desired Baud rate.

Please configure manually the baud rate by modifying the SBR field directly.

 Refer to chapter 33.4.1 Baud rate generation on the KE06Z Reference manual.

Let me know if this helps.

Best Regards,

Omar

0 Kudos

690 Views
tcwong
Contributor III

Thanks for the response Omar. Quick question, would you be able to achieve this through the use of the function UART_SetBaudRate();? 

Best,

Tyler Wong

0 Kudos

690 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Tyler Wong

The function "UART_SetBaudRate()" can be used to set the module baud rate after using UART_Init().

Hope this is helpful.

Best Regards,

Omar

0 Kudos

690 Views
tcwong
Contributor III

I should also clarify that the Rx pin of the of the board's UART is only reading a constant high value. If this isn't a baud rate problem it would be appreciated if someone can point me in the right direction. Thank you.

 Best,

Tyler Wong

0 Kudos