AnsweredAssumed Answered

How to configure Slave in LIN module on MPC5777M EVM board ?

Question asked by anishchoudhary on Jan 15, 2018
Latest reply on Feb 8, 2018 by anishchoudhary

For LIN module on MPC5777M and MPC5748G EVM board ? I configure for LIN slave that you can find in following code

 

    LINFlexD_0.UARTCR.B.UART = 0 ;   // Disable the LINFlexd_UART to work with LINFlexD_LIN module
    LINFlexD_0.LINCR1.B.INIT = 1 ;  // For configuration come in INIT mode
    LINFlexD_0.LINCR1.B.SLEEP = 0 ;   // Avoid the sleep mode

 

    LINFlexD_0.LINIBRR.B.IBR = 480 ;   // Set the baud rate for slave ,same i configure in master side.
    LINFlexD_0.LINFBRR.B.FBR = 0 ;

 

    LINFlexD_0.LINCR2.R = 0x40 ;
    LINFlexD_0.LINTCSR.R = 0 ;

 

    LINFlexD_0.IFER.R = 0xF;                            // enable filters 0-3
    LINFlexD_0.IFMR.R = 0x0;                            // filters 0 - 3 are in identifier list mode.

 

   LINFlexD_0.IFCR[0].R = 0x1E37;
    LINFlexD_0.IFCR[1].R = 0x1C35;

 

    LINFlexD_0.IFCR[2].R = 0x1F36;
    LINFlexD_0.IFCR[3].R = 0x1F35;
    LINFlexD_0.IFCR[3].R = 0x1D35;


    LINFlexD_0.LINCR1.B.AUTOWU = 0x1u ;    // Enable the auto wake-up when the Rx Interrupt will coming
    LINFlexD_0.LINCR1.B.MBL = 0x3u ;
    LINFlexD_0.LINCR1.B.MME  = 0x0u ;    // set MME = 0 for salve mode
    LINFlexD_0.LINCR1.B.INIT = 0x0u ;      // Come out from LIN INIT mode

 

Please check the configuration that is correct or some other change must be needed ?

Outcomes