Search Entire Site:
Explore | Login | Register | Contact Us | About Us


Tech Tutorial: LIN and SAE J2602 drive more efficient automotive networking: Part 2
By Matt Ruff, Freescale Semiconductor
Source: Embedded.com

Posted: 08/18/2006
Rating: 3.5 (Good!)

Part 1 of this series covered basics and LIN master nodes.

Bit-banged LIN slaves
As stated in the previous installment, LIN slaves can use a timer input capture channel for reception and a general purpose output pin for the transmit channel. Two Freescale LIN application notes, AN2503 and AN2599, detail how this bit-banging technique is done, with slightly different features implemented in each version. Additionally, you can find a reference design on the Freescale Website that uses an HC908QY4 device to bit-bang LIN a set of steering wheel switches with pulse-width-modulation backlighting.

Bit-banged solutions can be done on almost any MCU provided there is one timer channel and one output pin, but it is very software intensive. It can be a cost-effective alternative, but the microcontroller CPU has to process a large number of interrupts and the entire process of sending and receiving bytes must be performed in software at a bit level. This is more performance than many applications can spare to simply communicate.

ESCI LIN slaves
The next step up the performance ladder comes with the advent of the Enhanced Serial Communications Interface (ESCI) module (found on many Freescale HC908 family devices). The ESCI is specifically tailored to LIN slave applications. It has an integral arbiter module that can recover the baud rate from the LIN synchronization byte in the header, as well as greatly increased resolution on its prescaler structure, which allows it to adjust for clock frequency drift due to temperature and voltage changes.

View a full-size image

Many applications work very well with an ESCI solution, but there is one higher level of performance in the LIN slave microcontroller line. The ESCI still must handle messages on a byte level, which means that every byte of a message, whether sent or received, generates an interrupt to the microcontroller. This is also true of messages that the slave doesn't even wish to receive.

SLIC LIN slaves
To help eliminate such unwanted interrupts and fully automate the low-level LIN protocol functions to streamline interrupt service code and LIN software, Freescale has developed the Slave LIN Interface Controller (SLIC) module. This latest LIN communications peripheral device utilizes patented technology to synchronize to any LIN bus speed at any time. The result of these performance enhancements means that developers can spend more of their performance budget directly on the application and less on simple communications.

The SLIC module has powerful features such as:

  • True automatic frame synchronization and autobauding, which: Synchronizes to LIN traffic; eliminates preprogramming of baud rate; can autobaud up to 120 kbps for high-speed reprogrammability, and no oscillator trimming is needed.
  • LIN interrupt reductions of up to 83.3% (Two interrupts per standard LIN frame maximum)
  • Automatic LIN error checking and reporting
  • Interrupt service routines of less than 150 bytes possible
  • Automatic checksum generation/checking

    There are many more advantages to the SLIC module, such as an interrupt vector handling mechanism that allows extremely efficient interrupt service routine handling to minimize time spent in the routine. Combined with the full message buffering, which is designed to reduce the number of interrupts to a maximum of two for any LIN message, the SLIC module performance is a significant improvement. The figure below shows the interrupt loading for an SLIC-based node and a UART based node.

    Which solution to choose?
    Every application is different and has different performance and cost targets. A great number of factors must be considered when choosing the right solution for any application. To aid in this process, Freescale benchmarked the three solutions above and the results can be found in a table in AN2633, "LIN Drivers for SLIC Module on the MC68HC908QL4". A list of application notes that can be found on the Freescale Website is given in the table below.

    Conclusion
    With worldwide automakers adopting the LIN and SAE J2602 standards, it is certain that LIN will continue to grow. Applications are not limited to automotive systems; LIN can also be implemented in home automation, industrial networking, and many other applications where sensors, motors, switches, and actuators need to be connected at low-cost.

    Freescale's Matt Ruff has been working in applications and systems engineering for the past nine years, specializing in automotive communications. His work with CAN and LIN products and standards has resulted in a patent and numerous publications, including articles, papers, and contributions to a textbook on the LIN protocol.

    References
    Reference designs, application notes, and more can be found at the Freescale Semiconductor LIN Website.

    Implementing Local Interconnect Network (LIN) Slave Nodes, SAE Paper Number #2002-01-1298 (Search the SAE bookstore for this paper).


     

  • Who designed the main circuit board (and several of the chips) in the HP CD Writer?
    (HINT: You can find the answer in the Multimedia Wiki.)
      Hewlett Packard
      Sony
      Netrino
      Microsoft

    Do you know the answer?
    Do you want to be rewarded?
    Login to Mechatropolis or Become a Citizen.
    To add search tags or to rate Articles, please Login to Mechatropolis or Become a Citizen
    Search Tags: Freescale  LIN  controls  automotive  article  tutorial  SAE  J2602  cmp  
    Comments:


     
    Community Status
     
    Top Citizen: Inaki Z.
    723056 Points
    Are you smarter?
    Login or Register

    Invite A Friend
    Your
    E-Mail:
    Friend's
    E-Mail:
     

    Related Articles
    Robots show off what they've learned ...
    SEATTLE — Robots stole the show at the recent International Joint Conference on Artificial I...
    Making MEMS accelerometers work in motio...
    MEMS (micro electromechanical system) inertial sensor technology provides a major structural shift in mechanic...
    Technique yields precise calibration of ...
    Overcome zero-offset and gain errors when using dual-slope ADCs in low-cost instrumentation applications ...
    Robots called electronics driver of 21st...
    FUKUOKA, Japan — As the competitive field narrows for World Cup soccer, Honda Motor's Asim...
    View all Articles

    Editor's Selection
    Freescale Samples Flexis Series 8/32-bit...
    External Link: http://www.automotivedesi...
    Click for more information.
    Advances in servo system development ...
    The recent trend in has been to reduce cost, size and complexity of servo systems while increasing performance...
    Driverless vehicles meeting challenge...
    PORTLAND, Ore. — The winners of the last Grand Challenge, an autonomous vehicle race sponsored by the ...
    View all Articles

    Popular Mechatropolis Articles
    Getting in touch with touchscreen tech...
    Touchscreen technology is emerging as a killer app all by itself  Thanks to advances in mec...
    PCI Express image-acquisition board set ...
    Imaging and video have always interested me. As a youth in the early 1960s I tinkered with a surplus ph...
    Generate stepper-motor speed profiles in...
    A new algorithm for stepper-motor acceleration allows speed profiles to be parameterized and calculate...
    Tutorial: Improving the Transient Immuni...
    When it comes to protecting their designs from a variety of transient electrical disturbances, developers of m...
    View all Articles

    ArticlesTag Cloud
      accelerometer     actuator     ADC     aerospace     Atmel     automotive     AVR     CAN     Celoxica     controls     debug     DSP     Echelon     ECU     electronics     ENOVIA     Freescale     HILS     I2C     industrial     keypad     LIN     LONworks     MCU     mechanics     medical     Microcontroller     prototyping     Pyxos     robotics     Semiconductor     sensor     ShortStack     simulation     SPI     switch     Toshiba     XBox     zigbee  


    Do you have a question or suggestion?
    Send us a message using this form:
    Name:
    E-Mail:
    Subject:
    Message:
    Verify:This Is CAPTCHA Image (enter code)
     

    Which of the following is the coolest Mechatronic device?
     
    i-Robot Roomba
    Wii Remote Controller
    Coffee Maker
    Blood Preasure Monitor
     
     

    Home | Videos | Articles | AppNotes | Webcasts | Courses | Wiki Teardowns | VirtuaLabs | Challenges
    Explore | Login | Register | Contact Us | About Us

    Privacy Policy | Your California Privacy Rights | Terms of Service
    © 2008 TechInsights, a division of United Business Media Limited. All Rights Reserved.