SlideShare a Scribd company logo
CAN BUS 
(Controller Area Network) 
Presented by: AnoopMathew 
For: ECE
Contents 
• Overview 
• Data Information 
• Frame Format 
• Protocol 
• Error Detection 
• Implementations 
• Basic CAN 
• Full CAN 
• FIFO 
• Enhanced Full CAN 
• Manufacturers 
• Diagrams
Overview 
• CAN (Controller Area Network) is a serial bus system used to 
communicate between several embedded 8-bit and 16-bit 
microcontrollers. 
• It was originally designed for use in the automotive industry 
but is used today in many other systems (e.g. home appliances 
and industrial machines).
Overview (con’t) 
• Highest Baud Rate is 1Mbit. 
• CAN uses a message oriented transmission protocol. 
• There are no defined addresses, just defined messages.
Data Information – Frame Format 
• SOF – Start of Frame 
• Identifier – Tells the content of message and priority 
• RTR – Remote Transmission Request 
• IDE – Identifier extension (distinguishes between CAN standard,11 bit 
identifier, and CAN extended, 29 bit identifier.) 
• DLC – Data Length Code 
• Data – holds up to 8 bytes of data 
• CRC – “Cyclic Redundant Check” sum 
• ACK – Acknowledge 
• EOF – End of Frame 
• IFS – Intermission Frame Space. Minimum number of bits separating 
consecutive messages.
Data Information - Protocol 
• Messages are 
distinguished by message 
identifiers. 
• The identifier is unique to 
the network and defines 
the content & priority of 
the message.
Data Information – Protocol (con’t) 
• When several messages access 
the bus at the same time, the 
one with the higher priority 
“wins”. 
• The identifier with the lowest 
binary number has the highest 
priority. 
• The priority are specified 
during system design and 
cannot be changed 
dynamically.
Data Information – Protocol (con’t) 
• Access conflicts on the bus 
are resolved by a “wired 
and” mechanism, where the 
dominate state overwrites 
the recessive state. 
• All “losers” automatically 
become receivers and they 
won’t try to send another 
message until the bus 
becomes available again.
Data Information – Error detection 
• If one or more errors are detected, the transmission is 
aborted. This prevents all other stations or nodes from 
accepting the message. 
• Re-transmission is automatic. If errors continue, then 
the station or node may switch itself off to prevent the 
bus from being tied up. 
• Error detection is done on two levels: 
• Message level 
• Bit level
Data Information – Error detection 
(con’t) 
• Message Level 
• CRC = Cyclic Redundant Check sum 
• Frame Check = compares message to fixed format and frame 
size 
• ACK errors = if transmitter does not receive an ACK signal 
from the receivers 
• Bit level 
• Monitoring = The transmitter monitors the bus signal as it 
sends the message and compares the bit sent to the bit 
received. 
• Bit Stuffing = After five consecutive equal bits, the transmitter 
inserts a stuff bit with a compliment value into the bit stream. 
The receivers remove this stuff bit.
Implementations 
• Basic CAN 
• Limited number of receive 
buffers and filters 
• Can get bogged down 
quickly with multiple 
consecutive messages.
Implementation (con’t) 
• Full CAN 
• Has several message 
objects (usually 15) 
• Can loose data if message 
objects are setup for 
multiple filters 
• Can still get bogged down 
if too many messages are 
sent consecutively
Implementation (con’t) 
• FIFO 
• “First In First Out” receive 
buffer 
• Fixes problem with 
multiple consecutive 
messages 
• Cannot allow a high 
priority message to move 
to front. It has to wait its 
turn
Implementation (con’t) 
• Enhanced Full Can 
• Dedicated FIFO for each 
individual message object 
• Very complicated to use 
• Less common
Manufacturers 
• Over 20 different chip manufacturers produce 
microcontrollers with on-chip CAN interfaces. 
• Some more notable ones are: 
• Cygnal 
• Intel 
• Motorola 
• NEC 
• Phillips 
• Toshiba
Cygnal C8051F040/042 Block Diagram
CAN Controller Diagram
Useful Links 
• Manufacturer and Product List 
• http://www.can-cia.org/products/can/chips/ 
• CAN Information 
• http://www.canbus.us/ 
• http://www.can-cia.org/can/
Summary 
• CAN (Controller Area Network) is a serial bus system used to 
communicate between several embedded 8-bit and 16-bit 
microcontrollers 
• Data Information 
• Frame Format 
• Protocol – message oriented 
• Error Detection 
• Message level (CRC, frame check, ACK errors) 
• Bit level (monitoring, bit stuffing) 
• Implementations 
• Basic CAN 
• Full CAN 
• FIFO 
• Enhanced Full CAN 
• Over 20 different chip manufacturers produce microcontrollers with on-chip 
CAN interfaces including Cygnal, Intel, and Motorala.

More Related Content

What's hot

CAN- controlled area network
CAN- controlled area networkCAN- controlled area network
CAN- controlled area network
Pantech ProLabs India Pvt Ltd
 
Canbus
CanbusCanbus
Can Protocol For Automobiles
Can Protocol For AutomobilesCan Protocol For Automobiles
Can Protocol For Automobiles
Sofcon India Pvt Ltd.
 
Controller Area Network(CAN)
Controller Area Network(CAN)Controller Area Network(CAN)
Controller Area Network(CAN)
Ashutosh Bhardwaj
 
Controller Area Network (Basic Level Presentation)
Controller Area Network (Basic Level Presentation)Controller Area Network (Basic Level Presentation)
Controller Area Network (Basic Level Presentation)
Vikas Kumar
 
Can bus m.n.r
Can bus m.n.rCan bus m.n.r
Can bus m.n.r
MNR85
 
Can Bus communication Protocol
Can Bus communication ProtocolCan Bus communication Protocol
Can Bus communication Protocol
Pedro Campana Cueto
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)
nassim unused
 
Can bus
Can busCan bus
Can bus
Rucha Pupala
 
LIN protocol description
LIN protocol descriptionLIN protocol description
LIN protocol description
sonu kumar suman
 
Controller area network -ppt
Controller area network -pptController area network -ppt
Controller area network -pptvelichetiphani
 
Controller area network
Controller area networkController area network
Controller area network
Divi1597
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect Network
Jabez Winston
 
A SEMINAR REPORT ON CAN BUS PROTOCOL
A SEMINAR REPORT ON CAN BUS PROTOCOLA SEMINAR REPORT ON CAN BUS PROTOCOL
A SEMINAR REPORT ON CAN BUS PROTOCOL
Abhinaw Tiwari
 
Controller area network protocol
Controller area network protocolController area network protocol
Controller area network protocol
Sneha Nalla
 
What is AUTOSAR Communiation Stack
What is AUTOSAR Communiation StackWhat is AUTOSAR Communiation Stack
What is AUTOSAR Communiation Stack
Embitel Technologies (I) PVT LTD
 
Most Media Oriented System Transport
Most Media Oriented System TransportMost Media Oriented System Transport
Most Media Oriented System Transport
Pruthvi Monarch
 
Automotive bus technologies
Automotive bus technologiesAutomotive bus technologies
Automotive bus technologies
Radwa Tarek
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
Yuga Aravind Kumar
 
CAN BUS.ppt
CAN BUS.pptCAN BUS.ppt

What's hot (20)

CAN- controlled area network
CAN- controlled area networkCAN- controlled area network
CAN- controlled area network
 
Canbus
CanbusCanbus
Canbus
 
Can Protocol For Automobiles
Can Protocol For AutomobilesCan Protocol For Automobiles
Can Protocol For Automobiles
 
Controller Area Network(CAN)
Controller Area Network(CAN)Controller Area Network(CAN)
Controller Area Network(CAN)
 
Controller Area Network (Basic Level Presentation)
Controller Area Network (Basic Level Presentation)Controller Area Network (Basic Level Presentation)
Controller Area Network (Basic Level Presentation)
 
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
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)
 
Can bus
Can busCan bus
Can bus
 
LIN protocol description
LIN protocol descriptionLIN protocol description
LIN protocol description
 
Controller area network -ppt
Controller area network -pptController area network -ppt
Controller area network -ppt
 
Controller area network
Controller area networkController area network
Controller area network
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect Network
 
A SEMINAR REPORT ON CAN BUS PROTOCOL
A SEMINAR REPORT ON CAN BUS PROTOCOLA SEMINAR REPORT ON CAN BUS PROTOCOL
A SEMINAR REPORT ON CAN BUS PROTOCOL
 
Controller area network protocol
Controller area network protocolController area network protocol
Controller area network protocol
 
What is AUTOSAR Communiation Stack
What is AUTOSAR Communiation StackWhat is AUTOSAR Communiation Stack
What is AUTOSAR Communiation Stack
 
Most Media Oriented System Transport
Most Media Oriented System TransportMost Media Oriented System Transport
Most Media Oriented System Transport
 
Automotive bus technologies
Automotive bus technologiesAutomotive bus technologies
Automotive bus technologies
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
 
CAN BUS.ppt
CAN BUS.pptCAN BUS.ppt
CAN BUS.ppt
 

Similar to CAN Bus

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
Ankur 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 m3
Ankur Rastogi
 
Can Protocol Based Health Monitoring
Can Protocol Based Health MonitoringCan Protocol Based Health Monitoring
Can Protocol Based Health Monitoring
pitchaimuthu
 
can bus theory solution
can bus theory solutioncan bus theory solution
can bus theory solution
Md. Mashiur Rahman
 
Introduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performanceIntroduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performance
KenTindell
 
Unit 2 ppt 3.ppt
Unit 2 ppt 3.pptUnit 2 ppt 3.ppt
Unit 2 ppt 3.ppt
Selvakanmani S
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
Emertxe Information Technologies Pvt Ltd
 
Computer Network
Computer NetworkComputer Network
Computer Network
Rubaya Mim
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
Dharmendra212860
 
Maximizing High-Performance Applications with CAN Bus
Maximizing High-Performance Applications with CAN BusMaximizing High-Performance Applications with CAN Bus
Maximizing High-Performance Applications with CAN Bus
ICS
 
Maximizing High Performance Applications with CAN Bus
Maximizing High Performance Applications with CAN BusMaximizing High Performance Applications with CAN Bus
Maximizing High Performance Applications with CAN Bus
Janel Heilbrunn
 
Osi model
Osi model Osi model
Osi model maha tce
 
Frame relay
Frame relayFrame relay
Microcontroller.pptx
Microcontroller.pptxMicrocontroller.pptx
Microcontroller.pptx
Saba651353
 
CONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxCONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptx
VairaPrakash2
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
Yogesh Mashalkar
 
Computer networks unit ii
Computer networks    unit iiComputer networks    unit ii
Computer networks unit ii
JAIGANESH SEKAR
 
Unit I Testing
Unit I TestingUnit I Testing
Unit I Testing
Dr. Pankaj Zope
 

Similar to CAN Bus (20)

Canbus
CanbusCanbus
Canbus
 
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
 
CAN.ppt
CAN.pptCAN.ppt
CAN.ppt
 
Can Protocol Based Health Monitoring
Can Protocol Based Health MonitoringCan Protocol Based Health Monitoring
Can Protocol Based Health Monitoring
 
can bus theory solution
can bus theory solutioncan bus theory solution
can bus theory solution
 
Introduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performanceIntroduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performance
 
Unit 2 ppt 3.ppt
Unit 2 ppt 3.pptUnit 2 ppt 3.ppt
Unit 2 ppt 3.ppt
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
Computer Network
Computer NetworkComputer Network
Computer Network
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
 
Maximizing High-Performance Applications with CAN Bus
Maximizing High-Performance Applications with CAN BusMaximizing High-Performance Applications with CAN Bus
Maximizing High-Performance Applications with CAN Bus
 
Maximizing High Performance Applications with CAN Bus
Maximizing High Performance Applications with CAN BusMaximizing High Performance Applications with CAN Bus
Maximizing High Performance Applications with CAN Bus
 
Osi model
Osi model Osi model
Osi model
 
Frame relay
Frame relayFrame relay
Frame relay
 
Microcontroller.pptx
Microcontroller.pptxMicrocontroller.pptx
Microcontroller.pptx
 
CONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxCONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptx
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
 
Computer networks unit ii
Computer networks    unit iiComputer networks    unit ii
Computer networks unit ii
 
Unit I Testing
Unit I TestingUnit I Testing
Unit I Testing
 

Recently uploaded

Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
ambekarshweta25
 

Recently uploaded (20)

Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
 

CAN Bus

  • 1. CAN BUS (Controller Area Network) Presented by: AnoopMathew For: ECE
  • 2. Contents • Overview • Data Information • Frame Format • Protocol • Error Detection • Implementations • Basic CAN • Full CAN • FIFO • Enhanced Full CAN • Manufacturers • Diagrams
  • 3. Overview • CAN (Controller Area Network) is a serial bus system used to communicate between several embedded 8-bit and 16-bit microcontrollers. • It was originally designed for use in the automotive industry but is used today in many other systems (e.g. home appliances and industrial machines).
  • 4. Overview (con’t) • Highest Baud Rate is 1Mbit. • CAN uses a message oriented transmission protocol. • There are no defined addresses, just defined messages.
  • 5. Data Information – Frame Format • SOF – Start of Frame • Identifier – Tells the content of message and priority • RTR – Remote Transmission Request • IDE – Identifier extension (distinguishes between CAN standard,11 bit identifier, and CAN extended, 29 bit identifier.) • DLC – Data Length Code • Data – holds up to 8 bytes of data • CRC – “Cyclic Redundant Check” sum • ACK – Acknowledge • EOF – End of Frame • IFS – Intermission Frame Space. Minimum number of bits separating consecutive messages.
  • 6. Data Information - Protocol • Messages are distinguished by message identifiers. • The identifier is unique to the network and defines the content & priority of the message.
  • 7. Data Information – Protocol (con’t) • When several messages access the bus at the same time, the one with the higher priority “wins”. • The identifier with the lowest binary number has the highest priority. • The priority are specified during system design and cannot be changed dynamically.
  • 8. Data Information – Protocol (con’t) • Access conflicts on the bus are resolved by a “wired and” mechanism, where the dominate state overwrites the recessive state. • All “losers” automatically become receivers and they won’t try to send another message until the bus becomes available again.
  • 9. Data Information – Error detection • If one or more errors are detected, the transmission is aborted. This prevents all other stations or nodes from accepting the message. • Re-transmission is automatic. If errors continue, then the station or node may switch itself off to prevent the bus from being tied up. • Error detection is done on two levels: • Message level • Bit level
  • 10. Data Information – Error detection (con’t) • Message Level • CRC = Cyclic Redundant Check sum • Frame Check = compares message to fixed format and frame size • ACK errors = if transmitter does not receive an ACK signal from the receivers • Bit level • Monitoring = The transmitter monitors the bus signal as it sends the message and compares the bit sent to the bit received. • Bit Stuffing = After five consecutive equal bits, the transmitter inserts a stuff bit with a compliment value into the bit stream. The receivers remove this stuff bit.
  • 11. Implementations • Basic CAN • Limited number of receive buffers and filters • Can get bogged down quickly with multiple consecutive messages.
  • 12. Implementation (con’t) • Full CAN • Has several message objects (usually 15) • Can loose data if message objects are setup for multiple filters • Can still get bogged down if too many messages are sent consecutively
  • 13. Implementation (con’t) • FIFO • “First In First Out” receive buffer • Fixes problem with multiple consecutive messages • Cannot allow a high priority message to move to front. It has to wait its turn
  • 14. Implementation (con’t) • Enhanced Full Can • Dedicated FIFO for each individual message object • Very complicated to use • Less common
  • 15. Manufacturers • Over 20 different chip manufacturers produce microcontrollers with on-chip CAN interfaces. • Some more notable ones are: • Cygnal • Intel • Motorola • NEC • Phillips • Toshiba
  • 18. Useful Links • Manufacturer and Product List • http://www.can-cia.org/products/can/chips/ • CAN Information • http://www.canbus.us/ • http://www.can-cia.org/can/
  • 19. Summary • CAN (Controller Area Network) is a serial bus system used to communicate between several embedded 8-bit and 16-bit microcontrollers • Data Information • Frame Format • Protocol – message oriented • Error Detection • Message level (CRC, frame check, ACK errors) • Bit level (monitoring, bit stuffing) • Implementations • Basic CAN • Full CAN • FIFO • Enhanced Full CAN • Over 20 different chip manufacturers produce microcontrollers with on-chip CAN interfaces including Cygnal, Intel, and Motorala.