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.

TLIN1027-Q1: UART interface for controlling the LIN

Part Number: TLIN1027-Q1

Hello E2E,

How to control  TLIN1027-Q1 LIN using the UART with a host processor?


Regards,
Carlo

  • Carlo,

    The C2000 team has a LIN stack in the C2000 Ware package as an example. Can you be more specific on what you need help with, like understanding the LIN protocol?

    Regards,

    Eric Hackett 

  • Dear Team,

    I am implementing Kline - 

    As per the datasheet it is mentioned Tx is responsible for controlling LIN PIN.

    We just wanted a logic how to control through UART - TX

  • Puneeth,

    That is correct, the LIN bus pin follows the data stream that is asserted on the TXD pin. UART typically works by taking parallel bus data, converting it to a serial data stream, then transmitting to through it's TX and receiving from another UART device through the RX pin. In this case, you can think of the LIN transceiver as the "other UART device", when the LIN bus is the parallel data stream converted through the LIN transceiver, then sent to the micro through UART via the TXD and RXD pins.

    In terms of a specific K-line implementation example, unfortunately we don't have something like that available. The K-line physical layer and protocol is defined in the ISO 9141 specification, which must be purchased individually and cannot be shared.

    Please let me know if you have any questions.

    Regards,

    Eric Hackett 

  • Hello Eric Hackett ,

    Thanks for the update.

    We understand that our understanding is proper i.e UART TXD is controlling the LIN bus.

    I am hardware engineer - my software team wants to know through UART_TXD how to control the LIN bus.

    What type of data to be sent in the UART_TXD to control LIN bus.

    if possible can you share the example code for LIN BUS implementation - from that we can understand how to control the BUS.

    Thanks,

    Puneeth S Kumar

  • Puneeth,

    The C2000 Ware code contains a LIN stack portion in the code that may be helpful. This was written for the C2000 processors within TI, so it won't be directly transferrable to your processor. 

    I guess your question is more about the protocol of K-Line/LIN. You can find the LIN protocol specification online for free, while the K-Line protocol definition you'll have to purchase. In general, LIN is a 20kbps data stream with a specific communication frame from the commander and the responder nodes reply back to this with a specific frame structure as well. I'm not well-versed in the K-Line communication protocol, but I believe it is a similar communication structure: the commander node sends the first half of the frame giving instructions to the responder nodes, and the responder nodes reply accordingly. Within this frame, the whole LIN bus syncs up to the baud rate through a sync portion of the frame from the commander node, as well as specific instruction codes and which node the instruction is meant to address.

    Without knowing your exact application, it's difficult to say exactly what kind of data you'll need to transmit, but even so it'd be difficult for me and my team to support since we're more experienced with the physical layer rather than the software portion.

    Regards,

    Eric Hackett 

  • Dear Eric,

    Understood - what you are saying.

    I have done the schematics and now we have got the TLIN1027-Q1 - we have done wiring in a general purpose pcb.

    Our software team wants to test the KLINE ( KLINE related all the documents we have)

    But only one doubt my team is having is Through UART-TXD from the processor how to control the output LIN line.

    For example if we give UART_TXD as high - then LIN line will high - but our team doesnt know how to do this through UART.

    Processor: i.MX6ULL ( NXP)

  • Puneeth,

    I'm glad to hear you have a TLIN1027 device to work with, but I'm not sure I can address the question about setting up UART on the NXP processor. Is that ultimately what your team needs help with, to setup the UART function on the i.MX6ULL? If it is, this isn't something myself or my colleagues can help with as we don't have the experience or knowledge with this processor.

    Regards,

    Eric Hackett