Introduction to CAN

Introduction to CAN

Introduction to CAN What is CAN and what are some of its features? Serial communication Multi-Master Protocol Compact Twisted Pair Bus line 1 Megabit per second Why is CAN used? Robust in noisy environments Priority Signal Setting

All devices on the network receive every bit of information sent on the BUS Cost Effective What are some real world applications of CAN? Controller Area Networks are used in many different fields, the bulk of which are Auto-motive industry

Factory Automation Machine Control Medical Equipment and devices And more. What is transmitted? Fie ld na m e Start-of-frame Identifier Remote transmission request (RTR) Identifier extension bit (IDE) Reserved bit (r0) Data length code (DLC) Data field

CRC CRC delimiter ACK slot ACK delimiter End-of-frame (EOF) Le ngth (bits) Purpose 1 Denotes the start of frame transmission 11 A (unique) identifier for the data 1 Must be dominant (0)Optional 1

Must be dominant (0)Optional Reserved bit (it must be set to dominant (0), but accepted as either dominant or 1 recessive) 4 Number of bytes of data (0-8 bytes) 0-8 bytes Data to be transmitted (length dictated by DLC field) 15 Cyclic redundancy check 1 Must be recessive (1) 1 Transmitter sends recessive (1) and any receiver can assert a dominant (0)

1 Must be recessive (1) 7 Must be recessive (1) All messages sent over a CAN network follows this format. Each bit is used either to verify the validity of the message, or is data itself. What is the process of sending a message? At each CAN device, the start of frame bit notifies a

transmission is being sent. The identifier bit shows the priority of the message along with determining which device the data belongs to. CAN Message Transmission Basic message frame format Field name

Length (bits) Start-of-frame Identifier 1 11 Purpose Denotes the start of frame transmission A (unique) identifier for the data Remote transmission request (RTR)

1 Must be dominant (0) Identifier extension bit (IDE) 1 Must be dominant (0) Reserved bit (r0) 1

Reserved bit (it must be set to dominant (0), but accepted as either dominant or recessive) Data length code (DLC) 4 Number of bytes of data (0-8 bytes) Data field CRC CRC delimiter

0-8 bytes Data to be transmitted (length dictated by DLC field) 15 Cyclic redundancy check 1 Must be recessive (1) ACK slot

1 Transmitter sends recessive (1) and any receiver can assert a dominant (0) ACK delimiter 1 Must be recessive (1) End-of-frame (EOF) 7

Must be recessive (1) Arbitration Field Message Objects 32 message objects Configured to transmit or receive or both Configured using the Message Object Interface Registers Each identifier is stored in a Message object. Message number is the receive/transmit priority for the Message Objects Message Object 1 has the highest priority, while Message

Object 32 has the lowest priority Message Object Interface register ID28-0 Message Identifier ID28 - ID0 29-bit Identifier (Extended Frame). ID28 - ID18 11-bit Identifier (Standard Frame). Dir Message Direction one Direction = transmit zero Direction = receive Data 0 1st data byte of a CAN Data Frame Data 1 2nd data byte of a CAN Data Frame

Error Field Enable test mode to use the modes below Loop Back Mode Silent Mode Basic Mode Status Register Transmit successfully Receive successfully Stuff Error -Form Error AckError -Bit1Error Bit0Error -CRCError

Debugging Oscilloscope Useful in Lab 1 read the message frame and error bits calculate the frequency of a message frame Components for Lab 1 Slide Switch 74F365 Hex Buffer Bi color LED

Recently Viewed Presentations

  • Self-Regulated Learning: Active Learning on the Inside Linda

    Self-Regulated Learning: Active Learning on the Inside Linda

    Macbeth. Benefits to Students. Motivation. Professionalism. Conscious focus on learning. More and deeper thinking . Learning performance. Adult Success. Hattie's (2017) meta-meta-analysis . ... Mind Map - hierarchy or free association. 2020. Periodic Free-Recall.
  • Chapter 12 Closing Begins the Relationship McGraw-Hill/Irwin ABCs

    Chapter 12 Closing Begins the Relationship McGraw-Hill/Irwin ABCs

    Difficulties With Closing. Closing is the easiest part of the presentation. Salespeople may fail to close because: They are not confident in their abilities to close
  • Context - Macbeth, A Christmas Carol, Blood Brothers and Poetry

    Context - Macbeth, A Christmas Carol, Blood Brothers and Poetry

    Context Revision Cards. Types of context: Historical. Social. Authorial . Audience . Genre. On one side of the card write the context factor, on the other side write down the definition and the link. Genre. Hubris + Tragic Hero. Hubris...
  • The Old Testament and the Trinity Chapter B

    The Old Testament and the Trinity Chapter B

    Chapter SummaryThe Bible: The Exodus. God's concern for his people's suffering is without end or limit. God called Moses and Aaron to lead his people out of Egypt, he fought for his people against their oppressors, he protected the Israelites...
  • Terminologi Anatomi PRINSIP UMUM PENAMAAN  SATU NAMA UNTUK

    Terminologi Anatomi PRINSIP UMUM PENAMAAN SATU NAMA UNTUK

    A 32-year-old woman delivered a large (4800 g) baby vaginally after some difficulty with her labor. Her prenatal course was complicated by diabetes, which occurred during pregnancy.
  • Habitat Is Where the Heart Is What are

    Habitat Is Where the Heart Is What are

    Direct observation Listening bird calls Evidence of animals dens, tracks, scats Electrofishing Radio telemetry Radio telemetry Today we're going to study the habitat use of animals in your local ecosystem We have 2 OBJECTIVES: 1. Find where the animals are...
  • Use the Pirate P.A.T.C.H . P = Presto

    Use the Pirate P.A.T.C.H . P = Presto

    Use the Pirate. P.A.T.C.H. to Construct an Awesome Response! P = Presto Change-O! Use the words from the question to form a topic sentence. A = Answer the question! ... PowerPoint Presentation Last modified by:
  • Subject Headings & Classification

    Subject Headings & Classification

    Subject Headings & Classification. Or, why catalogers don't seem to think like normal people. IDS4930: 5 February 2013. This is a version (revised to fill in the notes section for better independent comprehension) of a lesson taught to undergraduate students...