With respect IO_Mux.xlx, I have below questions:
Why is the direction for LPSPI1_SIN set to O-output??
There is no mention of IMCR in port configuration? Is it required to refer and use IMCR rows for port pins whenever the pin is required to be configured as input and ignore Mscr row?
Can you please clarify the doubts?
this is because the SIN and SOUT pins can be configured to swap directions, so SIN can be output as well. Refer to LPSPI CFGR1[PINCFG] description.
If SIN pin is input then you need to set MSCR[IBE] and respective IMCR[SSS].