Software Uart Using GPIO's.

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

Software Uart Using GPIO's.

2,587件の閲覧回数
vipulkumar
Contributor III

Hi,

I am working on a customised i.MX6 Dual board. The board supports 4 UART's but all are used. So, I need to use software UART. I am having 2 GPIO's that I need to configure as UART's Rx and Tx.

OS - Linux

Kernel - 3.10

BSP - Yocto

Can anybody suggest me how to configure GPIO's as a UART or refer some code example ?

ラベル(2)
タグ(1)
1 返信

1,933件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

Hello Vipul Kumar,

There is a simple buy excellent tutorial on how to setup a simple Device Tree on the following document. You may find it useful as the first step would be setting the GPIOs on your Device Tree (which is introduced starting Kernel 3.10)

https://community.nxp.com/docs/DOC-329664

There are also examples of a GPIO device tree in the communities, as for example the following thread:

https://community.nxp.com/message/519839

Regarding the actual UART Software implementation there is not an App Note covering this but you may find some software UART examples on the web. It may not be as straightforward as it sounds but already available open source software may help.

Regards,