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
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:
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
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
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
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