HOW TO TEST LINFLEXD_1, UART CONNECTION PINS FOR TX AND RX

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

HOW TO TEST LINFLEXD_1, UART CONNECTION PINS FOR TX AND RX

613 Views
ramanjineyuluth
Contributor II

Hi all,

Am currently working on MPC5744P evaluation board. I have tested LinflexD_0 for UART it's working fine.

I have seen the output SCI DB9 connector for LinflexD_0 UART.

Now my question is how to test second UART means LinflexD_1 UART testing?

Please can any one share the screen shots of LinflexD_1 UART connections in motherboard.

I have written the code for LinflexD_1 PD9 and PD12 pins I have used.

 

void SIUL2Init(void)
{
    SIUL2.MSCR[22].R = 0x22800001;    // PB6 as CLK_OUT (on EVB it is B9)


    /* Configure pad PD9 for LIN1TX */
    SIUL2.MSCR[57].B.SSS = 2;    /* Pad PD9: Source signal is LIN1_TXD  */
    SIUL2.MSCR[57].B.OBE = 1;    /* Pad PD9: Output Buffer Enable */
    SIUL2.MSCR[57].B.SRC = 3;    /* Pad PD9: Maximum slew rate */
    /* Configure pad PD12 for LIN1RX */
    SIUL2.MSCR[60].B.IBE = 1;    /* Pad PD12: Enable pad for input - LIN1_RXD */
    SIUL2.IMCR[166].B.SSS = 2;   /* LIN1_RXD: connected to pad PD12 */

 

}//SIUL2Init

Thanks,

Ramanjineyulu Thota.

Labels (1)
0 Kudos
1 Reply

370 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

If you want to test LINFLEX1 please follow these steps:

  • Remove jumpers J13, j14, j16 and j17
  • Connect pin P11.10 to J13 pin
  • Connect pin P11.13 to J14 pin
  • Connect DB9 to SCI connector (J19)

Other connectors (CAN, FlexRay and others) cannot be used for LIN/Uart testing. I am sending photo in attachment. Please ignore cables which connect LED. I am also sending you simple source code, which shows, how to configure LIN and SIU and also how to send message.

Regards,

Martin

0 Kudos