Skip to main content
M. Tsutsumi
Associate
July 25, 2019
Question

The behavior of UART register of Chorus 4M

  • July 25, 2019
  • 2 replies
  • 1018 views

Hi,

 I checked UART register of Chorus 4M my environment.

If I would like to set AUTOWU bit in LINCR1 register, is following sequence right?

linflexlp->LINCR1.R = 1; /* enter INIT mode */

linflexlp->LINCR1.R = 0x1001; /* set AUTOWU */

linflexlp->LINCR1.R = 0x1000; /* exit INIT mode */

When I wite '0' (0x00000000) to LINCR1 register to exit INIT mode like serial_lld.c in SPC5Studio (following), not only INIT bit but also other bits on LINCR1 register is clear. Is it right?

/* Leaves the configuration mode.*/

linflexlp->LINCR1.R = 0;

If it is right, I think it is very important behavior.

Best Regards,

Tsutsumi

    This topic has been closed for replies.

    2 replies

    zambrano.luigi
    ST Employee
    August 20, 2019

    Hi Tsutsumi-sun,

    your sequence of instructions is correct. You can also use the following sequence:

    SD1.linflexlp->LINCR1.B.INIT = 1; /* enter INIT mode */

    SD1.linflexlp->LINCR1.B.AWUM = 1; /* set AUTOWU */

    SD1.linflexlp->LINCR1.B.INIT = 0; /* exit INIT mode */

    Best Regards,

    Luigi

    M. Tsutsumi
    Associate
    August 20, 2019

    Hi Luigi-san,

    Thanks you for your sending answer.

    I understand.

    Best Regards,

    Tsutsumi