SlideShare una empresa de Scribd logo
1 de 30
CAN
Controller Area Network
Introduction
   Standard to establish Network among microcontrollers
   Broadcast type of bus
   No way to send a message to a specific node
   High speed applications with short messages
Comparing W ith Other
       Buses
         Bus     Transfer Type    Transfer Rate   Max. Length (m)       No. Of Nodes
                                      (b/s)

 RS232         Point to point    20k              15                1


 RS485         Network           35k              1200              32


 I2C           Master-Slave      100k             1                 128


 SPI           Master-Slave      110k             1                 any


 CAN           Network           1M               40                2032


 USB           Master-Slave      480M             5                 126
CAN in general………
   Multi-master Network
   2-wire
   Half-duplex
   High-speed (1Mbps)
   Error Confinement and Error Detection
   Distance up to 6 mS
Histor y
   Introduced by Robert Bosch in 1986
   Developed for automotive applications
   Standardized in 1993 as ISO11898-1
   CAN Standards
    1. CAN 2.0A
    2. CAN 2.0B
CAN Standar ds

1.   CAN 2.0A
       Standard CAN (ISO 11898)
       11-bit Identifier
       1 Mbps

2.   CAN 2.0B
       Extended CAN (ISO 11519)
       29-bit Identifier
       125 kbps
Reasons for Using
      CAN

     Robustness & Reliability
     Low Connect Cost
     Low Cost Components
     Availability of CAN based Products
Applications

   In Industry
    To interconnect Machines, Process Control Units and
    Production Sub-system


In Building Automation
    To manage Heating, Lighting, Air ventilation and doors

 Parameter Setting and control of equipment in
  agriculture
Layer ed Str uctur e
                      Application
                        Layer            Message Filtering,
                                           Message and
                        Object            Status Handling
Fault Confinement,      Layer
 Error Detection,
    Signaling,
Message Validation,    Transfer
Acknowledgement,        Layer
    Arbitration,
     Framing,
  Transfer Rate        Physical
       and              Layer
      Timing
                                    Transmission Medium,
                                      Signal Level and
                        CAN
                                      bit representation
                       Network
Networ k Components
                          Cables

      Physical Layer    Connectors


                         Transceivers

                        Part A

      CAN Controller   Part B Passive


                        Part B



      Software
Cables
Twisted Pair Cables are used to get higher speeds. The Bit
rate of the data transformation is high for short distance
and low for long distance.

          Bus Length                Bit Rate
            40 Meters                1 Mbps
           100 Meters               500 kbps
           200 Meters               250 kbps
           500 Meters               125 kbps
            6 meters                10 kbps
Connector s
                 Pin Number       Name           Specification

                 1            -          Reserved
                 2            CAN_L      CAN_L bus line (dominant low)
                 3            CAN_GND    CAN Ground
                 4            -          Reserved
                 5            CAN SHLD   Optional CAN Shield
                 6            GND        Optional CAN Ground
                 7            CAN_H      CAN_H bus line (dominant high)
                 8            -          Reserved
                 9            CAN_V+     Optional Power




        ll                                          Mini type
   r ma
N o ed
 y Us
             Pin Number       Name
             1            Drain
             2            V+
             3            V-
             4            CAN_H
             5            CAN_L
CAN Contr oller s
 Part A
  → 11-bit Identifier
  → Above 2000 devices in the Network
 Part B Passive

  → 11-bit Identifier
 → Tolerated 29-bit Identifier, but ignored
 Part B

  → 29-bit Identifier
  → Above 5 million devices in the Network
Wor king Principle
   Uses CSMA/CD+AMP (Arbitration on Message Priority).
   Data messages transmitted from any node
   Using identifier all nodes will check whether the message is intended
    for it or not
   The identifier determines the priority of the message
   Low bits are always dominant
Frame Types
   Data Frame
   Remote Frame
   Error Frame
   Overload Frame
Data Fr ame
          (Messa ge Frame)
       For 2.0A



Start Of Frame:
       Logic 0 indicates the beginning of a message frame.
Arbitration Field:
      11-bit identifier. Determines the priority of the
message.
Control Field:
       6-bits. 2-bits are reserved for future use. 4-bit Data
Length Code (DLC) indicates the number of bytes in the data
field.
Data Field:
         0 to 8 Bytes of data
CRC Field:
       15-bits Cyclic Redundancy Check Code and 1-bit
delimiter
Acknowledgement Field:
       2-bits. Slot bit (1) overwritten by dominant bit from
other nodes and delimiter bit (1).
End Of Frame Field:
         7-bits (1111111). Indicates the End of the data
frame.
        Following the End Of Field is the Intermission field
consisting of 3-bits (111) denotes the bus is recognized to be
For 2.0B




 SRR (Substitute Remote Request)
 IDE (Identifier Extension)


 The max. no. of user in 2.0A is 2032
 The max. no. of user in 2.0B is above 5 million
Remote Fr ame




The intended purpose of this frame is to ask for the
transmission of the corresponding data frame. It is also used
implement a type of request-response type of bus traffic
management.
Er ror Fr ame




Consists of error flag (6-bits) and error delimiter (8-bits).
Transmitted when a node detects a fault and will cause all
other nodes to detect a fault
Over load Frame

This frame is mentioned just for completeness of the
transaction.
Er ror Detection and
         Confinement
   Error is detected by the CAN Controller
   Error Frame is transmitted
   Message is cancelled at all nodes
   Status of the CAN Controllers are updated
   The message is retransmitted
Difference Between CAN, LIN, I2C
protocol        I2C                                  SPI                                 CAN


Protocol        Synchronous interface used on PCB Synchronous interface used on PCB CAN is Asynchronous Interface &
                                                                                    uses wires for long distance
                                                                                    communications.

Invented        Philips                              Motorola                            Bosch


Data rate       I2C Supports Speed          is   : SPI Supports : 3Mbps to 10Mbps 10Kbps to 1 Mbps
                100Kbps(Standard)
                  :400Kbps(Fast)                 :
                3.4Mbps(High Speed)

master          I2C is multi-master, Address SPI is Master Slave, With Slave MultiMate , Message based
                based Communication          select(SS) based                communications, Reliable
                                             Communication

Pins required   I2C needs 2 pins                     SPI needs 3+n pins (n is no. of CAN H and CAN L
                                                     devices)

supports        I2C supports 127 devices             limited by available Chip selects   2043 devices




                                   © 2008 Pantech Solutions™ | All rights reserved | www.panetchsolutions.net
Dif ference Between CAN,
   LIN, I2C
protocol        I2C                                 SPI                                 CAN
communication   I2C is half duplex as there are only SPI is Full Duplex as between a Half duplex
                two lines(SCL and SDA)                Master and a dedicated slave as
                                                      selected by slave select signal;
                                                      there        are       4      lines
                                                      (Spi_clk,Spi_datain,Spi_dataout
                                                      and slave select).So, at any given
                                                      time data can be sent and received
                                                      by the master on two separate
                                                      lines.
                whereas the I2c is generally used in whereas the SPI is generally used in CAN is generally used for device
                same PCB                              same PCB                            net (different device at different
                                                                                          location)
                bus arbitration is possible in case not in case of spi.
                of                               i2c.

                noise sensitivity of i2c is high...                                     But in case of spi.. Chance is very
                there is chance to corrupt the r/w                                      less as whole word is transmitted.
                bit... then whole data is corrupted
                Single duplex                       Full duplex operation               Half duplex




                                     © 2008 Pantech Solutions™ | All rights reserved | www.panetchsolutions.net
Types Of Er r or s
   Bit Error – The node always reads the message as it is sending. If it
    find a different value on the bus than it send, it detects the bit error.
   Bit Stuffing Error – If a receiving node found more than five
    consecutive bits it detects the error.
   Checksum Error
   Frame Error – Invalid bit error
   Acknowledgement Error
Er ror Modes
   Error Active – Active Error Flag is send and the data are transmitted
    and received usually
   Error Passive – When Controller has frequent problems and Passive
    Error Flag is sent
   Bus Off – When controller has serious problems . No messages can
    be transmitted or received
Er ror Process
Two Error Counters are allocated for controlling the error mode. The
error counters are transmit error count and receive error count
For more details
  www.pantechsolutions.net
  http://www.slideshare.net/pantechsolutions
  http://www.scribd.net/pantechsolutions
  http://www.youtube.net/pantechsolutions
© 2008 Pantech Solutions™ | All rights reserved |
           www.panetchsolutions.net
© 2008 Pantech Solutions™ | All rights reserved

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Controller area network protocol
Controller area network protocolController area network protocol
Controller area network protocol
 
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan KController Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
 
Can Protocol For Automobiles
Can Protocol For AutomobilesCan Protocol For Automobiles
Can Protocol For Automobiles
 
Can bus
Can busCan bus
Can bus
 
CAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolCAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus Protocol
 
Ca npp t
Ca npp tCa npp t
Ca npp t
 
CAN Bus
CAN BusCAN Bus
CAN Bus
 
CAN F28x
CAN F28xCAN F28x
CAN F28x
 
Controller area network
Controller area networkController area network
Controller area network
 
Lin bus
Lin busLin bus
Lin bus
 
Can bus m.n.r
Can bus m.n.rCan bus m.n.r
Can bus m.n.r
 
Can Bus communication Protocol
Can Bus communication ProtocolCan Bus communication Protocol
Can Bus communication Protocol
 
Automotive bus technologies
Automotive bus technologiesAutomotive bus technologies
Automotive bus technologies
 
Overview of automotive network protocol
Overview of automotive network protocolOverview of automotive network protocol
Overview of automotive network protocol
 
Can overview
Can overviewCan overview
Can overview
 
The flex ray protocol
The flex ray protocolThe flex ray protocol
The flex ray protocol
 
CAN Bus
CAN BusCAN Bus
CAN Bus
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect Network
 
CAN BUS.ppt
CAN BUS.pptCAN BUS.ppt
CAN BUS.ppt
 
Uart
UartUart
Uart
 

Similar a CAN- controlled area network

Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3Ankur Rastogi
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3Ankur Rastogi
 
CCNA Routing and Switching Lesson 05 - WANs - Eric Vanderburg
CCNA Routing and Switching Lesson 05 - WANs - Eric VanderburgCCNA Routing and Switching Lesson 05 - WANs - Eric Vanderburg
CCNA Routing and Switching Lesson 05 - WANs - Eric VanderburgEric Vanderburg
 
Some important networking questions
Some important networking questionsSome important networking questions
Some important networking questionsSrikanth
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptxusamamaqsod1
 
Aspects Stratégiques des Réseaux
Aspects Stratégiques des RéseauxAspects Stratégiques des Réseaux
Aspects Stratégiques des RéseauxEric Vyncke
 
Vista-1600C GEPON OLT
Vista-1600C GEPON OLTVista-1600C GEPON OLT
Vista-1600C GEPON OLTShanxi Cai
 
Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...
Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...
Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...KevinYangYang
 
A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...ranjitha mudhiraj
 
BluetoothMobileIP.ppt
BluetoothMobileIP.pptBluetoothMobileIP.ppt
BluetoothMobileIP.pptparul757596
 
BluetoothMobileIP.ppt
BluetoothMobileIP.pptBluetoothMobileIP.ppt
BluetoothMobileIP.pptssuser4d3a6b
 
WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars Salah Amean
 

Similar a CAN- controlled area network (20)

Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Bluetooth mobileip
Bluetooth mobileipBluetooth mobileip
Bluetooth mobileip
 
CCNA Routing and Switching Lesson 05 - WANs - Eric Vanderburg
CCNA Routing and Switching Lesson 05 - WANs - Eric VanderburgCCNA Routing and Switching Lesson 05 - WANs - Eric Vanderburg
CCNA Routing and Switching Lesson 05 - WANs - Eric Vanderburg
 
Some important networking questions
Some important networking questionsSome important networking questions
Some important networking questions
 
San 2
San 2San 2
San 2
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
 
IJSTEV2I12120
IJSTEV2I12120IJSTEV2I12120
IJSTEV2I12120
 
Aspects Stratégiques des Réseaux
Aspects Stratégiques des RéseauxAspects Stratégiques des Réseaux
Aspects Stratégiques des Réseaux
 
Vista-1600C GEPON OLT
Vista-1600C GEPON OLTVista-1600C GEPON OLT
Vista-1600C GEPON OLT
 
Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...
Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...
Bluetooth Technology-Introduction to Bluetooth, Technical Specifications, Blu...
 
A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...
 
BluetoothMobileIP.ppt
BluetoothMobileIP.pptBluetoothMobileIP.ppt
BluetoothMobileIP.ppt
 
BluetoothMobileIP.ppt
BluetoothMobileIP.pptBluetoothMobileIP.ppt
BluetoothMobileIP.ppt
 
BluetoothMobileIP.ppt
BluetoothMobileIP.pptBluetoothMobileIP.ppt
BluetoothMobileIP.ppt
 
WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
 
Bluetooth.ppt
Bluetooth.pptBluetooth.ppt
Bluetooth.ppt
 

Más de Pantech ProLabs India Pvt Ltd

Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system designPantech ProLabs India Pvt Ltd
 

Más de Pantech ProLabs India Pvt Ltd (20)

Registration process
Registration processRegistration process
Registration process
 
Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system design
 
Brain Computer Interface
Brain Computer InterfaceBrain Computer Interface
Brain Computer Interface
 
Electric Vehicle Design using Matlab
Electric Vehicle Design using MatlabElectric Vehicle Design using Matlab
Electric Vehicle Design using Matlab
 
Image processing application
Image processing applicationImage processing application
Image processing application
 
Internet of Things using Raspberry Pi
Internet of Things using Raspberry PiInternet of Things using Raspberry Pi
Internet of Things using Raspberry Pi
 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
 
Brain controlled robot
Brain controlled robotBrain controlled robot
Brain controlled robot
 
Brain Computer Interface-Webinar
Brain Computer Interface-WebinarBrain Computer Interface-Webinar
Brain Computer Interface-Webinar
 
Development of Deep Learning Architecture
Development of Deep Learning ArchitectureDevelopment of Deep Learning Architecture
Development of Deep Learning Architecture
 
Future of AI
Future of AIFuture of AI
Future of AI
 
Gate driver design and inductance fabrication
Gate driver design and inductance fabricationGate driver design and inductance fabrication
Gate driver design and inductance fabrication
 
Brainsense -Brain computer Interface
Brainsense -Brain computer InterfaceBrainsense -Brain computer Interface
Brainsense -Brain computer Interface
 
Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745
 
Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4
 
Waveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSPWaveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSP
 
Interfacing UART with tms320C6745
Interfacing UART with tms320C6745Interfacing UART with tms320C6745
Interfacing UART with tms320C6745
 
Switch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSPSwitch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSP
 
Led blinking using TMS320C6745
Led blinking using TMS320C6745Led blinking using TMS320C6745
Led blinking using TMS320C6745
 
Introduction to tms320c6745 dsp
Introduction to tms320c6745 dspIntroduction to tms320c6745 dsp
Introduction to tms320c6745 dsp
 

Último

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Último (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

CAN- controlled area network

  • 2. Introduction  Standard to establish Network among microcontrollers  Broadcast type of bus  No way to send a message to a specific node  High speed applications with short messages
  • 3. Comparing W ith Other Buses Bus Transfer Type Transfer Rate Max. Length (m) No. Of Nodes (b/s) RS232 Point to point 20k 15 1 RS485 Network 35k 1200 32 I2C Master-Slave 100k 1 128 SPI Master-Slave 110k 1 any CAN Network 1M 40 2032 USB Master-Slave 480M 5 126
  • 4. CAN in general………  Multi-master Network  2-wire  Half-duplex  High-speed (1Mbps)  Error Confinement and Error Detection  Distance up to 6 mS
  • 5. Histor y  Introduced by Robert Bosch in 1986  Developed for automotive applications  Standardized in 1993 as ISO11898-1  CAN Standards 1. CAN 2.0A 2. CAN 2.0B
  • 6. CAN Standar ds 1. CAN 2.0A Standard CAN (ISO 11898) 11-bit Identifier 1 Mbps 2. CAN 2.0B Extended CAN (ISO 11519) 29-bit Identifier 125 kbps
  • 7. Reasons for Using CAN  Robustness & Reliability  Low Connect Cost  Low Cost Components  Availability of CAN based Products
  • 8. Applications  In Industry To interconnect Machines, Process Control Units and Production Sub-system In Building Automation To manage Heating, Lighting, Air ventilation and doors  Parameter Setting and control of equipment in agriculture
  • 9. Layer ed Str uctur e Application Layer Message Filtering, Message and Object Status Handling Fault Confinement, Layer Error Detection, Signaling, Message Validation, Transfer Acknowledgement, Layer Arbitration, Framing, Transfer Rate Physical and Layer Timing Transmission Medium, Signal Level and CAN bit representation Network
  • 10. Networ k Components Cables  Physical Layer Connectors Transceivers Part A  CAN Controller Part B Passive Part B  Software
  • 11. Cables Twisted Pair Cables are used to get higher speeds. The Bit rate of the data transformation is high for short distance and low for long distance. Bus Length Bit Rate 40 Meters 1 Mbps 100 Meters 500 kbps 200 Meters 250 kbps 500 Meters 125 kbps 6 meters 10 kbps
  • 12. Connector s Pin Number Name Specification 1 - Reserved 2 CAN_L CAN_L bus line (dominant low) 3 CAN_GND CAN Ground 4 - Reserved 5 CAN SHLD Optional CAN Shield 6 GND Optional CAN Ground 7 CAN_H CAN_H bus line (dominant high) 8 - Reserved 9 CAN_V+ Optional Power ll Mini type r ma N o ed y Us Pin Number Name 1 Drain 2 V+ 3 V- 4 CAN_H 5 CAN_L
  • 13. CAN Contr oller s  Part A → 11-bit Identifier → Above 2000 devices in the Network  Part B Passive → 11-bit Identifier → Tolerated 29-bit Identifier, but ignored  Part B → 29-bit Identifier → Above 5 million devices in the Network
  • 14. Wor king Principle  Uses CSMA/CD+AMP (Arbitration on Message Priority).  Data messages transmitted from any node  Using identifier all nodes will check whether the message is intended for it or not  The identifier determines the priority of the message  Low bits are always dominant
  • 15. Frame Types  Data Frame  Remote Frame  Error Frame  Overload Frame
  • 16. Data Fr ame (Messa ge Frame) For 2.0A Start Of Frame: Logic 0 indicates the beginning of a message frame. Arbitration Field: 11-bit identifier. Determines the priority of the message. Control Field: 6-bits. 2-bits are reserved for future use. 4-bit Data Length Code (DLC) indicates the number of bytes in the data field.
  • 17. Data Field: 0 to 8 Bytes of data CRC Field: 15-bits Cyclic Redundancy Check Code and 1-bit delimiter Acknowledgement Field: 2-bits. Slot bit (1) overwritten by dominant bit from other nodes and delimiter bit (1). End Of Frame Field: 7-bits (1111111). Indicates the End of the data frame. Following the End Of Field is the Intermission field consisting of 3-bits (111) denotes the bus is recognized to be
  • 18. For 2.0B SRR (Substitute Remote Request) IDE (Identifier Extension) The max. no. of user in 2.0A is 2032 The max. no. of user in 2.0B is above 5 million
  • 19. Remote Fr ame The intended purpose of this frame is to ask for the transmission of the corresponding data frame. It is also used implement a type of request-response type of bus traffic management.
  • 20. Er ror Fr ame Consists of error flag (6-bits) and error delimiter (8-bits). Transmitted when a node detects a fault and will cause all other nodes to detect a fault
  • 21. Over load Frame This frame is mentioned just for completeness of the transaction.
  • 22. Er ror Detection and Confinement  Error is detected by the CAN Controller  Error Frame is transmitted  Message is cancelled at all nodes  Status of the CAN Controllers are updated  The message is retransmitted
  • 23. Difference Between CAN, LIN, I2C protocol I2C SPI CAN Protocol Synchronous interface used on PCB Synchronous interface used on PCB CAN is Asynchronous Interface & uses wires for long distance communications. Invented Philips Motorola Bosch Data rate I2C Supports Speed is : SPI Supports : 3Mbps to 10Mbps 10Kbps to 1 Mbps 100Kbps(Standard) :400Kbps(Fast) : 3.4Mbps(High Speed) master I2C is multi-master, Address SPI is Master Slave, With Slave MultiMate , Message based based Communication select(SS) based communications, Reliable Communication Pins required I2C needs 2 pins SPI needs 3+n pins (n is no. of CAN H and CAN L devices) supports I2C supports 127 devices limited by available Chip selects 2043 devices © 2008 Pantech Solutions™ | All rights reserved | www.panetchsolutions.net
  • 24. Dif ference Between CAN, LIN, I2C protocol I2C SPI CAN communication I2C is half duplex as there are only SPI is Full Duplex as between a Half duplex two lines(SCL and SDA) Master and a dedicated slave as selected by slave select signal; there are 4 lines (Spi_clk,Spi_datain,Spi_dataout and slave select).So, at any given time data can be sent and received by the master on two separate lines. whereas the I2c is generally used in whereas the SPI is generally used in CAN is generally used for device same PCB same PCB net (different device at different location) bus arbitration is possible in case not in case of spi. of i2c. noise sensitivity of i2c is high... But in case of spi.. Chance is very there is chance to corrupt the r/w less as whole word is transmitted. bit... then whole data is corrupted Single duplex Full duplex operation Half duplex © 2008 Pantech Solutions™ | All rights reserved | www.panetchsolutions.net
  • 25. Types Of Er r or s  Bit Error – The node always reads the message as it is sending. If it find a different value on the bus than it send, it detects the bit error.  Bit Stuffing Error – If a receiving node found more than five consecutive bits it detects the error.  Checksum Error  Frame Error – Invalid bit error  Acknowledgement Error
  • 26. Er ror Modes  Error Active – Active Error Flag is send and the data are transmitted and received usually  Error Passive – When Controller has frequent problems and Passive Error Flag is sent  Bus Off – When controller has serious problems . No messages can be transmitted or received
  • 27. Er ror Process Two Error Counters are allocated for controlling the error mode. The error counters are transmit error count and receive error count
  • 28. For more details  www.pantechsolutions.net  http://www.slideshare.net/pantechsolutions  http://www.scribd.net/pantechsolutions  http://www.youtube.net/pantechsolutions
  • 29. © 2008 Pantech Solutions™ | All rights reserved | www.panetchsolutions.net
  • 30. © 2008 Pantech Solutions™ | All rights reserved