Professional Documents
Culture Documents
With an Oscilloscope
CAN History and
Message Structure
CAN Bus Historical Timeline
(D+) 1V
(D-) 1V
(D+) – (D-)
Common mode noise removed
Differential Signaling - CAN High and CAN Low
CAN bus uses two dedicated wires for communication. The wires are called CAN high and CAN low. When
the CAN bus is in idle mode, both lines carry 2.5V. When data bits are being transmitted, the CAN high line
increases to 3.75V and the CAN low decreases to 1.25V, resulting in a 2.5V differential between the lines.
Since communication relies on a voltage differential between the two bus lines, CAN bus is less susceptible
to inductive spikes, electrical fields and other noise.
Source: http://www.axiomatic.com/whatiscan.pdf
Whenever there are 5 consecutive bits of the same polarity, a stuff bit
of opposite polarity is inserted into the CAN message
CAN bus decode with and without stuff bits highlighted
CAN Standard and CAN-FD Decoded together on DUT which produces both
CAN Standard and CAN-FD Decoded together on DUT which produces both
Symbolic decode example
Setup for decoding multiple CAN busses
Decoding multiple CAN busses
Multi-bus decode example with SPI, I2C, and UART data traffic
CAN Decode Filtering
Searching for CAN criteria
Searching for CAN ID
CAN Decode Filtering
CAN Decode Filtering
Triggering
Triggering on CAN ID
Triggering on CAN ID + Data
Exclusion and Inclusion Triggering
Configuring Symbolic Trigger
Error Detection
ACK error captured amongst good CAN frames
CRC error captured amongst good CAN frames
Sequential Capture of CAN
Sequential capture of errors only
Time stamps of captured errors
Time stamps of captured errors
All CAN messages captured are Engine messages
CAN Measurements
CAN bus measurements
CAN-to-CAN measurement configuration across two busses
CAN-to-CAN measurement configuration across two busses
CAN-to-CAN measurement configuration across two busses
Measurement between CAN message and analog signal
Measurement between CAN message and analog signal
Measurement between CAN message and analog signal
Measurement between CAN message and analog signal
CAN message timing setup
CAN message timing setup
Counting All CAN messages
Counting Engine messages
Counting 0x410 Messages
Data log of 0x410 count
CAN load percentage of all CAN IDs
CAN load percentage of ID 0x210
Statistical analysis of load percentage
CAN Digital to Waveform Synthesis
Tracking and Trending CAN-to-Value
CAN FD Counter Circuit Data
Identifying CAN FD Counter Circuit Reset
Trending Temperature Sensor Data (Digitally Encoded)
Decoded temperatures
trended and histogrammed
Thermocouples
Trending Temperature Sensor Data (Digitally Encoded)
Accelerometer
Trending Motion Sensor Data (Digitally Encoded)
2.008 ns
2.004 ns
2.001 ns 2.001 ns 2.001 ns
1.999 ns
1.995 ns
1.991 ns
Period 1.986 ns
Time
Block of continuous
serial data acquired
Slice 10
Slice 12
Slice 11
Slice 1
Slice 2
Slice 3
Slice 4
Slice 5
Slice 6
Slice 7
Slice 8
Slice 9
3 segments equal to recovered
clock period
FREQUENCY f0
Analog Bandwidth
Example 1: A 3 GHz oscilloscope measures a 1 GHz sine wave
1 V input 1 GHz, 1 V sinewave is 1 GHz, 1 V sinewave is
1 input into oscilloscope measured by oscilloscope
.707
V OUT
V IN
FREQUENCY f0
FREQUENCY f0
Fourier Expansion of a Square Wave
1 1
𝑥𝑥 𝑡𝑡 = 𝑠𝑠𝑠𝑠𝑠𝑠𝜔𝜔0 𝑡𝑡 + 𝑠𝑠𝑠𝑠𝑠𝑠3𝜔𝜔0 𝑡𝑡 + 𝑠𝑠𝑠𝑠𝑠𝑠5𝜔𝜔0 𝑡𝑡 + � � �
3 5
Sampling Rate: speed at which the scope can digitize and record the voltage level of an input signal
Analog-to-Digital Acquisition
Converter
Memory Display
A
Amp D
C
Analog Digitized
Waveform Waveform Processing
Trigger Circuit
A
D
C
Analog-to-Digital
Analog Waveform Converter Digitized Waveform
Nyquist: Sample Rate Needs to be 2x Frequency in Waveform (For Signal Integrity)
Sample Rate and Memory are Related
Memory (S)
Sample Rate (S/s) =
Time (s)
Therefore,
Memory (S)
Time (s) =
Sample Rate (S/s)
Sample rate reduced to 4 sample points per bit (e.g. set 500 kS/s on 125 kb/s CAN) for decode,
maximizes time capture window
125 kb/s CAN sampled at 500 kS/s for 500 seconds (8.33 minutes)
190552 CAN messages captured in a single acquisition
Oscilloscope Display and Memory
95
Symbolic Decode for 8.33 seconds (190552 messages)
Sample Rate impact on 125 kb/s CAN bus data rate
10 GS/s scope sample rate
Sample rate / data rate = 80,000:1
Measured risetime: 21.19 ns