HT32F49xxx MCU CAN Quick Start Guide
D/N: AN0658EN
Introduction
The CAN (Controller Area Network) is a distributed serial communication protocol which
implements real-time and reliable data communication between nodes, compliant with the CAN 2.0
specification (2.0A and 2.0B). This application note introduces the CAN protocol, HT32F49xxx
MCU CAN application flow and CAN application examples.
CAN Overview
The Controller Area Network (CAN) is designed to efficiently process a large amount of messages
with minimum CPU usage. It is a serial bus protocol created in 1986 by the German company
BOSCH and ISO standardized with ISO 11898 and ISO 11519, which gain popularity in the
automotive network domain in Europe. It has been recognized for high performance and reliability
and widely used in industrial automation, ships, medical facilities and industrial equipment, etc.
CAN Protocol Features
Multi-master control
When the bus is idle, all nodes can start sending messages. When multiple nodes start sending
at the same time, the bus proceeds arbitration according to the identifier (ID), and the one with
the lowest ID (highest priority) wins and gets the right to send while all other nodes (with lower
priority) switch to a receiving mode. It should be noted that ID does not the node address but
the priority of message to be sent.
Flexibility
As mentioned, there is no address information of nodes on the CAN bus. Therefore, adding or
removing a node does not affect the hardware and software of other nodes on the CAN bus.
High reliability
The CAN protocol features are error detection, error notification, fault confinement and error
handling. Every node on the CAN bus can detect an error (error detection) in a message. If any
error is found, the discovering node will transmit an error frame to notify other nodes (error
notification). Each node has an internal error counter that accumulates error count value every
time an error is detected. When the accumulative error count value of one node is greater than
or equal to 256, this fault node is disconnected from the CAN bus to avoid affecting other nodes
AN0658EN V1.00
HT32F49xxx MCU CAN Quick Start Guide
1 / 29
December 25, 2023
Need help?
Do you have a question about the HT32F49 Series and is the answer not in the manual?
Questions and answers