Controller Area Network

Slides:



Advertisements
Similar presentations
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Advertisements

Contents Overview Data Information Frame Format Protocol
Introduction to CAN.
Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
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,
Chapter 9 Local Area Network Technology
LAN Protocol Architecture
CompTIA Network+ Chapter 2
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
Control Area Network (CAN) Bus. 2 Overview  CAN is an important embedded protocol  Primarily automotive, but used in many other places  CAN specifies:
D Channel Data Link Protocol Link access procedure on the D channel - LAPD.
1 K. Salah Module 4.0: Data Link Layer The Logical Link Control (LLC) sublayer –Framing –Flow Control –Error Control The Media Access Control (MAC) sublayer.
Open System Interconnection (OSI) Model
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.
CAN PROTOCOL Characterization Presentation
CS335 Networking & Network Administration Tuesday, April 13, 2010.
12.1 Chapter 12 Multiple Access Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying.
EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong.
Introduction to Media Access Control Protocols Yerang Hur and Jiaxiang Zhou System Design Research Lab. Dept. of Computer and Information Science.
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.
University of Tehran 1 Interface Design Vehicle Busses Omid Fatemi.
Controller Area Network Wilmer Arellano, Summer 2007
ECE 371 Controller Area Network (CAN) Overview. Controller Area Network The development of CAN began when more and more electronic devices were implemented.
IEEE Standards, FDDI, Collision Free Protocols
© 2008, Renesas Technology America, Inc. All Rights Reserved The RCAN-ET peripheral and the CAN API SH2 & SH2A MCUs V 1.2 Mar 2010.
IEEE Project started by IEEE for setting standard for LAN. This project started in (1980, February), Name given to project is year and month.
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:
Jiří Novák, CTU FEE in Prague, Dept. of Measurement Industrial Distributed Systems Technology overview Technology overview Important features Important.
ECGR 6185 Advanced Embedded Systems Controller Area Network University Of North Carolina Charlotte Bipin Suryadevara.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Giuseppe Bianchi Layer 2 Framing HDLC (High-level Data Linl Control)
Local Area Networks: Ethernet. IEEE Background Institution of Electrical and Electronic Engineering (IEEE) A professional non-profit organization Project.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
Data Link Layer : Services, Framing, Error Detection and Correction2.
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.
17 - Winter 2005 ECE ECE 766 Computer Interfacing and Protocols 1 Local Area Networks Need for high performance communications for physically close devices.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
LOCAL AREA NETWORKS. LAN PROTOCOL ARCHITECTURE The basic functions of a LAN is organized by set of layering protocols. IEEE 802 Reference Model Protocols.
CAN Controller Area Network Wilmer Arellano, Summer 2007.
THE OSI MODEL ISO is the organization.OSI is the model. ISO  International Standards Organization OSI  Open Systems Interconnection.
National Institute Of Science & Technology CAN-based Higher Layer Protocols and Profiles Rajaaranjan Mishra 1 EI DECEMBER-2004 CAN-based Higher.
Ethernet Overview it the IEEE standard for Ethernet.
1 Layer 2 Technologies Honolulu Community College Cisco Academy Training Center Semester 1 Version
Chapter 14 Local Area Networks
Unit 3 Physical Layer.
OSI ARCHITECTURE IN OSI, ACTUAL INFORMATION IS OVERHEADED BY PROTOCOL LAYERS IF ALL SEVEN LAYERS ARE OVERHEADED, THEN AS LITTLE AS 15% OF THE TRANSMITTED.
An Introduction to CAN CAN Basics 2 Renesas Interactive
1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare.
+ Lecture#2: Ethernet Asma ALOsaimi. + Objectives In this chapter, you will learn to: Describe the operation of the Ethernet sublayers. Identify the major.
LonWorks Introduction Hwayoung Chae.
Data Communication Networks Lec 18. Wired LAN:Ethernet Datalink layer – Logical link control(LLC) – MAC Physical layer.
CAN ( Controller Area Network )
National Institute of Science & Technology TECHNICAL SEMINAR PRESENTATION Presented by TRUPTI RANJAN BEHERA Roll no: EI Under the Guidance of.
Data Communications Data Link Layer.
CAN Controller Area Network 29BIT ID
Network Models. 2.1 what is the Protocol? A protocol defines the rules that both the sender and receiver and all intermediate devices need to follow,
CAN CANopen.
Controller Area Network (CAN Bus)
Chapter 12 Multiple Access.
Lab 7 – CSMA/CD (Data Link Layer Layer)
Lec 5 Layers Computer Networks Al-Mustansiryah University
Chapter 12 Local Area Networks
Chapter 3: Open Systems Interconnection (OSI) Model
Controller Area Networks (CAN)
Chapter 2. Protocols and Architecture
Chapter 12 Local Area Networks
Chapter 12 Local Area Networks
Presentation transcript:

Controller Area Network YoonMo Yeon 2007. 5. 31.

Contents Introduction to CAN CAN Protocol Physical Layer Data Link Layer CAN Controller in AT91SAM9263

What is CAN? Developed by BOSCH Multi-master/broadcast Maximum signaling rate of 1Mbps Absence of node addressing Message ID : contents, priority CSMA/CD with AMP Asynchronous Serial Bus Simple 2-wire differential bus

Architecture

CAN High Layer Protocols CAN protocol defines only the physical and a low data link layer The HLP defines : Start-up behavior Definition of message identifiers for the different nodes Flow control Transportation of messages > 8bytes Definition of contents of Data Frames Status reporting in the system

CAN High Layer Protocols Existing HLPs CANOpen DeviceNet CAN Kingdom SAE J1939 X-by-wire systems & Time-triggered protocols OSEK/VDX

Controller Area Network Physical Layer

CAN Physical Layer CAN Transceiver CAN Controller Driver/Receiver Characteristics CAN Controller Bit Encoding/Decoding Bit Timing Bus Failure Synchronization Management

Typical CAN Node

CAN Bus Logic

CAN Bit Coding & Bit Stuffing NRZ Bit Coding Stuff Bits are inserted after 5 consecutive bits of the same level for synchronization

CAN Bus Arbitration CSMA/CD with AMP(Arbitration by Message Priority)

CAN Bus Synchronization

CAN Bit Construction Partition of CAN Bit Time

Relation between BaudRate and Bus Length

Controller Area Network Data Link Layer

CAN Data Link Layer CAN Controller Logical Link Control Sublayer (LLC) Acceptance Filtering Overload Notification Recovery Management

CAN Data Link Layer CAN Controller Medium Access Control Sublayer (MAC) Data Encapuslation/Decapsulation Frame Coding(Stuffing, Destuffing) Medium Access Management Error Detection Error Signaling Acknowledgement Serialization./Deserialization

Standard/Extended CAN

CAN Frame Formats

CAN Frame Formats

CAN Frame Formats Four Frame Types Data Frame (RTR=0) Remote Frame (RTR=1 and no data field) Error Frame (after violation frame format) Overload Frame (Not really used)

Error Detection Error Types CRC error Bit-stuffing error Bit error Form Error Acknowledgment error

Fault Confinement

AT91SAM9263 CAN Controller

AT91SAM9263 CAN Controller CAN 2.0A and CAN 2.0B Bit rates up to 1Mbit/s 16 Mailboxes Each can be Receive or Transmit one Local Tag and Mask Filters 16-bit Time Stamp 32x2 Data Register

Block Diagram

AT91SAM9263-EK CAN Circuit

Mailbox Organization Mailbox Also called channels or buffers The CPU reads or writes data via the CAN controller mailboxes Each mailbox has an ID Several mailboxes can be configured with the same ID There are 16 mailboxes Can be configured in receive or transmit mode

Mailbox Priority Receiption Mode Transmission Mode Mailbox with the lowest number is serviced first Transmission Mode Register CAN_MMR(Mailbox Mode Register) PRIOR:4bit – mailbox priority Same priority -> mailbox with lowest number first

Message Acceptance Procedure MIDx : Mailbox ID register MAMx : Acceptance Mask register

Message Acceptance Example

Mailbox Object Type Receive Mailbox Transmit Mailbox Receive Receive with overwrite Consumer Transmit Mailbox Transmit Producer

Receive Mailbox

Receive with Overwrite Mailbox

Chaining Receive Mailboxes All mailboxes are configured with same ID The mailbox with the largest number is configured in receive with overwrite mode (others are configured in receive mode)

Chaining Receive Mailboxes

Transmitting Messages

Producer/Consumer model

Producer Handling

Consumer Handling

CAN Controller Timing Modes Timestamping Modes The value of the internal timer is captured at each Start Of Frame or each End Of Frame

CAN Controller Timing Modes Time Triggered Mode

Q & A

References Self Training – CAN; Atmel Introduction to the Controller Area Network; Steve Corrigan; Texas Instruments Application Report SLOA101 Datasheet SN65HVD234 AT91SAM9263