Ke06Z UART Baud Rate Issues

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

Ke06Z UART Baud Rate Issues

906 次查看
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 

标记 (3)
0 项奖励
4 回复数

772 次查看
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 项奖励

772 次查看
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 项奖励

772 次查看
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 项奖励

772 次查看
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 项奖励