AnsweredAssumed Answered

Problem with MSCR and IMCR in SIUL2 module

Question asked by Xinwei Chang on Mar 17, 2016
Latest reply on Mar 18, 2016 by Xinwei Chang

I saw in a 5748G LINFlex demo, to configure a pad as LIN1RX in 5748G should follow the step:

SIUL2.MSCR[39].B.IBE = 1;      /* Pad PC7: Enable pad for input */

SIUL2.IMCR[201].B.SSS = 1;     /* LIN1_RX : connected to pad PC7 */

However, I don't quite know how these two number come from. I looked up at the excel file attached to the 5748G reference manual, and found this:

The Problem is how to choose the number? if according to this table, should it be:

SIUL2.MSCR[713].B.IBE = 1;      /* Pad PC7: Enable pad for input */

SIUL2.IMCR[713].B.SSS = 1;     /* LIN1_RX : connected to pad PC7 */

 

But with the second one, LIN frames cannot be transmitted, the DTF bit will not be set.(I haven't tried LIN Rx, only lin Tx)

The first one can sent out lin frame, I just don't know how the number is decided.

Outcomes