To Can Controllers at ST
To Can Controllers at ST
Car Body
CAN SPECIFICATION
Specified by BOSCH GmbH and normalized by ISO 11898
Specified by users
LLC (Logic Link Control) Accept. filtering, Overload notif., etc. MAC (Medium Access Control) Data encap/decap, Frames, Access, etc. PLS (Physical Signalling) Bit encod/decod, Bit timing, Sync. Bosch specification ISO 11898 standard
OSI model
1. Physical layer
PMA (Physical Medium Attachment) Driver/ receiver characteristics MDI (Medium Dependent Interface) Connectors
KEY CHARACTERISTICS
CAN means Controller Area Network CAN is an asynchronous serial communication protocol Multi-master concept
CSMA/CA (Carrier Sense Multiple Access / Collision Avoidance) Message priority
Object-oriented communication
No node addressing, but content identification
Real-time capability
Low message transfer latency
CAN core
CAN core
CAN core
CAN core
Frame
Filter
Frame
Filter
Frame
Filter
Frame
Filter
Transceiver
Transceiver
Transceiver
PHYSICAL LAYERS
High speed CAN physical layer (ISO 11898-2 standard)
Speed up to 1Mbit/s Max. bus length 40m at 1Mbit/s Two wire differential bus Characteristic line impedance 120 Ohm (120-Ohm resistor at both ends)
CAN FRAMES
Data frame: 2 standards
Standard format Extended format 11-bit identifier 29-bit identifier
Remote frame
Data frame structure without Data field
Overload frame
Still supported for compatibility
Dominant
DEL
ACK slot
Listen
ACK
Listen
DEL = Delimiter
DEL
ACK slot
D E L
CAN bus
Yes
Yes
Yes
no (destructive !)
Yes
Yes
no (destructive !)
no (destructive !)
Yes
2.0A and 2.0B active nodes cannot cohabit on the same network 2.0B passive and active nodes can cohabit on the same network
ERROR DETECTION
Bit Error (value of TX and RX signals differs) Acknowledge Error (when transmitter monitors ACK slot recessive) Stuff Bit Error (when stuff bit rule is broken) CRC Error (when CRC value is wrong) Form Error (wrong delimiters/EOF)
10
FAULT CONFINEMENT
Two counters
Transmit Error Counter (TEC) Receiver Error Counter (REC)
Reset and Configuration
Error Active
TEC > 127 or REC > 127 TEC < 128 or REC < 128 128 sequences of 11 consecutive recessive bit
Error Passive
Bus Off
TEC > 255
11