Professional Documents
Culture Documents
Picoscope 6 Serial Decoding: Uart/Rs-232 - I C - I S - Spi - Can - Lin - Flexray
Picoscope 6 Serial Decoding: Uart/Rs-232 - I C - I S - Spi - Can - Lin - Flexray
Picoscope 6 Serial Decoding: Uart/Rs-232 - I C - I S - Spi - Can - Lin - Flexray
UART/RS-232•I²C•I²S•SPI•CAN•LIN•FlexRay
Software compatible with Windows XP, Windows Vista, Windows 7 and Windows 8
Free technical support • Free updates
UART / RS-232
RS-232 is the serial data standard used by UARTs In this example, PicoScope is being used
(Universal Asynchronous Receiver/Transmitters) in to decode the TTL side of an RS-232
the “serial” or “COM” ports once commonly found transmitter or receiver, where 0 V
on computers, modems and data terminals. The represents the space condition and +5 V is
typical voltage swing is ±12 V. The simplest RS-232 mark. PicoScope’s serial decoding algorithm
connection consists of two signals, Rx (receive) and detects the signalling levels and automatically
Tx (transmit), with a common ground. chooses the correct threshold voltage.
I2C
I2C (Inter-Integrated Circuit) Bus is a serial To decode I2C, simply
protocol used mainly in consumer electronics tell PicoScope which
for communications between devices on the channels to use for
same circuit board, and also for external SCL and SDA. The
communication between computers and software auto-detects
VGA displays using the DDC2 standard. It clock and data
uses two signals: clock (SCL) and data (SDA). threshold voltages.
I2S
I2S (Inter-IC Sound) Bus is a serial I2S can be used with various bit
protocol used in digital audio devices rates and word sizes, but the
for communications between circuits most common format is that
such as CD transports and on-board used for CD Audio: 32 bits
or external DACs. It uses three per word, 44 100 samples per
signals: clock (SCK), word select second. PicoScope automatically
(WS) and data (SD). detects the bit rate of the signal.
CAN (H and L)
CAN (Controller Area Network) Bus PicoScope can decode either the
is a serial protocol used in automotive CAN H or the CAN L signal. For
and industrial machinery to allow improved noise immunity, you can
microcontrollers to communicate with connect the scope to both signals,
each other. It uses differential signalling subtract one from the other using
(with signals named CAN H and the ‘A–B’ math function, and
CAN L) to increase noise immunity. decode the difference.
LIN
LIN (Local Interconnect Network) LIN decoding is
is a serial protocol used in straightforward, with few
automotive electronics to allow options to worry about.
microcontrollers to communicate PicoScope lets you modify
with low-speed peripherals. It uses the polarity, checksum type
a single-wire bus with a master- and bit ordering, and can
slave topology. auto-detect everything else.
FlexRay
FlexRay is an automotive network PicoScope requires a
communications protocol for high- single scope channel
speed data, up to 10 Mbit/s, using one for FlexRay decoding.
or two differential pairs. It is designed The only options are
to be fault-tolerant. Applications so far threshold and baud
include fast adaptive damping systems rate, both of which
in luxury vehicles. are auto-detected.
PicoScope 6 Serial Decoding - The PicoScope Display
Oscilloscope controls: Commonly-used controls such as voltage Waveform replay tool: PicoScope automatically records up
range selection, timebase, memory depth and channel selection to 10,000 of the most recent waveforms. You can quickly scan
are placed on the toolbar for quick access, leaving the main through to look for intermittent events.
display area clear for waveforms. More advanced controls and
functions are located in the Tools menu.
Rulers: Each axis has two rulers that can be dragged across the
screen to make quick measurements of amplitude, time and
frequency.
Export: Save Accumulate: Link: Attach a Start from: Statistics: Highlighting: The Serial Decoding
decoded data Add multiple file that maps Wait for a Optionally display selected packet is window: Lists
as a Microsoft captures to numeric values matching voltage and timing highlighted in both decoded data in
Excel table. the same to text strings frame before parameters for the scope view and a table.
table. for display. storing data. each frame. the data table.
PicoScope 6 Serial Decoding - Specifications
GENERAL
Protocols RS-232/UART, I2C, I2S, SPI, CAN, LIN, FlexRay
Baud rate range Dependent on bandwidth and maximum sampling rate of oscilloscope
Input voltage range Determined by oscilloscope. Typically ±50 mV to ±20 V.
Input threshold range Determined by oscilloscope. Typically ±50 mV to ±20 V.
Number of samples Determined by buffer size of oscilloscope at high sampling rates, and by PicoScope software at low sampling rates
Timebase range Minimum determined by oscilloscope, maximum: 5000 seconds/division
RS-232/UART
Signals Data (Tx or Rx)
Packet parameters Number, Type, Start Bit, Data bytes, Parity Bit, Stop Bit, Error, Start Time, End Time
Baud rates 50, 300, 1.2 k, 2.4 k, 4.8 k, 9.6 k, 19.2 k, 38.4 k, 57.6 k, 115.2 k, Custom
Signal Idle State: High or Low
Data bits: 5, 6, 7 or 8
Options Parity: None, Odd, Even, Mark, Space
Stop Bits: 1 or 2
Bit Order: LSB first, MSB first
I2C
Signals SCL, SDA
Packet parameters Number, Type, Address, Read/Write, Data bytes, Acknowledge, Start Time, End Time
Baud rates Automatically detected
Options Display address as: 7-bit slave address or 8-bit read/write address
I2S
Signals Data, clock, word select
Packet parameters Number, Type, Data bytes, Start Time, End Time
Baud rates Automatically detected
Sample Clock on: Falling Edge, Rising Edge
Options
Bit Order: LSB first, MSB first
SPI
Signals Data, Clock, CS (optional)
Packet parameters Number, Type, Data bytes, Start Time, End Time
Baud rates Automatically detected
Sample Clock on: Rising Edge, Falling Edge
Chip Select State: Active Low, Active High
Options
Data Bits: 8, 16, 24, 32
Bit Order: LSB first, MSB first
CAN
Signals CAN H or CAN L
Number, ID, Type, RTR, SRR, IDE, R0, R1, DLC, Data bytes, CRC Sequence,
Frame parameters
CRC Delimiter, ACK Slot, ACK Delimiter, Error, Start Time, End Time
Baud rates 10 k, 20 k, 33.3 k, 50 k, 83.3 k, 125 k, 250 k, 500 k, 800 k, 1 M, Custom
LIN
Signals Data
Frame parameters Number, Type, Break, Sync, ID, Parity, Data Count, Data bytes, Checksum, Error, Start Time, End Time
Baud rates 50, 300, 1.2 k, 2.4 k, 4.8 k, 9.6 k, 19.2 k, 38.4 k, 57.6 k, 115.2 k, Custom
FLEXRAY
Signals Data
Number, Type, TSS, FSS, BSS, Reserved Bit, Payload Preamble Indicator, Null Frame Indicator, Sync Frame
Packet parameters Indicator, Startup Frame Indicator, ID, Payload Length, Header CRC, Cycle Count, Payload, Payload CRC,
FES, DTS, Error, Start Time, End Time
Baud rates 1 M, 1.25 M, 2 M, 2.5 M, 5 M, 10 M, 20 M, Custom
STATISTICS (ALL PROTOCOLS) Stuffed Bits, Baud Rate, Frame Time, Min Voltage, Max Voltage, Voltage Delta
PICOSCOPE SOFTWARE
Operating system Microsoft Windows XP SP3, Windows Vista, Windows 7 or Windows 8 (not Windows RT)
Languages (full support): English, French, German, Italian, Spanish
Chinese (Simplified), Chinese (Traditional), Czech, Danish, Dutch, Finnish, Greek,
Languages (UI only):
Hungarian, Japanese, Korean, Norwegian, Polish, Portuguese, Romanian, Swedish, Turkish
PicoScope 6 Serial Decoding - Case Study
We captured some I2C packets using digital channel D0 for SCL (clock) and
D1 for SDA (data). In the Tools menu we selected Serial Decoding and then
set channel A to decode I2C data. We checked the In View and In Window
boxes to view our data in both graphical and tabular formats, and clicked
We have seen that PicoScope can act as an oscilloscope, logic analyzer and
OK.
protocol analyzer, with the results shown on a single, easy-to-read display.
UK headquarters: US headquarters:
Pico Technology Pico Technology
James House 320 N Glenwood Blvd
Colmworth Business Park Tyler
St. Neots Texas 75702
Cambridgeshire United States
PE19 8YP
United Kingdom
+44 (0) 1480 396 395 +1 800 591 2796
+44 (0) 1480 396 296 +1 620 272 0981
sales@picotech.com sales@picotech.com