Abstract - in This Paper, A Novel Hardware Architecture of

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

2017 IEEE International Conference on Consumer Electronics (ICCE)

A Novel Hardware Architecture of CAN Applications

H.Y. Li1,2*, J.J. Tang1, C.T. Yu1, W.W. Hu1, W.J. Chang1, D.H. Lee1 and Y.C. Chung3
1
Dept of Electronics Eng., Southern Taiwan University of Science and Technology, Tainan, Taiwan
2
Dept of Computer Science, Shanghai Jian Qiao University, Shanghai, China
3
Myson Century, Inc, Hsinchu, Taiwan
*
li.hongyuan.ee@gmail.com

Abstract-- In this paper, a novel hardware architecture of saves wiring and solves the drawback of the first solution;
Controller Area Network (CAN) applications is proposed. Taking however, the on-chip controller and the programming chip are
advantage of a highly integrated chip, which functions as a CAN bound, which leaves limited flexibility in the selection of the
controller as well as a CAN transceiver, the proposed
programming chip for a CAN application.
architecture reduces the number of necessary external
components, supports popular serial buses and thus facilitates Realizing the dilemma, some chip manufacturers produce
application development. The architecture is applied in a CAN to new chips which actually combine the functions of a CAN
Bluetooth bridge, whose design is described in this article. It is controller and a CAN transceiver, such as MCP25625 from
demonstrated that the proposed architecture is stable and Microchip and HI-3110 family from Holt. However, careful
practical. scrutiny reveals some problems. First, these chips require an
external clock source, which usually is an external crystal.
I. INTRODUCTION Layout and routing of the crystal increase the costs of design.
CAN bus is a popular serial bus in automotive field because Another problem is incurred by the limitation of the serial
of its simplicity and flexibility. The communication on the bus communication protocols these chips support. Serial
is based on broadcasting, and an Electronic Control Unit Peripheral Interface (SPI), which is an efficient serial bus, is
(ECU) connected to the two wires of the bus is able to supported by these CAN chip. Nevertheless, one major
communicate with the other nodes on the same bus. In downside of SPI is that compared with other serial buses, like
addition, the bus dramatically lessens the usage of wires once Inter-Integrated Circuit (I2C), adding slave devices on the bus
used to connect the vehicular components that communicate takes SPI more wiring, because chip selection of the device
with each other, thus reducing the weight of vehicles and requires a dedicated pin. Hence, some programmable devices
speeding up the assembly. with a bounded number of pins lack hardware support for SPI,
The popularity of CAN bus has led to the emergence of and prefer I2C, whose wiring is simple and flexible.
varieties of applications, most of which are vehicle-related. A In this paper is depicted a novel hardware architecture of
typical hardware architecture of a CAN application usually CAN applications. The architecture is applied in an
involves two parts, one of which is a CAN controller, while implementation of a CAN to Bluetooth bridge, which is also
the other is a CAN transceiver. The controller is responsible described.
for the implementation of CAN bus protocols, while the
transceiver is in charge of interfacing with the physical layer. II. A NOVEL HARDWARE ARCHITECTURE
Actually, a CAN controller is usually in the form of either a
dedicated chip or an on-chip peripheral device equipped by a A. Introduction of CS8972
specific programmable device, such as a microcontroller, Collaborating with our lab, Myson Century Incorporation
System-on-Chip (SoC) and Digital Signal Processor (DSP), designs CS8972, which is a CAN transceiver with a built-in
whereas, a CAN transceiver is usually a dedicated chip. Hence, CAN controller. Therefore the chip provides a complete
in sum, there are two typical hardware solutions. One is a solution to a CAN application.
combination of two dedicated chips[1]. The other is an on- The built-in CAN controller complies with CAN protocol
chip CAN controller connected with a dedicated CAN version 2.0B and has features, such as 1024 Bytes receive
transceiver chip[2][3]. The first solution is quite flexible since FIFO, 12 full acceptance filters and 8 full filter masks. The
the circuit designer can choose the controller chip and the integrated CAN transceiver features built-in oscillator up to
transceiver chip separately, and the programming chip is not 16MHz, high speed SPI interface up to 3Mb/s, slave I2C mode
restrained to any specific one, whereas it suffers from the up to 2Mb/s, to just name a few.
increase of complexity of wiring, vulnerability of EM
B. The Proposed Architecture
interfering and costs of design[4]. In contrast, the second
solution makes use of the on-chip CAN controller, which Compared to the existing CAN chip solution with the
integration of a controller and a transceiver, the proposed
architecture requires fewer external components and provides
This work is partially supported by the Ministry of Science and
Technology (MoST), Taiwan, under grants, MOST-105-2632-E-218-002, support of both SPI and I2C, which are widely used. Although
MOST-105-2622-8-218-003-TE2. *Corresponding Author: Hong-Yuan Li the built-in oscillator suffers from the variation of temperature,

978-1-5090-5544-9/17/$31.00 ©2017 IEEE


2017 IEEE International Conference on Consumer Electronics (ICCE)

it is still practical when only low baud rate of CAN bus is proposed architecture as its hardware CAN solution.
required. Because less wiring and fewer external components The picture of the bridge is shown in Fig 3. The chip in the
are required, the proposed solution is more handy and cost- upper left corner is CS8972, and it is small, thus saving the
cutting. In addition, support of SPI and I2C makes the area of PCB. Notice, this design requires a tough requirement
architecture more flexible, since I2C is particularly favored if a of the accuracy of clock. Hence, we adopt an external crystal
system based on a programmable device with a restrained as the clock source.
number of pins is implemented.

III. A CAN TO BLUETOOTH BRIDGE

A. Introduction
In this section, a CAN to Bluetooth bridge is described. The
context diagram of the bridge is depicted in Fig. 1. The bridge
automatically conveys the data from specific nodes on a CAN
bus to a paired Bluetooth device. On the other hand, when the
bridge receives a request from the paired Bluetooth device, it
analyzes the request, extracts the data and sends it to those
specific nodes on the bus.
Fig. 3. The CAN to Bluetooth Bridge
In our application, the bridge is connected with an OBD-II
connector in a car and acts as a diagnostic reader. The request
of diagnostic information is sent from a paired Bluetooth
device, in this case, an Android smartphone, and the OBD-II
reply is forwarded by the bridge to the smartphone. It is
Fig. 1. Context diagram of the bridge demonstrated that the bridge is stable and workable.
B. Architecture
IV. CONCLUSION
The bridge is composed of three functional parts. The Level
1 Data Flow Diagram (DFD) is shown in Fig. 2 with the In this paper, a novel hardware architecture of CAN-related
indication of only data flows. The central part is an 8-bit 8051- applications is proposed. Compared with existing solutions,
compatible microcontroller, which orchestrates the bridge. the proposed architecture requires fewer external components,
The left part is the proposed CAN architecture, which is thus saving the costs of design and production. In addition,
connected with the microcontroller through SPI. It is support of both SPI and I2C makes the architecture particular
responsible for forwarding the data from microcontroller to appropriate to the application based on a programmable device
CAN bus and doing the same job in the other direction. The that owns limited number of available pins.
right part is a Universal Asynchronous Receiver/Transmitter A CAN to Bluetooth bridge, where the proposed
(UART) to Bluetooth module, which conveys the frames from architecture is applied, is described in this paper. The bridge
UART to Bluetooth and delivers whatever it has received from forwards the data from specific CAN nodes to a paired
Bluetooth to the microcontroller through UART. Bluetooth device. It is also capable of transferring the data
from Bluetooth to CAN bus. The bridge works properly and
demonstrates that the proposed architecture is practical.

REFERENCES
[1] Ping Ran, Baoqiang Wang, and Wei Wang, “The design of
communication convertor based on CAN bus,” in 2008 IEEE
International Conference on Industrial Technology, 2008, pp. 1–5.
[2] G. Feng, W. Zhang, S. Jia, and H. Wu, “CAN Bus Application in
Automotive Network Control,” in 2010 International Conference on
Measuring Technology and Mechatronics Automation, 2010, pp. 779–
782.
[3] J. Diaz, E. Rodriguez, L. Hurtado, H. Cacique, N. Vazquez, and A.
Ramirez, “CAN bus embedded system for lighting network
applications,” in 2008 51st Midwest Symposium on Circuits and
Systems, 2008, pp. 531–534.
Fig. 2. The Level 1 DFD of the bridge [4] M. Pont, Patterns for Time-triggered Embedded Systems: Building
Reliable Applications with the 8051 Family of Microcontrollers. ACM
As can be seen from fig. 2, the application of the proposed Press/Addison-Wesley Publishing Co., 2001.
CAN architecture is flexible. It is actually microcontroller
independent, which means any programmable device with a
serial bus interface such as SPI and I2C can implement the

978-1-5090-5544-9/17/$31.00 ©2017 IEEE

You might also like