AnsweredAssumed Answered

uart in mpc5604B

Question asked by Li weimin on Aug 13, 2015
Latest reply on Aug 17, 2015 by Martin Kovar

This is my code , But it cannot enter UART mode,Could you please tell me Where is the problem? Thanks in advance for your kindly help!

 

LINFLEX_1.LINCR1.B.INIT = 1;    /* Put LINFlex hardware in init mode */

LINFLEX_1.UARTCR.B.UART = 1;    /* Select UART Mode */

LINFLEX_1.UARTCR.R = 0x23;      /* Receive Enable ,8-bit Data, Parity Disable*/

LINFLEX_1.LINIER.B.DRIE = 1;    /* Receive Interrupt Enable */

LINFLEX_1.LINIBRR.B.DIV_M= 0x1B4E; /* Mantissa baud rate divider component */

LINFLEX_1.LINFBRR.B.DIV_F = 0x8; /* Fraction baud rate divider comonent */

LINFLEX_1.LINCR1.R= 0x00000000; /* Configure module as LIN master & header */

Outcomes