Implementation of a CAN Bus based Measurement System on an FPGA Development Kit

Implementation of a CAN Bus based Measurement System on an FPGA Development Kit

Author: Yu Zhu

Publisher: diplom.de

Published: 2010-07-05

Total Pages: 95

ISBN-13: 3836648695

DOWNLOAD EBOOK

Inhaltsangabe:Abstract: The Controller Area Network (CAN) is a serial field bus protocol which was originally used in road vehicles. Most people still use Microcontrollers (MCU) to control the CAN bus. The development of Field-programmable Gate Array (FPGA) is very advanced, and compared to the MCU the FPGA has many advantages. For this reason, this thesis uses an Altera FPGA development kit to design a CAN bus based measurement system. During the work, four Direct Digital Synthesizers (DDS) were simulated for four wave channels in the FPGA. All signals of the channels were transmitted from the FPGA to a CAN bus. Between the CAN bus and FPGA an Atmel CAN MCU, which contains both serial and CAN ports, was used as the third party. Whereby the data output from the FPGA were first transmitted to the serial port of the CAN MCU and then shifted to the CAN port of the CAN MCU. The CAN bus device (NI CAN USB-8473) which was used in this thesis, has a CAN port to connect to the CAN port of the CAN MCU, and a USB 2.0 port to connect to a PC. Finally, the data of the CAN bus was monitored on the PC with the LabVIEW platform. With this platform the data could also be transmitted to the CAN bus and then to the FPGA to change the tuning word of DDS. In order to achieve the speed limit of the complete measurement system, the communication rates of FPGA, CAN bus and CAN MCU were programmed to be the maximum. Inhaltsverzeichnis:Table of Contents: 1Introduction4 1.1Background4 1.2Objective4 1.3Outline6 2CAN Introduction7 2.1Background7 2.2Architecture Layers8 2.2.1Physical Layer8 2.2.2Data Link Layer10 2.2.3Higher Layer10 2.3Frame Structure11 2.3.1Data Frame11 2.3.2Remote Frame14 2.3.3Error Frame15 2.3.4Overload Frame16 2.3.5Interframe Space16 2.4Frame Coding17 2.5Error Detecting and Handling18 2.6Fault Confinement19 3CAN and MCU Serial Port Effective Data Study22 3.1CAN Effective Data Study22 3.2MCU Serial Port Study25 3.2.1General 8051 MCU25 3.2.2Using Timer 227 3.2.3X2 Mode28 3.3CAN vs. MCU Serial Port29 4Experiment Components and Setup32 4.1Stratix III FPGA Development Kit32 4.2CAN MCU AT89C51CC0335 4.35-3.3 V Voltage Level Transistor38 4.4NI CAN USB-847340 4.5PC with NI CAN Driver42 4.6Setup42 5Software Development43 5.1FPGA with Quartus II43 5.1.1DDS Design43 5.1.2PLL Application45 5.1.3UART Reception49 5.1.4UART Transmission51 5.2MCU with Keil C5153 5.2.1Serial Port Programming53 5.2.2CAN [...]


CAN and FPGA Communication Engineering: Implementation of a CAN Bus based Measurement System on an FPGA Development Kit

CAN and FPGA Communication Engineering: Implementation of a CAN Bus based Measurement System on an FPGA Development Kit

Author: Yu Zhu

Publisher: Diplomica Verlag

Published: 2010-11

Total Pages: 132

ISBN-13: 3842816049

DOWNLOAD EBOOK

The Controller Area Network (CAN), invented by Bosch in 1983, is a serial field bus protocol which was originally used in road vehicles and now is widely applied in other industrial fields. Since its birth automotive electronic engineers have been use Microcontrollers (MCU) to control the CAN bus. Today, as the Field-programmable Gate Array (FPGA) has become very advance, this book introduces a new method which uses an FPGA and a MCU jointly instead of a single MCU is to design a CAN bus measurement system. Furthermore the designed system should be able to work at the fastest possible speed. Chapter 1 of this book is the introduction which includes the background, objective and outline of this book. Chapter 2 describes the CAN protocol development history and fundamentals such as application field, architecture layers, different frame structures, frame coding, error handling and fault confinement which are extracted from the CAN Specification 2.0 and ISO 11898. It helps reader to understand the CAN. Chapter 3 studies the effective data transmission rate and ratio of the CAN bus and the MCU serial UART port. Then it compares their values and draws a conclusion. This chapter is the most important theory research of this book. Chapter 4 describes the devices used in the experiments of the book. There are five major devices applied: an Altera FPGA, a 5-3.3 V level translator, an Atmel CAN MCU, a NI CAN USB and a PC with LabVIEW environment. Chapter 5 demonstrates the software development procedure for the whole system including FPGA with Quartus II, MCU with Keil C51, and NI CAN BUS with LabVIEW. Chapter 6 describes the testing experiments of the measurement system. It analyses a common error ignored during the MCU programming and shows how to solve it. After the reprogramming, three tests and their results are illustrated. Chapter 7 presents the final conclusion of this book which is that the measurement system designed here maximally utilizes the CAN effective data transmission rate and ratio and could be applied in control systems of electric vehicles.


Engineering of Computer-Based Systems

Engineering of Computer-Based Systems

Author: Jan Kofroň

Publisher: Springer Nature

Published: 2023-11-28

Total Pages: 312

ISBN-13: 3031492528

DOWNLOAD EBOOK

This book constitutes the refereed proceedings of the 8th International Conference on Engineering of Computer-Based Systems, ECBS 2023, which was held in Västerås, Sweden, in October 2023. The 11 full papers included in this book were carefully reviewed and selected from 26 submissions and present software, hardware, and communication perspectives of systems engineering through its many facets. The special theme of this year is ”Engineering for Responsible AI“.


Understanding and Using the Controller Area Network Communication Protocol

Understanding and Using the Controller Area Network Communication Protocol

Author: Marco Di Natale

Publisher: Springer Science & Business Media

Published: 2012-01-19

Total Pages: 240

ISBN-13: 1461403138

DOWNLOAD EBOOK

This book to offers a hands-on guide to designing, analyzing and debugging a communication infrastructure based on the Controller Area Network (CAN) bus. Although the CAN bus standard is well established and currently used in most automotive systems, as well as avionics, medical systems and other devices, its features are not fully understood by most developers, who tend to misuse the network. This results in lost opportunities for better efficiency and performance. These authors offer a comprehensive range of architectural solutions and domains of analysis. It also provides formal models and analytical results, with thorough discussion of their applicability, so that it serves as an invaluable reference for researchers and students, as well as practicing engineers.


CAN System Engineering

CAN System Engineering

Author: Wolfhard Lawrenz

Publisher: Springer Science & Business Media

Published: 2013-12-05

Total Pages: 375

ISBN-13: 1447156137

DOWNLOAD EBOOK

This book addresses the various challenges and open questions relating to CAN communication networks. Opening with a short introduction into the fundamentals of CAN, the book then examines the problems and solutions for the physical layout of networks, including EMC issues and topology layout. Additionally, a discussion of quality issues with a particular focus on test techniques is presented. Each chapter features a collection of illuminating insights and detailed technical information supplied by a selection of internationally-regarded experts from industry and academia. Features: presents thorough coverage of architectures, implementations and application of CAN transceiver, data link layer and so-called higher layer software; explains CAN EMC characteristics and countermeasures, as well as how to design CAN networks; demonstrates how to practically apply and test CAN systems; includes examples of real networks from diverse applications in automotive engineering, avionics, and home heating technology.


Software-Hardware Integration in Automotive Product Development

Software-Hardware Integration in Automotive Product Development

Author: John Blyler

Publisher: SAE International

Published: 2013-11-07

Total Pages: 121

ISBN-13: 0768080525

DOWNLOAD EBOOK

Software-Hardware Integration in Automotive Product Development brings together a must-read set of technical papers on one the most talked-about subjects among industry experts The carefully selected content of this book demonstrates how leading companies, universities, and organizations have developed methodologies, tools, and technologies to integrate, verify, and validate hardware and software systems. The automotive industry is no different, with the future of its product development lying in the timely integration of these chiefly electronic and mechanical systems. The integration activities cross both product type and engineering discipline boundaries to include chip-, embedded board-, and network/vehicle-level systems. Integration, verification, and validation of each of these three domains are examined in depth, attesting to the difficulties of this phase of the automotive hardware and software system life cycle. The current state of the art is to integrate, verify, validate, and test automotive hardware and software with a complement of physical hardware and virtual software prototyping tools. The growth of sophisticated software tools, sometimes combined with hardware-in-the-loop devices, has allowed the automotive industry to meet shrinking time-to-market, decreasing costs, and increasing safety demands. It is also why most of the papers in this book focus on virtual systems, prototypes, and models to emulate and simulate both hardware and software. Further, such tools and techniques are the way that hardware and software systems can be “co-verified” and tested in a concurrent fashion. The goal of this compilation of expert articles is to reveal the similarities and differences between the integration, verification, and validation (IVV) of hardware and software at the chip, board, and network levels. This comparative study will reveal the common IVV thread among the different, but ultimately related, implementations of hardware and software systems. In so doing, it supports the larger systems engineering approach for the vertically integrated automobile—namely, that of model-driven development.


Network World

Network World

Author:

Publisher:

Published: 2003-11-24

Total Pages: 52

ISBN-13:

DOWNLOAD EBOOK

For more than 20 years, Network World has been the premier provider of information, intelligence and insight for network and IT executives responsible for the digital nervous systems of large organizations. Readers are responsible for designing, implementing and managing the voice, data and video systems their companies use to support everything from business critical applications to employee collaboration and electronic commerce.


Computerworld

Computerworld

Author:

Publisher:

Published: 2003-11-24

Total Pages: 48

ISBN-13:

DOWNLOAD EBOOK

For more than 40 years, Computerworld has been the leading source of technology news and information for IT influencers worldwide. Computerworld's award-winning Web site (Computerworld.com), twice-monthly publication, focused conference series and custom research form the hub of the world's largest global IT media network.