Uart hardware flow control with gps module

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

Uart hardware flow control with gps module

2,334件の閲覧回数
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 返答(返信)

1,415件の閲覧回数
chenhoa
Contributor I

Hi all,

Somebody help me solve it, please?

Thanks

0 件の賞賛
返信

1,415件の閲覧回数
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

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

1,415件の閲覧回数
chenhoa
Contributor I

Hi Alejandro,

Can you help me to workaround it by software?

Thanks.

Chen.

0 件の賞賛
返信

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