CUSTOM BAUD RATE FOR UART

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

CUSTOM BAUD RATE FOR UART

4,119 次查看
anshulkhare
Contributor III

Hello All,

i am using IMX6UL Board as per my requirement I need a custom baud rate of 1.8Mbps on a serial port to talk to a device. 

by default baud rate is coming as 115200 .

I understand that the UART clock speed is derived from a main clock that is used for CPU and other subsytem.  Where do I start looking to change the baud rate for the UART?

Thanks,

Anshul

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

2,692 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Anshul

i.MX uart driver supports standard linux serial APIs, one can use for example stty :

serial port - How to set a custom baud rate on Linux? - Stack Overflow 

iMX6: UART refuse to set baud rate to 1 Mbps 

check dts file for uart clocking linux/arch/arm/boot/dts/imx6ul.dtsi
clocks = <&clks IMXUL_CLK_UART_SERIAL>; ..
described in Figure 18-3. Clock Tree - Part 2 i.MX6UL Reference Manual

http://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf 

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

0 项奖励
回复