Uart hardware flow control with gps module

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

Uart hardware flow control with gps module

3,001 次查看
chenhoa
Contributor I

Hi Freescale,
We are using UART2 on imx6 with hardware flow control to communicate with gps module.
The hardware pin connection now is:

MX6Q_PAD_SD3_DAT4__UART2_RXD ----------- GPS TXD
MX6Q_PAD_SD3_DAT5__UART2_TXD ----------- GPS RXD
MX6Q_PAD_SD3_CLK__UART2_RTS  ----------- GPS CTS
MX6Q_PAD_SD3_CMD__UART2_CTS  ----------- GPS RTS

But as we read in imx6 ref manual and some web pages, should the connection be as below?

UART2_RXD ----------- GPS TXD
UART2_TXD ----------- GPS RXD
UART2_CTS ----------- GPS CTS
UART2_RTS ----------- GPS RTS

Is that right? If that is right, can we config the uart pins by software as below to handle this?

MX6Q_PAD_SD3_DAT4__UART2_RXD ----------- GPS TXD
MX6Q_PAD_SD3_DAT5__UART2_TXD ----------- GPS RXD
MX6Q_PAD_SD3_CLK__UART2_CTS  ----------- GPS CTS
MX6Q_PAD_SD3_CMD__UART2_RTS  ----------- GPS RTS

Thanks and best regard.

0 项奖励
回复
5 回复数

2,082 次查看
chenhoa
Contributor I

Hi all,

Somebody help me solve it, please?

Thanks

0 项奖励
回复

2,082 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I believe the information found in this document How to enable BT on board imx6q_sabresd RevC. can be very helpful.

Best Regards,

Alejandro

2,082 次查看
chenhoa
Contributor I

Hi Alejandro,

Thanks for your answer,

From your link, I can see that the hardware for uart should be. But is there any software solution to workaround my issue as my first post:

Can we config the uart pins by software as below to handle this?

MX6Q_PAD_SD3_DAT4__UART2_RXD ----------- GPS TXD
MX6Q_PAD_SD3_DAT5__UART2_TXD ----------- GPS RXD
MX6Q_PAD_SD3_CLK__UART2_CTS  ----------- GPS CTS
MX6Q_PAD_SD3_CMD__UART2_RTS  ----------- GPS RTS

Thanks and best regard.

Chen.

0 项奖励
回复

2,082 次查看
chenhoa
Contributor I

Hi Alejandro,

Can you help me to workaround it by software?

Thanks.

Chen.

0 项奖励
回复

2,082 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi Chen,

You may tray to change the mode DCE or DTE.

This can be changed in UARTx_UFCR register.

I have not tried this yet, please let me know how it goes.

Best Regards,

Alejandro

0 项奖励
回复