© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This training course provides an introduction to Controller.

Slides:



Advertisements
Similar presentations
Contents Overview Data Information Frame Format Protocol
Advertisements

Introduction to CAN.
Course Introduction Purpose
Introduction to CANBUS
Setha Pan-ngum. History of CAN [1] It was created in mid-1980s for automotive applications by Robert Bosch. Design goal was to make automobiles more reliable,
William Stallings Data and Computer Communications 7th Edition
CompTIA Network+ Chapter 2
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
MotoHawk Training CAN Controller Area Network.
Intro to Controller Area Networks (CAN) Part 2 of 2, E. Zivi, April 1, 2015 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
1 Version 3 Module 8 Ethernet Switching. 2 Version 3 Ethernet Switching Ethernet is a shared media –One node can transmit data at a time More nodes increases.
OSI Model.
The OSI Reference Model
EE 4272Spring, 2003 Chapter 9: Circuit Switching Switching Networks Circuit-Switching Networks Circuit-Switching Concept  Space-Division Switching  Time-Division.
Open System Interconnection (OSI) Model
Network Data Organizational Communications and Technologies Prithvi N. Rao Carnegie Mellon University Web:
Host Data Layer 7 Application Interacts with software requiring network communications; identifies partners, resources and synchronization Layer 6 Presentation.
Dave Mills CANbus: A brief introduction Incorporating: The Fujitsu status Dave Mills Queen Mary, University of London.
Review on Networking Technologies Linda Wu (CMPT )
Chapter 2 Network Models.
 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying.
Intro to Controller Area Networks (CAN) Part 1 of 2, E. Zivi, April 1, 2015 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a.
EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong.
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
SERIAL BUS COMMUNICATION PROTOCOLS
January 9, 2008BAE In-Vehicle Networking Lecture 1 Introduction to CAN (Controller Area Network) BAE 5030 – 363 Spring 2009 Instructors: Marvin.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Data Link Layer Network Fundamentals – Chapter 7.
Network Architecture and Protocol Concepts. Network Architectures (1) The network provides one or more communication services to applications –A service.
ECE 371 Controller Area Network (CAN) Overview. Controller Area Network The development of CAN began when more and more electronic devices were implemented.
© 2008, Renesas Technology America, Inc. All Rights Reserved The RCAN-ET peripheral and the CAN API SH2 & SH2A MCUs V 1.2 Mar 2010.
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Fundamentals CE
Protocol Layering Chapter 10. Looked at: Architectural foundations of internetworking Architectural foundations of internetworking Forwarding of datagrams.
In-Vehicle Networking for Heavy Duty Systems Review of CAN / SAE J1939/ ISO BAE 5030 Fall 2001 Instructor: Marvin Stone BAE 5030 Fall 2001 Instructor:
Network Architecture & Standards
Bluetooth Techniques ECE 591. Overview  Universal short-range wireless capability  Uses 2.4-GHz band  Available globally for unlicensed users  Devices.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Introduction Slide 1 A Communications Model Source: generates.
Computer Architecture Lecture 30 Fasih ur Rehman.
Copyright CCNA 1 Chapter 5 Ethernet Fundamentals By Your Name.
Universal Asynchronous Receiver/Transmitter (UART)
ECGR 6185 Advanced Embedded Systems Controller Area Network University Of North Carolina Charlotte Bipin Suryadevara.
The OSI Model.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Chapter 6 – Connectivity Devices
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This module provides an overview of sophisticated peripheral.
Section 3 - Slide 1/19 P&T - GPS - Formation PhW - CANopen_lev1_en - 01/2004 History CANopen and the ISO model Physical layer Link layer Application layer.
William Stallings Data and Computer Communications
1 Lecture Controller Area Networks Dr. Tony Grift
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Protocols and Architecture Slide 1 Use of Standard Protocols.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Signalling Techniques
Controller Area Network (CAN) is a broadcast, differential serial bus standard, originally developed in the 1980s by Intel and Robert Bosch GmbH, for.
Protocol Layering Chapter 11.
Chapter 7 OSI Data Link Layer.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. Overview of Ethernet Networking A Rev /31/2011.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
An Introduction to CAN CAN Basics 2 Renesas Interactive
Ch.12 Communication Systems Valvano’s text Introduction SCI can be used to create a network. Figure 12.1 gives a general visualization. –At lowest.
1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare.
Controller Area Network
National Institute of Science & Technology TECHNICAL SEMINAR PRESENTATION Presented by TRUPTI RANJAN BEHERA Roll no: EI Under the Guidance of.
CAN CANopen.
THE OSI MODEL By: Omari Dasent.
Click to edit Master subtitle style
Chapter 3: Open Systems Interconnection (OSI) Model
شبکه محلی کنترلر Controller Area Network (CAN)
Controller Area Networks (CAN)
Presentation transcript:

© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This training course provides an introduction to Controller Area Network (CAN) technology, which is used to build networked, multiprocessor embedded systems. Objectives Understand what CAN technology is, why it’s important and where it can be a good design solution. Learn the fundamental operating concepts and capabilities of CAN implementations. Find out how CAN fits into the 7-layer OSI model. Content 19 pages 3 questions Learning Time 30 minutes

© 2009, Renesas Technology America, Inc., All Rights Reserved 2 What is CAN?  Two-wire, bidirectional serial-bus communication method  Originally developed in the mid 1980s by Bosch for automotive use  Main design objective: economical solution for implementing high- integrity networking in real-time control applications  Now standardized internationally: –CAN 2.0A: ISO11519 — low speed –CAN 2.0B: ISO11898 — high speed –CAN Validation: ISO16845  Usage exceeded 200,000,000 nodes in 2001, still growing at a 30% rate annually –Many current and potential non-automotive application opportunities Controller Area Network:

© 2009, Renesas Technology America, Inc., All Rights Reserved 3 Non-automotive CAN Applications Electronically controlled production and packaging equipment –Machine tools; machines for molding, weaving, knitting, and sewing; systems for folding and wrapping; etc. Industrial freezers, printing machines Ships, locomotives, railway systems Farm and construction machinery Semiconductor manufacturing equipment Building automation: HVAC systems, elevators, etc. Hospital patient-monitoring systems Many others More application information available at:

© 2009, Renesas Technology America, Inc., All Rights Reserved 4 Key Reasons for Using CAN 1. Reliability Error-free communication 2. Economy Low wiring cost Low hardware cost 3. Scalability Easy expandability Low node-connection costs 4. Availability More chips with CAN hardware More off-the-shelf tools Higher-level protocols 5. Popularity Knowledge base expanding

© 2009, Renesas Technology America, Inc., All Rights Reserved 5 Main Features of CAN FeaturesBenefits Has a multiple-master hierarchyFor building intelligent and redundant systems Provides transfer rates up to 1 Megabit/sec For adequate real-time response in many embedded control applications Allows 0-8 bytes of user data per message To accommodate diverse design requirements Puts multiple transmit or receive message boxes at each node and assigns each an identifier For flexibility in system design

© 2009, Renesas Technology America, Inc., All Rights Reserved 6 Main Features of CAN FeaturesBenefits Eliminates addresses of transmitting and receiving nodes in data messages To save bus bandwidth, simplify software, and allow simultaneous transmission of node-to-node and broadcast messages Causes receiving nodes to filter messages based on their assigned identifiers (IDs)  To simplify node hardware and software  To permit message prioritization  To allow the hardware to arbitrate the CAN bus Automatically retransmits messages if corruption occurs For accurate communication, even in noisy environments Provides error detection, signaling and fault-confinement measures To ensure highly reliable network operation

© 2009, Renesas Technology America, Inc., All Rights Reserved 7 Design Factors to Consider  Distance/environment –CAN 2.0B: 1Mbps, up to 40m –CAN 2.0A: 125kbps, up to 500m –Suitable for difficult environments — industrial, automotive, and more  Reliability requirements –Integrated error detection and confinement –Automatic retransmission of corrupted message –Probability of undetected bad message is <4.7 x  Number of nodes –Depends on Physical layer; >100 is feasible  Number of masters –Every node can initiate communication and negotiate for the bus  Net data transfer rate –Up to 577Kbps net at 1Mbps total data transfer rate  Message priority –Message with lowest numerical value identifier wins if two nodes try to transmit at the same time Node ANode BNode C Node DNode E CAN Bus Node x

© 2009, Renesas Technology America, Inc., All Rights Reserved 8 Data Flow CAN bus traffic:  The transmitter at a CAN node broadcasts the data frame to all nodes on the bus. –Nodes configured to accept the data save it –Other nodes do nothing with the data  CAN 2.0A has an 11-bit message identifier and operates at a maximum frequency of 250kbps.  CAN 2.0B has 11-bit or 29-bit message identifiers and operates at up to 1Mbps.

© 2009, Renesas Technology America, Inc., All Rights Reserved 9 Match each CAN item to the most appropriate explanation by dragging the letters on the left to the correct locations on the right. Click Done when you are finished. CAN Multiple-master hierarchy B A Done Reset Show Solution A Must be sent by all receiver nodes, or message is re- transmitted D C Message identifier A 2-wire serial bus communication method for multiprocessor systems C Used for addressing, prioritization, and bus arbitration D Acknowledgment B Enables the design of intelligent and redundant systems Question

© 2009, Renesas Technology America, Inc., All Rights Reserved 10 Physical Interface  Dominant low (voltage) line  Recessive high line  Bus must be terminated  Most common Physical-layer choice: ISO

© 2009, Renesas Technology America, Inc., All Rights Reserved 11 Physical-Layer Implementation CAN transceiver: the Renesas HA13721 ASSP IC: –For in-vehicle applications –ISO compliant –High-speed CAN (up to 1Mbps) –Active Standby modes –Over-temperature detection –Over-current detection (Vcc-short/GND-short detection) –Optimized EMI performance –Txd, MODE input pins; 3.3V compatible CANH = C_HI CANL = C_LO

© 2009, Renesas Technology America, Inc., All Rights Reserved 12 CAN Bus Data Frame MCU Output to Transceiver Transceiver Output to Bus CAN uses non-return-to-zero (NRZ) serial data CAN TX C_HI C_LO TX LO levels are dominant (drive bus) TX HI levels are recessive (bus termination controls)

© 2009, Renesas Technology America, Inc., All Rights Reserved 13 Message Bit Time: 4 Segments PROP_SEG: Propagation delay compensation value [ = 2 x (signal propagation time + input comparator delay + output driver delay)] NOMINAL BIT TIME Sample Point SYNC_SEGPROP_SEGPHASE_SEG1PHASE_SEG2 SYNC_SEG: Nodes are synchronized within this phase PHASE_SEG1 and PHASE_SEG2: Establish correct sampling point

© 2009, Renesas Technology America, Inc., All Rights Reserved 14 ‘Bit stuffing’ is applied as needed to keep the bus synchronized: Too many consecutive dominant or recessive bits cause the transmitting node to insert a bit of the opposite polarity Resulting signal edge is used to establish timing synchronization at all nodes on the bus The bit is inserted whenever a sequence of five bits with the same polarity occurs Maintaining Synchronization

© 2009, Renesas Technology America, Inc., All Rights Reserved 15 Maintaining Synchronization Stuffed bit

© 2009, Renesas Technology America, Inc., All Rights Reserved 16 Question Which of these statements correctly describe voltage and timing aspects of CAN bus operation? Select all that apply and then click Done. A dominant value (positive differential voltage >900 mV) is created by driving the C_HI line high and the C_LO line low. Mandatory CAN bus termination resistors create a recessive value when all bus nodes go to a high-impedance state. Because CAN uses NRZ serial data, synchronization between nodes is maintained automatically. The PROP_SEG portion of the bit time is used to compensate for physical delays within the network. Done

© 2009, Renesas Technology America, Inc., All Rights Reserved 17 CAN in the OSI Model Mouse over any of the blocks containing fine print to learn more.

© 2009, Renesas Technology America, Inc., All Rights Reserved 18 Higher-layer CAN Protocols

© 2009, Renesas Technology America, Inc., All Rights Reserved 19 Glossary  Advanced CAN: CAN peripheral with varying numbers of buffers configurable for transmit/receive. Receive buffers have hardware filtering on at least mask/match identifier content.  Basic CAN: CAN peripheral with no hardware filtering. Typically two receive buffers act as a FIFO and accept all bus traffic. Usually one transmit buffer.  Bit Time: Nominal time of one bit on the CAN bus. Made up of multiple segments that allow each node to synchronize to the received bus traffic. All nodes on a bus must be configured to the same (nominal) bit time.  CAN: Controller Area Network.  CAN 2.0B: Version 2.0 was the last version of CAN defined by Bosch. Part B added extended identifiers and the idea of hardware filtering.  CIA: CAN in Automation. Group controlling the CANOpen protocol.  CANOpen: Multi-area communication protocol using CAN.  CRC: Cyclic Redundancy Check.  DeviceNet: Industrial communication protocol using CAN.  Dominant/Recessive: Dominant bits on Physical layer can override recessive bits.  Filters: Hardware in the CAN peripheral that can mask/match bits within the identifier field. Used to determine whether or not to route bus data to a mailbox.  GM LAN 3.0: GM protocol. Encompasses all GM serial protocols.  Identifier: Frame field that indicates the message content. This field also is used to arbitrate the message priority on the bus. A lower ID has a higher priority. –Standard Format: Frames use an 11-bit identifier. –Extended Format: Frames use a 29-bit ID.  ISO 11898: ISO standardized version of CAN.  Mailbox: CAN hardware buffer that can be used to transmit or receive data. Most FullCAN implementations have at least 16 mailboxes.  ODVA: Open DeviceNet Vendor Association. Group controlling DeviceNet protocol.  Time Quanta: Smallest time unit used by CAN. Multiple time quanta make up the segments of a bit time.  TT CAN: Time Triggered CAN. More deterministic form of CAN. Assigns time slots when nodes may transmit.  FlexRay: Next-generation automotive network. Time slots on the bus provide more deterministic behavior.  Vector-CanTech: Supplier of the majority of CAN software drivers and tools for ECUs of North American and European automobiles.

© 2009, Renesas Technology America, Inc., All Rights Reserved 20 Is the following statement true or false? Click Done when you are finished. “Basically, CAN is concerned with the lowest layers of the OSI model, but CAN 2.0B also implements part of the transport layer.” True False Done Question

© 2009, Renesas Technology America, Inc., All Rights Reserved 21  CAN description, applications, features/benefits  Design factors/parameters  Data frame and data flow  Timing issues  Physical interface, OSI model, and higher-level protocols  Glossary Course Summary