Uart hardware flow control with gps module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Uart hardware flow control with gps module

2,271 Views
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 Kudos
Reply
5 Replies

1,352 Views
chenhoa
Contributor I

Hi all,

Somebody help me solve it, please?

Thanks

0 Kudos
Reply

1,352 Views
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,352 Views
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 Kudos
Reply

1,352 Views
chenhoa
Contributor I

Hi Alejandro,

Can you help me to workaround it by software?

Thanks.

Chen.

0 Kudos
Reply

1,352 Views
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 Kudos
Reply