what the difference between rs232(p8) and lin(p7)

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

what the difference between rs232(p8) and lin(p7)

Jump to solution
1,000 Views
Fene
Contributor III

Hi,

I am newer and want to learn how to use mpc5748g-gw board

I read user guid about uart_pal_mpc5748g example and s32dk_mpc5748g_usermanual.pdf

that says, "uart functionality implemented over linflexd peripheral"

but i dosen't have linflexd peripheral, just have rs232 serial cable and dupont wire

i wiring them by looking reference pin picture, like below..

Fene_0-1635930153833.png

wire p8 and gnd to rs232 serail cable

Fene_1-1635930307910.png

 

which demo i can learn from ??

0 Kudos
1 Solution
975 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

LINFlex module implemented on MPC5748G supports LIN and UART mode. These communication interfaces use different physical layer.

UART:

lukaszadrapa_0-1636096423772.png

LIN:

lukaszadrapa_1-1636096523304.png

You can find a lot of resources about LIN and UART on the web.

SDK in S32DS supports UART mode only. There's no LIN driver in the SDK. So, you should use uart_pal_mpc5748g example and your RS232 cable should be connected to signals RS232-RX and RS232-TX.

Regards,

Lukas

 

 

View solution in original post

0 Kudos
4 Replies
976 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

LINFlex module implemented on MPC5748G supports LIN and UART mode. These communication interfaces use different physical layer.

UART:

lukaszadrapa_0-1636096423772.png

LIN:

lukaszadrapa_1-1636096523304.png

You can find a lot of resources about LIN and UART on the web.

SDK in S32DS supports UART mode only. There's no LIN driver in the SDK. So, you should use uart_pal_mpc5748g example and your RS232 cable should be connected to signals RS232-RX and RS232-TX.

Regards,

Lukas

 

 

0 Kudos
969 Views
Fene
Contributor III

 Hi, lukaszadrapa

Thanks for reply me very much !

Yeah, i loaded and builded uart_pal_mpc5748g example in s32sdk r2.1, 

configured LINFlexd10 receive data and transmit data p5/p4 as input/output,

configured uart properties:

baud rate: 115200

and 8-n-1

but uartAssist received data displayed problem... like below 

Fene_0-1636105929211.png

 

 

 

0 Kudos
946 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

it looks like you are receiving something, so it will be related to clock configuration or to BAUD rate settings. I would try to decrease the speed (like to 9600 or so) to see if it helps and I would use an oscilloscope to see what is the real baud rate. This could help to find the root cause.

Regards,

Lukas

0 Kudos
940 Views
Fene
Contributor III

Thanks

you are right,  it works.

0 Kudos