PicoScope 6 Serial Decoding - Pico Technology

2y ago
11 Views
2 Downloads
2.08 MB
6 Pages
Last View : 16d ago
Last Download : 2m ago
Upload by : Troy Oden
Transcription

PicoScope 6 Serial Decoding ADVANCED FEATURES INCLUDED AS STANDARDUART/RS-232 I²C I²S SPI CAN LIN FlexRayTime-correlated analog anddigital tracesMultiple channelsMultiple protocolsUp to 18 channels withmixed-signal PicoScopesData tableExport to spreadsheetTranslate numeric data to textFilter by contentRequires only a laptop and acompact PicoScope USB scopeSoftware compatible with Windows XP, Windows Vista, Windows 7 and Windows 8Free technical support Free updatesIncluded with all PicoScope oscilloscopes

PicoScope 6 Serial DecodingQuick startMixed protocolsCapture your waveform, go to Tools Serial Decoding, select your serial protocoland PicoScope will do the rest. Setupis automatic, but there are options tooverride the default settings if you need to.When decoding multiple serial data channels, each channel has independentprotocol settings. This means you can mix as many serial protocols as youwant and see them all decoded at once.Multiple data streamsA link file is a text file in commaseparated-values (CSV) or MicrosoftExcel (XLS) format that links numericdata to text strings. If you associate alink file with a serial decoding window,PicoScope will attempt to display thenumeric data as text. PicoScope cancreate a link file template ready for youto fill in your own data.‘Link files’ to interpret your dataYou can use all of your oscilloscope’schannels for serial decoding. For example,a 4-channel PicoScope can decode fourUART (RS-232) data streams at once. Ifyou have a mixed-signal PicoScope (MSO)with 16 digital inputs, you can use these inaddition to the analog inputs to get evenmore serial decoding channels.Efficient use of memoryIn-view serial dataPicoScope decides automatically whether to capture data into either theoscilloscope’s buffer memory or the computer’s RAM. Whatever type ofoscilloscope you have, you can capture and decode long sequences of serialdata for later analysis. This means you don’t need to trigger at exactly theright moment: you can start capturing and then wait for the data to appear.The in-view display showsdigital data graphically onthe same timebase as theanalog waveform. This ishelpful for troubleshootingas it allows you to correlateerrors in the digital datawith features on the analogwaveform. Multiple streamscan be arranged one abovethe other for inter-channelcomparisons and time delay measurements.In-window serial dataThe in-window displaylists packets or frames in atable. It includes a powerfulsearch function to help youanalyze the millions of bytesof data that deep-memoryPicoScopes can capture. The Search button jumps to a specified data patternin a specified field. Double-click a data packet, and PicoScope zooms into therelevant area of the analog and digital waveforms.The Filter button selects packets with fields of a specified value, so that yousee only the information of interest. A Start from control hides all data untila specified data pattern is found. You can sort the data by any column byclicking the column heading, or display any column in hex, binary, decimalor ASCII by right-clicking the column header. The View button selects whichpacket types and data fields are displayed, and also sets the global dataformat.The Statistics button shows additional properties of each packet, such asframe time, baud rate and voltage delta. You can combine statistics with thesort function: for example, sorting by voltage delta is a quick way to finderrors caused by data bus collisions or physical faults.Save data for analysisYou can save data from the PicoScope serial decoding window in MicrosoftExcel (XLS) format using the Export button.Use it like an oscilloscopeSerial decoding is integrated into the PicoScope oscilloscope software, so ifyou can use an oscilloscope you will be at home with serial decoding. Forexample, you can easily zoom and pan your data using toolbar buttons orby clicking and dragging in the zoom overview window. Timebase, inputrange and sampling rate settings are common to the analog and serial datawaveforms, so there are no new controls to learn.Most importantly, the PicoScope USB oscilloscope concept means thatthe whole computerscreen is availablefor the display ofdetailed data streamsand large tables ofdata. Just resize thePicoScope window tofit your data.Choosing the right PicoScopeProtocolBit ratesChannelsSuitable scopesRS-232/UARTUp to 115 kb/s1Entry level, e.g. PicoScope 2205ASPI1 MHz to 100 MHz2 or 34 channel, bandwidth 5 x bit rate, e.g. PicoScope 3404AIC100 kHz to 5 MHz2Entry level, e.g. PicoScope 2205AIS2.8 MHz typical34 channel, e.g. PicoScope 3404ACANUp to 1 Mb/s1 or 2Deep memory, e.g. PicoScope 3204ALINUp to 19.2 kb/s1Entry level, e.g. PicoScope 2205AFlexRayUp to 10 Mb/s1Deep memory, 50 MHz, e.g. PicoScope 3204A22

PicoScope 6 Serial DecodingUART / RS-232RS-232 is the serial data standard used by UARTs(Universal Asynchronous Receiver/Transmitters) inthe “serial” or “COM” ports once commonly foundon computers, modems and data terminals. Thetypical voltage swing is 12 V. The simplest RS-232connection consists of two signals, Rx (receive) andTx (transmit), with a common ground.In this example, PicoScope is being usedto decode the TTL side of an RS-232transmitter or receiver, where 0 Vrepresents the space condition and 5 V ismark. PicoScope’s serial decoding algorithmdetects the signalling levels and automaticallychooses the correct threshold voltage.I2CTo decode I2C, simplytell PicoScope whichchannels to use forSCL and SDA. Thesoftware auto-detectsclock and datathreshold voltages.I2C (Inter-Integrated Circuit) Bus is a serialprotocol used mainly in consumer electronicsfor communications between devices on thesame circuit board, and also for externalcommunication between computers andVGA displays using the DDC2 standard. Ituses two signals: clock (SCL) and data (SDA).I2SI2S can be used with various bitrates and word sizes, but themost common format is thatused for CD Audio: 32 bitsper word, 44 100 samples persecond. PicoScope automaticallydetects the bit rate of the signal.I2S (Inter-IC Sound) Bus is a serialprotocol used in digital audio devicesfor communications between circuitssuch as CD transports and on-boardor external DACs. It uses threesignals: clock (SCK), word select(WS) and data (SD).SPI (2, 3 and 4-wire)PicoScope can decode both2-wire and 3-wire versions ofSPI, with various word sizes andselectable bit-ordering. 4-wire(duplex) SPI can be decoded astwo separate buses. Baud rateselection is automatic.SPI (Serial Peripheral Interface)Bus is a serial data standard usedfor communication betweenmicroprocessors and peripheraldevices. At least two signals arerequired—clock and data—with anoptional third signal, chip select.CAN (H and L)PicoScope can decode either theCAN H or the CAN L signal. Forimproved noise immunity, you canconnect the scope to both signals,subtract one from the other usingthe ‘A–B’ math function, anddecode the difference.CAN (Controller Area Network) Busis a serial protocol used in automotiveand industrial machinery to allowmicrocontrollers to communicate witheach other. It uses differential signalling(with signals named CAN H andCAN L) to increase noise immunity.LINLIN decoding isstraightforward, with fewoptions to worry about.PicoScope lets you modifythe polarity, checksum typeand bit ordering, and canauto-detect everything else.LIN (Local Interconnect Network)is a serial protocol used inautomotive electronics to allowmicrocontrollers to communicatewith low-speed peripherals. It usesa single-wire bus with a masterslave topology.FlexRayFlexRay is an automotive networkcommunications protocol for highspeed data, up to 10 Mbit/s, using oneor two differential pairs. It is designedto be fault-tolerant. Applications so farinclude fast adaptive damping systemsin luxury vehicles.PicoScope requires asingle scope channelfor FlexRay decoding.The only options arethreshold and baudrate, both of whichare auto-detected.

PicoScope 6 Serial Decoding - The PicoScope DisplayOscilloscope controls: Commonly-used controls such as voltagerange selection, timebase, memory depth and channel selectionare placed on the toolbar for quick access, leaving the maindisplay area clear for waveforms. More advanced controls andfunctions are located in the Tools menu.Tools Serial decoding: Decode multiple serial datasignals and display the data alongside the physicalsignal or as a detailed table.Waveform replay tool: PicoScope automatically records upto 10,000 of the most recent waveforms. You can quickly scanthrough to look for intermittent events.Rulers: Each axis has two rulers that can be dragged across thescreen to make quick measurements of amplitude, time andfrequency.Zoom and pan tools: PicoScope allows zoom factorsof several million, which is necessary when workingwith deep-memory scopes. Either use the zoom-in,zoom-out and pan tools, or click and drag in thezoom overview window for fast navigation.Tools Math channels: Handy for decodingdifferential serial lines: just create an ‘A–B’ mathchannel and select it in the Serial Decoding dialog.Tools Reference channels: Store waveforms inmemory or on disk and display them alongside liveinputs. Ideal for diagnostics and production testing.Ruler legend: Shows absolute and relativepositions of the time and voltage rulers.In-view data: Shows decodeddata on the same axes as analogdata, allowing time measurements,zooming and panning.Auto setup button: Configuresthe timebase and voltage rangesfor stable display of signals.Export: Savedecoded dataas a MicrosoftExcel table.Accumulate:Add multiplecaptures tothe sametable.Link: Attach afile that mapsnumeric valuesto text stringsfor display.Start from:Wait for amatchingframe beforestoring data.Statistics:Optionally displayvoltage and timingparameters foreach frame.Highlighting: Theselected packet ishighlighted in boththe scope view andthe data table.Serial Decodingwindow: Listsdecoded data ina table.

PicoScope 6 Serial Decoding - SpecificationsGENERALProtocolsBaud rate rangeInput voltage rangeInput threshold rangeNumber of samplesTimebase rangeRS-232/UARTSignalsPacket parametersBaud ratesOptionsI2CSignalsPacket parametersBaud ratesOptionsI2SSignalsPacket parametersBaud ratesOptionsSPISignalsPacket parametersBaud ratesOptionsCANSignalsFrame parametersBaud ratesLINSignalsFrame parametersBaud ratesFLEXRAYSignalsPacket parametersBaud ratesSTATISTICS (ALL PROTOCOLS)PICOSCOPE SOFTWAREOperating systemLanguages (full support):Languages (UI only):RS-232/UART, I2C, I2S, SPI, CAN, LIN, FlexRayDependent on bandwidth and maximum sampling rate of oscilloscopeDetermined by oscilloscope. Typically 50 mV to 20 V.Determined by oscilloscope. Typically 50 mV to 20 V.Determined by buffer size of oscilloscope at high sampling rates, and by PicoScope software at low sampling ratesMinimum determined by oscilloscope, maximum: 5000 seconds/divisionData (Tx or Rx)Number, Type, Start Bit, Data bytes, Parity Bit, Stop Bit, Error, Start Time, End Time50, 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, CustomSignal Idle State: High or LowData bits: 5, 6, 7 or 8Parity: None, Odd, Even, Mark, SpaceStop Bits: 1 or 2Bit Order: LSB first, MSB firstSCL, SDANumber, Type, Address, Read/Write, Data bytes, Acknowledge, Start Time, End TimeAutomatically detectedDisplay address as: 7-bit slave address or 8-bit read/write addressData, clock, word selectNumber, Type, Data bytes, Start Time, End TimeAutomatically detectedSample Clock on: Falling Edge, Rising EdgeBit Order: LSB first, MSB firstData, Clock, CS (optional)Number, Type, Data bytes, Start Time, End TimeAutomatically detectedSample Clock on: Rising Edge, Falling EdgeChip Select State: Active Low, Active HighData Bits: 8, 16, 24, 32Bit Order: LSB first, MSB firstCAN H or CAN LNumber, ID, Type, RTR, SRR, IDE, R0, R1, DLC, Data bytes, CRC Sequence,CRC Delimiter, ACK Slot, ACK Delimiter, Error, Start Time, End Time10 k, 20 k, 33.3 k, 50 k, 83.3 k, 125 k, 250 k, 500 k, 800 k, 1 M, CustomDataNumber, Type, Break, Sync, ID, Parity, Data Count, Data bytes, Checksum, Error, Start Time, End Time50, 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, CustomDataNumber, Type, TSS, FSS, BSS, Reserved Bit, Payload Preamble Indicator, Null Frame Indicator, Sync FrameIndicator, Startup Frame Indicator, ID, Payload Length, Header CRC, Cycle Count, Payload, Payload CRC,FES, DTS, Error, Start Time, End Time1 M, 1.25 M, 2 M, 2.5 M, 5 M, 10 M, 20 M, CustomStuffed Bits, Baud Rate, Frame Time, Min Voltage, Max Voltage, Voltage DeltaMicrosoft Windows XP SP3, Windows Vista, Windows 7 or Windows 8 (not Windows RT)English, French, German, Italian, SpanishChinese (Simplified), Chinese (Traditional), Czech, Danish, Dutch, Finnish, Greek,Hungarian, Japanese, Korean, Norwegian, Polish, Portuguese, Romanian, Swedish, Turkish

PicoScope 6 Serial Decoding - Case StudyMixed-signal analysis of an I2C DACThe serial decoding displayWe wished to monitor two of the analog outputs from an AD5325 DACat the same time as decoding the commands on its I2C port. Since I2C is atwo-wire protocol, we needed an oscilloscope with at least four channels.In this case we chose a PicoScope 2205 MSO (mixed-signal oscilloscope),but we could just as easily have used a four-channel scope such as thePicoScope 4424.PicoScope decoded our captured data, giving us this display:Setting upWe used the MSO’s two analog channels for monitoring the DAC’s outputs,leaving the 16 digital channels free for serial decoding. This is how weconnected the scope:Sequence 1 (CHA)Sequence 2 (CHB)We can see two address-data-data-data sequences on the I2C bus in thescope view, together with the decoded data in the lower window. Bothsequences begin with the DAC’s address, 0C. The first sequence (0C-0124-1D) addresses the device’s CHA output and causes it to change level.The second sequence (0C-02-24-1D) repeats this operation for the DAC’sCHB output.We can zoom in to show the START condition and first packet (deviceaddress) in greater detail:We captured some I2C packets using digital channel D0 for SCL (clock) andD1 for SDA (data). In the Tools menu we selected Serial Decoding and thenset channel A to decode I2C data. We checked the In View and In Windowboxes to view our data in both graphical and tabular formats, and clickedOK.We have seen that PicoScope can act as an oscilloscope, logic analyzer andprotocol analyzer, with the results shown on a single, easy-to-read display.Fur ther informationFor latest manual, see: http://www.picotech.com/document/PicoScope 6 User’s Guide (PDF)PicoScope 6: CAN Bus Decoding (video)PicoScope 6: Capturing High–Speed Serial Data (video)PicoScope 6: Serial Decoding Basics with I²C (video)For latest videos, see: http://www.youtube.com/user/picotech/PicoScope 6: Serial Decoding of CAN Bus Signals (video)PicoScope 6: Serial Decoding of SPI Bus Signals (video)PicoScope 6: Serial Decoding of UART/RS-232 (video)UK headquarters:US headquarters:Pico TechnologyJames HouseColmworth Business ParkSt. NeotsCambridgeshirePE19 8YPUnited Kingdom 44 (0) 1480 396 395 44 (0) 1480 396 296 sales@picotech.comPico Technology320 N Glenwood BlvdTylerTexas 75702United States 1 800 591 2796 1 620 272 0981sales@picotech.comErrors and omissions excepted. Windows is a registered trade mark of MicrosoftCorporation in the United States and other countries. Pico Technology andPicoScope are internationally registered trade marks of Pico Technology Ltd.MM043.en-1. Copyright 2013–2014 Pico Technology Ltd. All rights reserved.www.picotech.com

SPI (Serial Peripheral Interface) Bus is a serial data standard used for communication between microprocessors and peripheral devices. At least two signals are required—clock and data—with an optional third signal, chip select. SPI (2, 3 and 4-wire) I2S (Inter-IC Sound) Bus is a

Related Documents:

PicoScope 5442D PicoScope 5443D PicoScope 5444D! ! 5 V 1.6 A pk 8 W (@5 V) PicoScope 5442D MSO PicoScope 5443D MSO PicoScope 5444D MSO! ! 5 V 1.6 A pk 8 W (@5 V) *Can be powered from either a single USB 2.0 or USB 3.0 port, provided the port supplies the required power. The PicoScope software will notify you if the port is not suitable.

This manual explains how to use the API (application programming interface) functions, so that you can develop your own programs to collect and analyze data from the oscilloscope. The information in this manual applies to the following oscilloscopes: PicoScope 5242A PicoScope 5243A PicoScope 5244A PicoScope 5442A PicoScope 5443A PicoScope 5444A The A models are high speed portable .

1.5 Installing your oscilloscope 1. Go to www.picotech.com, click Downloads, select your PicoScope's series and model from the lists, then select the latest PicoScope software. Download and run the installer. 2. In the PicoScope installer, select the language you wish to use. 3. Follow the on-screen instructions to install the PicoScope software.

The PicoScope 4223 and PicoScope 4423 can measure hazardous live voltages up to the maximum full-scale measurement voltage of 100 V DC The PicoScope 4823 is not suitable for the direct measurement of hazardous live voltages Accessories suited for use with, or connection to, higher voltages are all clearly marked with their

PicoScope 4225 PicoScope 4425 For maximum performance the PicoScope 4225 and 4425 automotive oscilloscopes should be connected to a USB 3.0 port on your PC or laptop. If powering either of these oscilloscopes from a USB 2.0 port, you may need a TA146 double-headed USB 2.0 cable, available separately from Pico Technology.

PicoScope 6 is a comprehensive software application for Pico Technology oscilloscopes. Used with a PicoScope hardware device, it creates an oscilloscope and spectrum analyzer on your PC. PicoScope 6 supports the devices listed in the Device feature table. It runs on any computer with Windows XP SP3 through to Windows 8. (See System requirements for

has invested in PicoScope and is using it as an everyday tool for diagnostics. In this case, following the fault code read-out from the serial diagnostic tool, it would be common practice to connect the PicoScope to the camshaft sensor to test it before it is removed. When you capture data with PicoScope, it stores data in the Waveform Buffer.

IMPORTANT: Do not connect your PicoScope PC Oscilloscope to the PC before you have installed the PicoScope software. 3.1nstalling the software I The PicoScope Automotive software has been designed to run on computers with Windows XP SP2 and Vista. 1. Insert the Pico CD into your CD-ROM drive. If Autorun is enabled then the CD will