Can Bus
Can Bus
Can Bus
Agenda g
Introduction
Parallel Interconnects Transition from Parallel to Serial Buses High-Speed versus Low-Speed Serial Data Buses
Summary
Parallel Interconnects
Traditional way to connect digital devices used parallel buses Advantages
Simple point-to-point connections All signals are transmitted in g parallel, simultaneously Easy to capture state of bus (if you have enough channels!) Decoding the bus is relatively easy
Disadvantages
Occupies a lot of circuit board space All high-speed connections must be the same length M Many connections limit reliability ti li it li bilit Connectors may be very large
Event Triggering
State or Pattern event triggering is relatively easy with a logic analyzer or modern oscilloscope
Decoding
Bus decoding is relatively easy, we j t look at the state just l k t th t t
High-Speed
SATA
USBII
MOST
USB
D2B
J1805
Automotive Electronics
Simplifying automotive wiring Automotive suppliers looking for feature differentiation
Automotive
High % of value in electronics Ecology, safety, and comfort
Miniaturization of Designs
Product size is a critical feature
Communications
Convergence of voice, video, and data Efficient and reliable networks
Low-speed serial standards are less demanding than high-speed serial standards
Timing between signals and signal integrity is less critical to bus operation C Compliance t ti i t i ll not li testing is typically t necessary Bus topologies are not limited to point-topoint networks
End-user products often contain multiple serial standards, mixed-signals, mixed-data rates, single ended rates single-ended and differential signals
8
Mechanical
Agenda g
Introduction
Parallel Interconnects Transition from Parallel to Serial Buses High-Speed versus Low-Speed Serial Data Buses
Summary
10
Tx
28
SOF - begins with a start of frame (SOF) bit Arbitration - includes Identifier (address) and Remote Transmission Request (RTR) bit
Identifier can be standard format (11 bits - version 2.0A) or extended format (29 bits - version 2.0B) RTR used to distinguish between a data frame and a data request frame, also called a remote frame IDE distinguishes between CAN 2.0A (11 bit identifier) standard frame and CAN 2.0B (29 bit identifier) extended frame DLC i a f is four bi i di i of the # of b bit indication f h f bytes i the d in h data fi ld of a D field f Data f frame or the # of b h f bytes b i requested b a R being d by Remote f frame
Control - six bits including the Identifier Extension (IDE) bit and Data Length Code (DLC)
Data - consists of zero to eight bytes of data CRC - a fifteen bit cyclic redundancy check code and a recessive delimiter bit ACK - acknowledge field is two bits long
First is the slot bit, transmitted as recessive, but then overwritten by dominant bits transmitted from any node that successfully receives the transmitted message Second bit is a recessive delimiter bit
EOF - Seven recessive bits indicate the end of frame (EOF) INT - intermission field of three recessive bits indicates the bus is free
29
30
Oscilloscope: MSO4104
Validates ECUs CAN bus message Measures latency of sensor/ECU y chain
MSO4104 AFG3252
Trigger
Analog
43
ECU
44
CAN Demonstration
AFG3xxx MSO4xxx ArbExpress 2.3 TekVisa 3 3 0 1 4 3.3.0.1.4
45
Tektronix Oscilloscopes p
MSO/DPO4000 Series Oscilloscopes
MSO/DPO4032, MSO/DPO4034, MSO/DPO4054, MSO/DPO4104 Serial Triggering and Decoding with Application Modules Application Modules
DPO4AUTO: Automotive Serial Triggering and Analysis Module (CAN, LIN) DPO4EMBD: Embedded Serial Triggering and Analysis Module (I2C SPI) (I2C, DPO4COMP: Embedded Serial Triggering and Analysis Module (RS-232, RS-422, RS-485, UART) DPO4AUTOMAX: Extended Automotive Serial Triggering and Analysis Module (CAN, LIN FlexRay) (CAN LIN, Fl R )
DPO7000 Series
*5
Trigger Decode, Search, Event Table, Export Trigger Decode, Search, Event Table, Export Trigger Decode, Search, Event Table, Export Trigger
*1 *1 *1 *1 *2 *2 *3 3 *3 *7 7 *7 *7 *3 *3 *4 *4 *8 *7 *9 *9 *9 *6
CAN
Decode, Search, Event Table, Export Eye diagrams, Oscillator Timing, Bus Traffic Statistics
LIN
FlexRay
Decode, Search, Event Table, Export Eye Diagrams, Time Interval Error, Sync Measurements Diagrams Error
Legend
Suggested best tool for the task Available for the task Not available
51
Notes
*1 Option DPO4EMBD *2 Option DPO4COMP *3 Option DPO4AUTO or DPO4AUTOMAX *4 Option DPO4AUTOMAX *5 With PDI-R *6 With PDS-R *7 Option LSA *8 With ATM-1 *9 With PDF-R
Signal Generators
AFG3000 Series
Simulate I2C, CAN, LIN, RS-232 data and clock signals Generate analog sensor signals for ECU evaluation Up to 2 analog or digital outputs
AWG5000 Series
Generate analog, digital and mixed signals Up to 4 analog outputs 28 digital outputs and 8 variable level marker outputs outputs, outputs, Real-time waveform sequencing for loops, jumps, patterns and conditional branches
52