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.

LAUNCHXL2-RM57L: Can LIN1RX and LIN1TX pins be used as SCI1TX and SCIRX pins?

Part Number: LAUNCHXL2-RM57L
Other Parts Discussed in Thread: HALCOGEN, RM57L843

Hello,

If I enable only the SCI1 driver in Halcogen, can the LIN1RX and LIN1TX pins be used as SCI1TX and SCIRX pins on the microcontroller board? I'm referring to this PDF: http://www.ti.com/lit/ml/spnu616/spnu616.pdf

I want to connect the RX/TX wires from a RS232 cable to the microcontroller, so I don't think LIN1 would work, but SCI1 would? Please correct me if my understanding is wrong.

Thank you.

  • Hello,

    RM57L843 has 4 SCI modules. Two with Local Interconnect Network (LIN 2.1) Interface.
    To use SCI1/LIN1 as SCI  you must enable SCI1 driver in HALCoGen (not LIN1).
    To use SCI2/LIN2 as SCI  you must enable SCI2 driver in HALCoGen (not LIN2).
    For using SCI3 and SCI4 you must enable SCI3 and SCI 4 drivers in HALCoGen.

    APIs for all SCI modules will be in sci.c and to refer to some of SCI ports you should use sciREG1, sciREG2, sciREG3 and sciREG4.

    You have to set PINMUX tab as well. In PINMUX Tab check SCI3, SCI4 and LIN/SCI2 check-boxes. Clear conflicts if some exists.

    Please consider voltage levels of RS232 if you intend to use RS232 port of PC.

    If you are going to use USB/UART adapter consider one compatible with 3.3V I/O voltage levels.

    Best regards,
    Miro

  • So can I connect the RX/TX wires from a RS-232 cable to the LIN1RX and LIN1TX pins on the RM57 microcontroller board (pins J5.3 and J5.4 shown here http://www.ti.com/lit/ml/spnu616/spnu616.pdf)?

    Would I have to enable LIN1 or SCI1 for this to work?

  • Hello,
    To use SCI1/LIN1 as SCI ( UART ) you must enable SCI1 driver from HALCoGen-->Driver Tab (not LIN1).
    Rx of SCI1 is exposed to J5.3 and Tx of SCI1 is exposed to J5.4 and you can use these pins as UART.

    If you intend to connect LaunchPad to RS-232 (COM port, usually 9pin male DE-9 connector) of PC you must use RS-232 Line Driver/Receiver ( for example:  ). On most PCs RS-232 voltage levels swing from -13 to +13V and Hercules I/O voltage is 3.3V that is why you need this Line Driver/Receiver.

    Another way to connect to PC is using USB-->UART adapter that supports 3.3V logic levels (this adapter emulates COM port using USBt). You can search on Internet to find plenty of USB-->UART adapters.

    Best regards,

    Miro