CUSTOM BAUD RATE FOR UART

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CUSTOM BAUD RATE FOR UART

4,120件の閲覧回数
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)
0 件の賞賛
返信
1 返信

2,693件の閲覧回数
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 件の賞賛
返信