Controller area network protocol
-
Upload
sneha-nalla -
Category
Engineering
-
view
27 -
download
6
Transcript of Controller area network protocol
![Page 1: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/1.jpg)
DESIGN AND IMPLIMENTATION OF CONTROLLER AREA NETWORK
PROTOCOL
![Page 2: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/2.jpg)
Contents• Introduction
• Aim
• History
• CAN Principle
• Block diagram
• Transmitter
• Receiver
• Buffer
• Software and hardware required
• Results
• Advantages
• Applications
• Conclusion
![Page 3: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/3.jpg)
Introduction• The Controller Area Network (CAN) is a serial communication protocol,
which efficiently supports distributed real time control with high level of
security.
• The CAN protocol is an ISO standard (ISO 11898), which includes a
physical layer and a data-link layer of the OSI model.
• Of these two layers, Data link layer is the only layer, which can be
designed and implemented using VLSI technology.
• It can transmit from 0 to 8 bytes of information.
• The maximum data rate is 1 Mbs
![Page 4: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/4.jpg)
Aim
• To understand and develop the architecture of Controller Area Network
which is used in data link layer of the OSI model and to simulate and
synthesize it at its functional level.
![Page 5: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/5.jpg)
History
• In February of 1986, Robeggrt Bosch GmbH introduced the serial bus
system Controller Area Network (CAN) at the Society of Automotive
Engineers (SAE) congress.
• It was introduced as ‘Automotive Serial Controller Area Network’.
• Later Uwe Kiencke, Siegfried Dais and Martin Litschel introduced the
multi-master network protocol.
![Page 6: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/6.jpg)
CAN Principle• Data messages transmitted from any node on a CAN bus do not contain
addresses of either the transmitting node, or of any intended receiving
node. Instead, an identifier that is unique throughout the network labels
the content of the message.
• All other nodes on the network receive the message and each performs
an acceptance test on the identifier to determine if the message, and thus
its content, is relevant to that particular node.
• If the message is relevant, it will be processed; otherwise it is ignored
![Page 7: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/7.jpg)
Block diagram
![Page 8: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/8.jpg)
Transmitter• It has 7 states they are:1. DLC state2. Packet state3. Shift state4. CRC state5. Bit stuffing state6. Status state7. Transmission state
![Page 9: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/9.jpg)
Transmitter state diagram
![Page 10: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/10.jpg)
Transmitter control unit Data Length Counter
Mixer
![Page 11: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/11.jpg)
serial
Parallel to serial CRC Generator Bit stuffing
Status register Data transmission
![Page 12: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/12.jpg)
Receiver
• It has seven states they are
1.shift state2.de-stuffing state3.status state4.serial shift state5.CRC state6.Error message state7.FIFO state
![Page 13: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/13.jpg)
Receiver state diagram
![Page 14: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/14.jpg)
Reciever control unit Serial to parallel
Destuffing
![Page 15: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/15.jpg)
Status registerParallel to serial
CRC Checker Error management logic
![Page 16: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/16.jpg)
Buffer
• Transmit buffer and Receive buffers acts as interface to the micro
controller and the respective blocks (transmitter and receiver
respectively).
• Transmit buffer consists of two types of data namely arbitration of the
channel and user information, it takes the input from the micro
controller.
• Receive buffer consists of the user information and its output will be
taken by micro controller.
![Page 17: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/17.jpg)
Software and Hardware required
• Software:
Xilinx ISE 14.7
• Hardware:
FPGA(SPARTAN-6)
![Page 18: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/18.jpg)
Simulation results
• Simulation output for CAN top module
![Page 19: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/19.jpg)
• Simulation output for Receiver
![Page 20: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/20.jpg)
• Simulation output for transmitter
![Page 21: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/21.jpg)
FPGA output• FPGA output for receiver
![Page 22: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/22.jpg)
• FPGA output for transmiter
![Page 23: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/23.jpg)
Advantages
• Low-cost, lightweight network
• Broadcast communication
• Priority
• Error capabilities
![Page 24: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/24.jpg)
Applications
• Can was first created for automotive use, so its most common
application is in-vehicle electronic networking.
• Railway applications such as streetcars, trams, undergrounds and long-
distance trains incorporate can.
• You can find can on different levels of the multiple networks.
• Can also has applications in aircraft with flight-state sensors, navigation
systems, and research pcs in the cockpit.
![Page 25: Controller area network protocol](https://reader035.fdocuments.us/reader035/viewer/2022062523/58f9ad11760da3da068b9492/html5/thumbnails/25.jpg)
Conclusion
• All architectures are developed using Behavioral modeling in VHDL and
the functionality check for each block is performed successfully.
• The entire module in the architecture has been synthesized and
implemented using XILINX ISE 14.7 software.
• The required bitmap file used for JTAG programming of the device is
obtained successfully.