This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137: Lin module pins in multiplexing mode

Part Number: TMS570LS3137

Hi Team,

Do we need to initialize LIN module in order to use the corresponding pins for multiplex operation.
The reason is that during sciInit, both SCI and LIN interfaces are initialized and without initialization LIN module, we are not seeing expected results for the data received over LIN pins.

  • Hello,
    LINRX and LINTX are not multiplexed with other than SCI/LIN functions or as a GIO in both PGE and ZWT packages.
    If you have enabled SIC2 driver than LIN/SCI module will be initialized by sciInit function. You can init pins as GIO as well.
    If you have enabled both SCI and SCI2 drivers then SIC and SCI/LIN (in SCI mode) will be initialized by sciInit.
    If you have enabled LIN driver you will have to call linInit for initialize SCI/LIN in LIN mode or as GIO.

    Best regards,
    Miro
  • Hi Miro,

    Wanted to use LIN pins as GIO. So, do we need to perform Lin initialization for that?
  • Hello,
    If you are not going to use LIN Module then you can enable SCI2 driver and set in SCI2 Tab Tx Pin Mode as GIO and RX Pin Mode as GIO. Other settings can be made here as well - Input or Output, pull-up/pull-down enable, open drain mode, initial output state. In this case sciInit will initialize both SCI and SCI2 (but SCI2 pins will be GIO, not functional).
    Then you can use SCI2 pins as GIO using gio.c APIs ().

    Best regards,
    Miro