SLAAEK9 February   2025 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1 , MSPM0C1105 , MSPM0C1106 , MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1 , MSPM0H3216 , MSPM0L1105 , MSPM0L1106 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2How MSPM0 Support LIN Function
    1. 2.1 Clock
    2. 2.2 LIN Hardware
    3. 2.3 LIN Demo Code in SDK
      1. 2.3.1 LIN Commander
      2. 2.3.2 LIN Responder
  6. 3LIN Communication Realization
    1. 3.1 Hardware Connection
    2. 3.2 Test Results
      1. 3.2.1 Commander
      2. 3.2.2 Responder
  7. 4Summary
  8. 5References

LIN Hardware

For supporting local interconnect network (LIN) protocol, the following hardware enhancements are implemented in the UART0 module:

  • 16 bit up-counter (LINCNT) clocked by the UART clock.
  • Interrupt capability on counter overflow (CPU_INT.IMASK.LINOVF).
  • 16 bit capture register (LINC0) with two configurable modes
    • Capture of LINCNT value on RXD falling edge. Interrupt capability on capture.
    • Compare of LINCNT with interrupt capability on match.
  • 16 bit capture register (LINC1) can be configured
    • Capture LINCNT value on RXD rising edge. Interrupt capability on capture.

Besides, MSPM0 also has large register to support LIN communication. For example, when served as commander, there is a LCRH.BRK register to enable UART.TXD to send continually low level. And for responder, LINCNT register can help get the time of the break field. For more detailed information, see MSPM0 G-Series 80MHz Microcontrollers, technical reference manual.