RS485 on K60?

cancel
Showing results for 
Search instead for 
Did you mean: 

RS485 on K60?

Jump to solution
310 Views
danielchai
Senior Contributor I

Hi All,

I tried the RS485 sample code. The reading task works. It can read from a terminal. But the write task does not work.

Is there any specific configuration I need for write?

Thanks.

-Daniel

0 Kudos
1 Solution
56 Views
dereksnell
NXP Employee
NXP Employee

Hi Daniel,

It works for me.  The example \Freescale_MQX_4_0_1\mqx\examples\rs485\cw10\rs485_twrk60n512 is written to use the driver ittyd.  I had to enable this driver in user_config.h, and then rebuild the BSP.  With the TWR-K60N512 board, UART3 (used with ittyd driver) is routed to the 9-pin serial port on the TWR-SER board.  Running the example with a terminal connected to that serial port at 115,200 baud shows the string "RS485 send example" prints out successfully.

View solution in original post

0 Kudos
3 Replies
57 Views
dereksnell
NXP Employee
NXP Employee

Hi Daniel,

It works for me.  The example \Freescale_MQX_4_0_1\mqx\examples\rs485\cw10\rs485_twrk60n512 is written to use the driver ittyd.  I had to enable this driver in user_config.h, and then rebuild the BSP.  With the TWR-K60N512 board, UART3 (used with ittyd driver) is routed to the 9-pin serial port on the TWR-SER board.  Running the example with a terminal connected to that serial port at 115,200 baud shows the string "RS485 send example" prints out successfully.

View solution in original post

0 Kudos
56 Views
danielchai
Senior Contributor I

Hi Derek,

Now it works. I did not disconnect the J15.

Thanks.

-Daniel

0 Kudos
56 Views
danielchai
Senior Contributor I

Hi Derek,

Actually, I am confused about the serial port. It has RS485_RXP0, RS485_RXN0, RS485_TXP0, RS485_TXN0. Which two are corresponding to RS485 A and B?

If I connect the 9-pin serial port to my computer, do I need a RS485 to RS232 converter?

What is the functionality of J15?

Thank you.

-Daniel