Professional Documents
Culture Documents
Can Protocol
Can Protocol
Introduction to CAN: -
The Controller Area Network (CAN) is a serial communications protocol. CAN is
widely used in automotive electronics for engine control, sensors etc.
Layers of CAN: -
This layer will do the data encapsulation; frame coding, media access
management, error detection and signaling and acknowledgment tasks.
This layer deals with the bit encoding and de coding, bit timing, synchronization
processes.
CAN properties: -
Multicast reception with time synchronization: Simultaneously multiple nodes can
receive the frame.
Multimaster: When the bus is free any unit may start to transmit a message. The unit
with the message of higher priority to be transmitted gains bus access.
Arbitration: Whenever the bus is free, any unit may start to transmit a message. If 2 or
more units start transmitting messages simultaneously, which unit gets the bus access that will
be depend on bitwise arbitration using the identifier. The mechanism of arbitration guarantees
that neither information nor time is lost.
Message Routing: An identifier names the content of a message. The identifier does not
indicate the destination of the message, but describes the meaning of the data, so that all nodes
in the network are able to decide by message filtering whether the data is to be acted upon by
them or not.
Remote Data Request: By sending a remote frame a node requiring data may request
another node to send the corresponding data frame. The same identifier names the data frame
and the corresponding remote frame.
There is a distinction between temporary errors and permanent failures of nodes and
autonomous switching off of defect nodes.
Features
• Implements Full CAN V2.0A and V2.0B at 1 Mb/s:
- 0 - 8 byte message length
- Standard and extended data frames
- Programmable bit rate up to 1 Mb/s
- Support for remote frames
- Two receive buffers with prioritized message storage
- Six full acceptance filters
- Two full acceptance filter masks
- Three transmit buffers with prioritization and abort features
- Loop-back mode for self test operation
• Hardware Features:
- High Speed SPI Interface
- Supports SPI modes 0,0 and 1,1
- Clock out pin with programmable prescaler
- Interrupt output pin with selectable enables
- ‘Buffer full’ output pins configurable as interrupt pins for each receive buffer or as general purpose
digital outputs
- ‘Request to Send’ input pins configurable as control pins to request immediate message transmission
for each transmit buffer or as general purpose digital inputs
- Low Power Sleep mode
• Low power CMOS technology:
Features
• Supports 1 Mb/s operation
• Implements ISO-11898 standard physical layer requirements
• Suitable for 12V and 24V systems
• Externally-controlled slope for reduced RFI emissions
• Detection of ground fault (permanent dominant) on TXD input
• Power-on reset and voltage brown-out protection
• An unpowered node or brown-out event will not disturb the CAN bus
• Low current standby operation
• Protection against damage due to short-circuit conditions (positive or negative battery voltage)
• Protection against high-voltage transients
• Automatic thermal shutdown protection
• Up to 112 nodes can be connected
• High noise immunity due to differential bus implementation