cancel
Showing results for 
Search instead for 
Did you mean: 

The behavior of UART register of Chorus 4M

M. Tsutsumi
Associate II

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
2 REPLIES 2
zambrano.luigi
Senior III

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 II

Hi Luigi-san,

Thanks you for your sending answer.

I understand.

Best Regards,

Tsutsumi