Home

uClinux course - The Basics

image

Contents

1. Tool C File Devices Capture Options Help LabTool Device Sample Rate 40MHz_ gt CO E Q Q Q _ Addsignal Capture Generator ARS 12 075 us 2 075 us 47 925 us 17 925 us 327 925 us 437 925 us 447 925 us 357 925 us Cursor Measurements z PERERA RE E E R nd Te E E a ce 1 047 ms x i C2 2 047 ms DO Digitalo 7 C3 C4 4 282 ms C1 C2 f 1000 Hz ES C C1 C2 t 1ms x i 3 C3 C4 f D1 Digital 1 C3 C4 t H Digital Measurements D7 Digital 7 Period 3 85us Frequency 259 74 KHz Too File Devices Options Help labToci Device gt CO B t ES Capture Generator TL Digital Signal Generator Add Remove Rate 50 MHz States 154 Figure 2 LabTool User Interface Screenshots As an extra bonus there are 12 demonstration signals generated by an on board microcontroller These are UART I2C SPI PWM and binary counter signals easily available on 100 mil pitch pin header The signals can be used to learn how to make full use of the LabTool logic analyzer features and how to work with a logic analyzer in general The LPC Link 2 is a debug interface Cortex debug and even though the LPC Link 2 is mounted in the interface board creating the LabTool the Cortex debug interface is available and can be used see picture below Copyright 2013 Embedded Artists AB LabTool User s Guide The picture below illustrates the externa
2. e 5Vi div about 12 MHz bandwidth e 2Vldiv about 6 MHz bandwidth e 1V div about 6 MHz bandwidth e 500mV div about 5 MHz bandwidth e 200mV div about 12 MHz bandwidth e 100mV div about 6 MHz bandwidth e o0mV div about 5 MHz bandwidth e 20mV div about 3 MHz bandwidth 7 3 Sample memory usage The sample memory is 64 kByte There are some threshold levels when dividing this memory e 1 2 digital signals used DO D1 64 2 32 kByte 256 kSamples for each signal e 3 4 digital signals used DO D4 64 4 16 kByte 128 kSamples for each signal e 9 8 digital signals used DO D8 64 8 8 kByte 64 kSamples for each signal e 9 digital signals used D0 D9 64 9 about 7 1 kByte 56 9 kSamples for each signal e 10 digital signals used DO D10 64 10 about 6 4 kByte 51 2 kSamples for each signal e 11 digital signals used D0 D11 64 11 about 5 8 kByte 46 5 kSamples for each signal e Each analog signal takes 2 bytes per sample to store o 1 analog channel used 32 kSamples o 2analog channels used 16 kSamples e f both digital and analog channels are active at the same time the sample memory is divided so that the number of samples is equal between digital and analog channels 7 4 LabTool Application cannot find LabTool Hardware Under some circumstances the USB driver installation can be incomplete or the drivers are not working correctly 1 Before starting make sure that the LabTool application is running 2 Insert a US
3. Devices Capture Options Help LabTool Device Sample rate Gomme Jo E Q Q Q Addsigal 923 8 us DO UART TXD UART UART 0 Di I2C SDA D2 I2C SCL I2C I2CO D3 SPI SSEL D4 SPI MOSI DS SPI MISO D6 SPI SCK SPI SPIO 323 8 us C1 C2 f C1 C2 t C3 C4 f C3 C4 t rarr Digital Measurements Period Frequency Width Duty Cyde n a o n a a WW n jap l M m m mee ANSP Analog Measurements A0 Al A0 A1 Pk Pk0 Pk Pk1 Counter signals TTTRETTTTTITLUTITT TFT a digital signal mo Project Loaded If the middle area is blank that is because no data has been collected yet Press the Play Capture button in the toolbar or select Start from the Capture menu That will capture a new set of data one time when the trigger condition is met Pressing the Continuous Capture button the infinite symbol just right of the Play Capture button will capture data every time the triggering condition is met not just one time Copyright 2013 Embedded Artists AB LabTool User s Guide Page 14 The middle area has a dark background here This can be changed by selecting another color scheme as illustrated in Figure 10 below LabTool Device Sample Rat Capture Generator 1ms Os 1ms5 2 ms Figure 10 Set Color Scheme 2 3
4. Interpret captured data There are four cursors in the graphical user interface that can help measure time between interesting events There are also interpreters for 12C SPI and UART that can be activated before or after a capture Any digital signals can be inputs to these interpreters Copyright 2013 Embedded Artists AB LabTool User s Guide a Since the LabTool software is open source it is possible to create interpreters for the specific signals you are interested in The three steps prepare capture and analyze are treated in more details in the following sections 4 1 Start LabTool Application The LabTool application can be found on the start menu see Figure 22 or on the desktop if that option was selected during installation di Dialog Semiconductor Digilent Documents Pictures Games LogicPort ci LPCXpresso v4 0 5 123 di Maintenance di Microsoft Visual Studio 2010 Express di National Instruments di Notepad Games Computer Control Panel J Qt by Nokia v4 7 4 MinGW OpenSource di Qt Creator di Red Suite 3 v3 3 Default Programs di Roxio Creator DE di Startup Help and Support Devices and Printers Figure 22 LabTool Application in Start Menu When the application has started the default screen opens up as illustrated in Figure 23 below This window contains a number of areas that are explained below The left area has a list of the active signals In the middle area the capture
5. Windows Security l Would you like to install this device software 1 Name NAP LabTool Publisher NXP Semiconductors USA Inc E Always trust software from NXP Semiconductors Don t Install USA Inc ri You should only install driver software from publishers you trust How can I decide which device software is safe to install Figure 20 USB Driver Warning Dialogs in Windows 7 Copyright 2013 Embedded Artists AB LabTool User s Guide Page 22 After a while can take several minutes the final dialog will be displayed as illustrated below ie Setup LabTool Completing the LabTool Setup Wizard Setup has finished installing LabTool on your computer The application may be launched by selecting the installed icons I NOTE Plug in the LPC Link 2 and allow the drivers to be installed by Windows BEFORE starting LabTool WINOTE Click Finish to exit Setup Figure 21 Final Dialog of Installation Press Finish button to complete the installation Do not start the LabTool application at this point in time First connect the LPC Link 2 to the PC via a USB cable Wait until the USB drivers have installed Two windows will appear shortly at the lower right screen of the PC The process can take several minutes to complete Copyright 2013 Embedded Artists AB LabTool User s Guide Page 23 4 Using LabTool This section will describe how to best work with LabTool when using it as a logi
6. t C3 C4 f C3 C4 t Digital Measurements Period Analog Measurements A A1 A0 A1 Pk Pk DLl Dl i Trim TO A clockwise until almost perfect square Switch to 0 2V div in the LabTool application 4 Trim TO B clockwise until almost perfect square Switch to 0 5V div in the LabTool application Ifthe signal is no longer almost perfect then a Switch to 0 2V div in the LabTool application b Trim TO B counter clockwise a very small amount c Trim TO A to make it almost perfect again d Switch to 0 5V div in the LabTool application e Repeat step 6 until a very good signal is seen 7 MoveAIN 0 to the 0 078V calibration pin 8 Observe at the signal in the LabTool application using the 0 1 0 05 and 0 02 V div settings It should look well compensated in all voltage ranges Repeat the procedure again for AIN 1 using the T1 A and T1 B trimming capacitors instead Copyright 2013 Embedded Artists AB LabTool User s Guide 6 Current Limitations on Application There are a number of limitations in the application and hardware regarding sample rate These are detected in runtime and when exceeded a warning dialog will be shown in the LabTool application Two examples of dialogs EJ Capture Failed Unsupported sample rate The selected combination of signals and sample rate is invalid The hard limits are 60 MHz when capturing either AQ or Al 30 MHz whe
7. x idi L Figure 12 Complete LabTool Board If LabTool is not assembled like above some manual work is needed The following things are needed one of each e LPC Link 2 rev C board e LabTool interface board rev A with 26 pos cable for external signals e Mounting kit e USB cable mini B to A Verify that no jumpers are inserted on JP1 or JP2 on the LPC Link 2 board see picture below Copyright 2013 Embedded Artists AB LabTool User s Guide LPC Link 2 board LabTool interface board Or D2 ai 21 or de KK F1 w iFD2R92 n El ATTR24 m ERs ya EC m E 2 ETIN en Pa EN d ie ey N M mm 4 B o ALLE I in a OHNE LE 14 os Ec cu ts es EIL LIEN est elg CIT a X EEr UT n37Ri4 R38 C3 ct 156 if ai E i5W x Ris P 5 ia 2812 C6 CR47 73 Ries 7P R4 04 rior aT 2 R28 Titi LESS annnn EHO iP i oF tee CE gaan ET M ELS au rm ai CST Ld TRE SE ERE FE FE HW TRE RAUL DE I LPC Link 2 R56 Figure 13 LPC Link 2 Board and LabTool Interface Board rev A Place the two boards according to Figure 13 above Note the board orientations Place the LPC Link 2 on top of the LabTool board and press it down connecting the boards via three connectors It is possible to mount the two boards slightly misaligned so make sure the connectors on the LPC Link 2 board are placed symmetrical in the
8. Embedded Artists AB LabTool User s Guide Table of Contents Document Revision History 4 1 LabTool Introduction 5 2 QuickStart Guide 9 2 1 Prepare the Hardware 9 2 2 Basic Usage 11 2 3 Interpret Data with Analyzers 14 2 3 1 UART 14 2 3 2 SPI 15 2 3 3 12C 15 2 3 4 Counters 15 2 3 5 Analog 15 2 3 6 PWM 16 3 Installation 17 3 1 Prepare Hardware 17 3 2 Install PC Application 19 4 Using LabTool 23 4 1 Start LabTool Application 24 4 2 Setup Prepare for Measurement 26 4 2 1 Project Settings 31 4 3 Capturing 32 4 3 1 Export Data 33 4 4 Analyzing Captured Data 34 4 4 1 Using Cursors 35 4 4 2 Digital Measurements 36 4 4 3 Analog Measurements 36 4 5 Digital Signal Generation 37 4 6 Analog Signal Generation 39 5 Calibration of Hardware 40 5 1 DC Level Calibration 40 5 2 Analog input Stage Calibration 43 6 Current Limitations on Application 45 7 Troubleshooting Things to Know 46 7 1 LPC Link 2 board is getting hot 46 7 2 A10 MHZ input signal looks distorted 46 7 3 Sample memory usage 46 7 4 LabTool Application cannot find LabTool Hardware 46 Copyright 2013 Embedded Artists AB LabTool User s Guide Page 4 Document Revision History mme e p O y 2013 01 07 Updated with continuous sampling analog triggering and simultaneous analog and digital sampling PA3 2013 03 27 Updated for rev PA2 of hardware and updates in GUI 05 15 Updated for rev PA3 of hardware and ver 0 8 of installation program A
9. In this document all details about the user interface will be presented Copyright 2013 Embedded Artists AB LabTool User s Guide Tool File Devices Capture Options Help LabTool Device SampleRate 20MHz v gt CO E Q Q aAddsignal Capture Generator 364 9 us 314 9 us 264 9 us 214 9 us 7164 9 us 114 9 us 64 9 us 14 9 Cursor Measurements TN n d He Re c S d Rs RS iud Oy T Do si EA A EM TES D a l ci 1 1957 ms x C2 2 1957 ms DO Digitalo C C3 i C4 x f C1 C2 f 1000 Hz D1 Digtali 7 Vll fi fil fl Ji crea d ims ox p C3 C4 f I2C I2C2 l C3 C4 t Bais a0 yas Hos wine Oats om jaa Rane ipsis ona i DA Dt Digital Measurements x D2 Digta2 7 Tool x File Devices Capture Options Help D3 Digtal3 7 LabTool Device Sample Rate 2MHz_ gt CO MN Q Q Q addsicnal D4 tal 4 a m Capture Generator x DS Digtals _ 813us 313us 187 us 687 us 1 187 ms 1 687 ms 42 187 ms 42 687 Cursor Measurements ox PPS NES dl eee a a El i Ci 1 047 ms SPI SPI1 x C2 2 047 ms SPI evi an AQ Analog 0 C3 CK D5 VERS TURN C4 4 282 ms x UM i C1 C2 f 1KHz D6 Digtale T ar RMAN e e T a DC AC i C1 C2 t 1ms ox C3 C4 f UART UART 1 C3 C4 t n 0n 7X Digital Measurements Ai Analog 1 C ind iv dv 5 Frequency SEEMS ee eee EE HEN ens MSN OPI E a rtc Ha enone eek aee meer ieee ae z m Q9 DC AC Duty Cyde Analog Measurements 0 AQ 0 485033 V
10. SDA D1 s x Delete UART UARTO Analyzer Signal DO Cursors Figure 30 Reconfigure or Delete Analyzer Copyright 2013 Embedded Artists AB LabTool User s Guide Page 29 It is good practice to give each signal a meaningful name This will simplify when it is time to interpret the captured signals Simply double click on the signal name and assign an appropriate name see Figure 31 below File Devices Capture Options He LabTool Device Sample Rate 20MHz Figure 31 Set Signal Name An important setting is the sample rate See Figure 31 above and locate the sample rate drop down list in the toolbar of the main application window The selected sample rate is a trade off between level of detail and length of capture Note the limitations of the system see section 6 for details Triggers are also important in order to capture the data that is of interest Click in the box to the right of the signal name to select a trigger setting for that signal Figure 32 illustrates the three different modes Every click will loop through the modes one step If several triggers are selected they will all be logical OR ed together The first trigger condition to be met halts the capturing If no trigger is selected it will be the same as forcing a trigger when pressing the Play Capture button File Devices Capture Options LabTool Device Sample Rate 20 MHz Capture Generator 1ms Falling edge trigger DO Digi
11. Todoe com 1 B Capture Generator l Digital Signal Generator ees hdd Remove Rate 50 MHz States 154 Signal 8 1 2 3 4 Sy 793 Do BP Bye SE F eo Aa 22 22 24 SA 27 28 23 30 31 BR 3435 35 3X p aud 2 8 2 5 2 92 a 80 2 0 2 o 2 6 z 9 2 9 2 09 a2 o0 5 o a2 o 3o o e o o o o e p 5i a lolaleolalolale alolalofalolalolalolalelaloleolofalolaljelalalolalelol e 9 D2 Digital ii g a 1 al 1 DI Ji Dg g 1 T E 1 Fy rar D Tru B rs lela ra d ra Dg DIDIE m i a e alolzlololalalolalolalalololzlolalaol lolalol lolzlolalolol lalzlololole whpedalelalolalololelelclololelel oleolalolalelalo elofalelalolalelolefalolalolole pi pur a 8 2 0 2 90 1 60 2 0 2 0 2 80 z 0 2 0 1 0 1 0 9 o 2 8 z o 2 0 0 o0 8 z2 0 w td 1 0l2 o 2 o9 3lo 2 lo 2l o s e s e s e alo alolelojale slo a o olololo a o a ewe Figure 44 Digital Signal Generation Example Copyright 2013 Embedded Artists AB LabTool User s Guide 4 6 Analog Signal Generation There are two analog outputs that can produce signals between 5V To activate analog signal generation select the Generator tab see below Then press Add button in order to add the signals that shall be generated Select the signals to add A0 and or A1 via the checkboxes and press OK File Devices Options Help LabTool Device Po HN E Generator tab Capture Generator L Digital Signal Generator Add Remove Rate
12. connectors on the LabTool board see picture below r Lm oymmetrical mounting Figure 14 LPC Link 2 Board and LabTool Board Mounted When the LPC Link 2 board has been mounted on the LabTool interface board it will look like on Figure 12 from the top Copyright 2013 Embedded Artists AB LabTool User s Guide 3 2 Install PC Application Uninstall any previous installation of LabTool before starting Make sure the LPC Link 2 is not connected to the PC via a USB cable during the installation Run the file Install LabTool vX Y exe when X Y is the version number to install the software on the Welcome to the LabTool Setup Wizard This will install LabTool version 0 96 on your computer Itis recommended that you dose all other applications before continuing Click Next to continue or Cancel to exit Setup Figure 15 First Dialog of Installation Press Next button Where should LabTool be installed D Setup will install LabTool into the following folder To continue dick Next If you would like to select a different folder click Browse c Program Files Embedded ArtistsV abTool At least 31 4 MB of free disk space is required Figure 16 Second Dialog of Installation Copyright 2013 Embedded Artists AB LabTool User s Guide Select destination folder and press Next button If possible keep default folder Figure 17 Third Dialog of Installation Select checkboxes to get a desktop ic
13. signal names are also written in the silkscreen on the bottom side of the pcb Odd pin numbers are located on the upper row of the 26 pos IDC connector and even numbers are located on the lower row closest to the pcb a a m p The use cases for using LabTool in your work are e 11 channel logic analyzer with without using the demo signals e 11 channel logic analyzer 2 channel oscilloscope with without using the demo signals e 11 channel digital signal generator e 2channel analog signal generator e 11 channel digital signal generator 2 channel analog signal generator e Cortex Debug interface SWD from the functionality of the LPC Link 2 for example by using the LPCXpresso IDE As seen it is not possible to both generate and capture signals Last but not least the software is released under an open source license Anyone can contribute and make the LabTool instrument even better Copyright 2013 Embedded Artists AB LabTool User s Guide Page 9 2 QuickStart Guide There is a Cortex M0 microcontroller LPC812 on the LabTool board that generates some sample signals that are very useful to get started and learn about how to use a logic analyzer In this chapter you will learn how to take a closer look at them using LabTool and at the same time get a quickstart tour on how to work with LabTool The guide in this chapter is a quick scratch on the surface to get you started More complete and detailed information is
14. 10kHz States 256 Figure 45 Add Signals in Analog Signal Generation One window for each active analog output will appear in the Analog Signal Generator window It is possible to name the outputs and control which type of signal to generate sine square or triangle waveform frequency and amplitude See picture below for examples File Devices Options Help LabTool Device o E Je Generator Add Figure 46 Analog Signal Generation Settings Copyright 2013 Embedded Artists AB LabTool User s Guide 5 Calibration of Hardware This chapter describes how to calibrate the analog hardware There are two types of calibration needed The first is to establish accurate voltage levels on the analog inputs and outputs The calibration information is stored in an E2PROM on the LabTool board the interface board meaning that the calibration information will follow the board A reasonably accurate multimeter is needed for performing this calibration and the accuracy of the multimeter determines how accurate the calibration gets A standard multimeter 3 5 digits 4000 counts gives enough accuracy Note that there is no temperature compensation in the system If working in a very different temperature than the calibration was performed a new calibration should be done The PC GUI will tell the user if calibration information is not found in the E2PROM memory when
15. 6 below Sampling begins immediately and continues until a trigger event occurs After that the buffer will be post filled according to setting see Figure 34 before the capture is complete and transferred to the PC File Devices Capture Options Help LabTool Device sarie rate Gomz gt om C Addsigal Capture 4 4us 600 ns T5 5 us 10 6 us Tl DO Digitalo x Di Digital 1 E Xx D2 Digital2 Figure 36 From Left to Right Play Start Capture Continuous Capture and Stop Capture Buttons Continuous sampling repeated capture can be enabled by pressing the Infinity button to the right of the Play Capture button In this mode a new capture is started as soon as the last one has completed Press the Stop Capture button to end it The built in simulator can also be used to generate signals to be captured Just select the capture device to be Simulator see Figure 24 for details When pressing the Play Capture button a dialog like shown on Figure 37 will appear It is possible to select the type of digital and analog data to be generated Press the OK button to finally generate the data Simulator Settings SDA Dats Bit rate 100000 Address 7 bit Figure 37 Simulator Settings Copyright 2013 Embedded Artists AB LabTool User s Guide 4 3 1 Export Data It is possible to export captured data Select Export Data in the Capture menu The generated file will be in the common CS
16. 6 m 3 Cou Oro 22 Boe Foro 4 01 4 seem Designed by imbedded Artists AB in cl cse t operot ion Qum j C a o ie Oo Oo o o o g Labloo ad4 ori r v A Embedded Artists AB 2013 www Embeddedfr tists com S79 7O76 4084 LI LII I LR S IZ Ll ILII s sececseo Figure 5 Signal Legends on Bottom Side of PCB Copyright 2013 Embedded Artists AB LabTool User s Guide 2 2 Basic Usage The next step is installing the Lab Tool application as described in section 3 2 The LabTool application can be found on the start menu see Figure 6 or on the desktop if that option was selected during installation di Dialog Semiconductor J Digilent Documents Pictures Ji LogicPort Music LPCXpresso v4 0 5 123 n Maintenance Microsoft Visual Studio 2010 Express Mational Instruments n Notepad di Qt by Digia v4 8 4 MinGW OpenSource di Qt by Nokia w4 7 4 MinGW OpenSource di Qt Creator di Red Suite 3 v3 3 ele E LLE Roxio Creator DE di Startup Help and Support Games Computer Control Panel Devices and Printers 4 Back Jz pe m m MC Search programs and files J Shut down Figure 6 LabTool Application in Start Menu When the application has started the default screen opens up as illustrated in Figure 7 below This window contains a number of areas that are explained below The left area has a list of the active signals In the middle are
17. B cable into LPC Link 2 and connect it to the PC As a first step make sure the USB port on the PC is not an USB3 port Copyright 2013 Embedded Artists AB LabTool User s Guide 3 Start the Device Manager and verify that an LpcDevice group with an LPC based USB device exist 4 Startthe LabTool application from the start menu 9 Watch the Device Manager and notice that the LPC based USB device disappears and a LabTool node appears instead under the LpcDevice group When reporting a problem always include the following information e Operating system version 32 64 bit language version etc e USB port type on the PC USB3 or USB2 port e Result of the verification steps above and possible discrepancies Copyright 2013 Embedded Artists AB
18. Interpret Data with Analyzers Now that the project has been loaded and data has been captured it is time to take a closer look at the different signals and how to interpret the data with the help of analyzers 2 3 1 UART The LPC812 outputs an asynchronous UART signal at 115 2kbps 8N1 8 databits no parity one stopbit on the UART TXD pin which is connected to the DIO 0 The message that is sent every second is REX LaDTOOl tempi xx dec C where xx x is the temperature read from the LM75 temperature sensor mounted on the LabTool board The default sample rate in the demo is 10MHz which is too high to be able to see the entire signal see Figure 11 below El LabTool C Program Files Embedded Artists LabTool demo prj File Devices Capture Options Help LabTool Device Sample Rate k c NH G Q oo AddSignal 3143 Us T 14 3us 514 3 us T314 3us 114 3 Us There are many ways to capture more of the signal 1 Lower the sample rate to e g 2MHz This will allow samples to be taken during the entire 3ms duration of the UART message 2 Move the trigger from signal D1 I2C SDA default to DOU UART TXD 3 Remove all unwanted signals This will allow the DO signal to use more memory which results in more samples 4 Change the post fill settings in Trigger Settings on the Capture menu By increasing post fill from the default 50 to e g 80 more of the data after the trigger will be saved Copyri
19. LabTool User s Guide Copyright 2013 Embedded Artists AB LabTool User s Guide Embedded Artists EA2 UN 1301 Rev A LabTool User s Guide Page 2 Embedded Artists AB Davidshallsgatan 16 SE 211 45 Malmo Sweden info EmbeddedArtists com http www EmbeddedArtists com Copyright 2013 Embedded Artists AB All rights reserved No part of this publication may be reproduced transmitted transcribed stored in a retrieval system or translated into any language or computer language in any form or by any means electronic mechanical magnetic optical chemical manual or otherwise without the prior written permission of Embedded Artists AB Disclaimer Embedded Artists AB makes no representation or warranties with respect to the contents hereof and specifically disclaims any implied warranties or merchantability or fitness for any particular purpose Information in this publication is subject to change without notice and does not represent a commitment on the part of Embedded Artists AB Feedback We appreciate any feedback you may have for improvements on this document Please send your comments to support EmbeddedArtists com Trademarks InfraBed and ESIC are trademarks of Embedded Artists AB All other brand and product names mentioned herein are trademarks services marks registered trademarks or registered service marks of their respective owners and should be treated as such Copyright 2013
20. V format that can for example be imported into Excel for further processing analysis There are some options on how to format the CSV data see picture below La oTool CAL s Start Continuous Stop Trigger settings DO Digitalo Calibrate Hardware Di Digitali NX I I SCL DO SDA D1 I i I I I I I I l I I I I l I I I I I I I I I I I I I l I I I I I I I I l I I I l I l I I I l I I I I I I A Cursors T E Figure 38 Export Captured Data Copyright 2013 Embedded Artists AB Capture J Options Help a fol Sample column Sample time One row per sample Ci 1 5 ms Ci 3 ms Cx ch C1 C2 f 666 667 Hz Ci C2 t 1 5ms C3 C4 f C3 C4 t Digital Measurements Period Frequency Width Duty Cyde Analog Measurements AQ Al A0 A1 Pk Pk Pk Pk1 LabTool User s Guide Page 34 4 4 Analyzing Captured Data When captured data is displayed in the middle area it is possible to adjust the time scale via buttons on the toolbar or using the scroll wheel on a mouse There are three buttons to the right of the Play Capture and Stop buttons These are from left to right zoom in zoom out and zoom to display all captured data Horizontal scrolling moving back and forth in time is done by left clicking any signal in the middle area where the captured samples are displayed and dragging to th
21. a the captured signals are displayed Between the left and middle areas there is a small area for trigger settings In the right area the sampled captured signals are displayed At the bottom the cursors are shown and can be manipulated At the below the menus is a toolbar where different settings are controlled like sample rate play capture and time scale adjustment Copyright 2013 Embedded Artists AB LabTool User s Guide Play Capture Time scale Add Sampled Captured amp Stop control signals signals Active Trigger Cursor control Measurements partly signals settings area controlled by cursor positions Figure 7 LabTool Application Default Screen A demo project has been installed together with the LabTool application Select Open in the File menu and point to the demo prj file which is located in the same folder as LabTool typically c Program Files Embedded Artists Lab Tool When the project has loaded the first thing to do is to create a new copy of it so that the original is not modified if you want to run this demo again Select Save As from the File menu as shown in Figure 8 Copyright 2013 Embedded Artists AB LabTool User s Guide lI abtool CAUser Devices Capture Option New Ctrl N amp 5 MHz Open CiO f Save Ctri S Pus Exit 2Vidv Es 2 DC P AC Figure 8 Save Project Settings File Capture Generator
22. ative to the trigger point are presented The time difference between cursor 1 and 2 is presented in seconds and in frequency The same is done for cursor 3 and 4 Figure 40 below illustrates how cursor 1 and 2 are used to measure the frequency of signal Analog 1 As seen the time difference is 1 ms which corresponds to 1000 Hz File Devices Capture Options Help LabTool Device SampleRate 2Mdz gt CO E Q Q Q Addsignal Capture Generator 813 us 313 us 187 us i E 1 Cursor Measurements 1 047 ms x 2 047 ms a ee ee LRA A 49 l 4 282 ms Cursor Measurements 1 047 ms 2 047 ms 4 282 ms C1 C2 f 1KHz Ci C2 t 1ms m e ty Measurements partly controlled oy cursor positions Inactive cursor single click on triangle symbol Cursor not in to activate cursor i time window It i can be found to the right Click on cursor to move to cursor position Horizontal areas to fetch cursor C1 C4 C1 is upper line C4 is bottom line Figure 40 Cursor Measurement A cursor is turned on off by single clicking on the triangle representing the cursor See picture above If a cursor is not shown in the current time window there is an arrow symbol pointing to its location either to the left or right Click on the out of page cursor and the time window will move to the cursor To move an out of page cursor to the current time window just left click in the cursor con
23. c analyzer and or oscilloscope Itis by far the most common use case and gives a nice introduction to the user interface The other use cases are also presented at the end of the chapter There are three steps to follow for successful usage of LabTool as a logic analyzer oscilloscope 1 Prepare the measurement First the signals to measure must be decided how to trigger that data capture and at what sample rate a Sometimes the signals have very well known characteristics and it is easy to set the sample rate However sometimes the signals are more unknown and then it is a good start to get familiar with the signal Set a high sample rate and just take a forced trigger snapshot of the signal Review the snapshot and adjust sample rate if necessary Setting sample rate is always a trade off between level of details in the signals and length of capture LabTool has a 64 kByte of memory for storing samples The more signals to capture the shorter the capture length will be See section 7 3 for more details about how the sample memory is divided b Sometimes the trigger condition can be difficult to define LabTool can trigger on any digital signal having a rising or falling edge If several signals have been selected there is a logical OR condition between the trigger conditions Anyone occurs and there will be a trigger to start capture data Sometimes the trigger condition is after the time period of interest In that case pre fill should be s
24. d down since the analyzers will be activated every time the captured data is updated The dialogs in the analyzers are self explaining except possible the Synchronize option If nothing is selected the analyzer starts analyzing the captured data from the beginning Often this is ok but can be a problem in back to back asynchronous UART communication Then it can be difficult to detect where that actual start bits are Sometimes the analyzers get into the correct synchronization after a few failed attempts in the beginning of the captured data Besides starting from the beginning of the captured data it is also possible to select the triggering point or any of the active cursors as the start point for the analyzers This is what the drop down list for Synchronize is used for SPI Analyzer SCK Clock MOSI D1 Digital 1 MISO D2 Digital 2 Enable Chip Select D3 Digital 3 Data format Mode Mode 0 CPOL 0 CPHA 0 cock Sc Sata GOA eme 0000 Figure 28 Add I2C Analyzer Dialog Copyright 2013 Embedded Artists AB LabTool User s Guide UART Analyzer Figure 29 Add UART Analyzer Dialog The configuration of an analyzer can be changed after it has been added see Figure 30 below It is also possible to delete an analyzer as well as signals by pressing the X symbol in the upper right corner Wo LIL o LJ D9 Digital 9 D10 Digital i0 T SPI SPIO m m Reconfigure Dc pco Analyzer SCL DO
25. d signals are displayed Between the left and middle areas there is a small area for trigger settings In the right area the sampled captured signals are displayed At the bottom the cursors are shown and can be manipulated At the below the menus is a toolbar where different settings are controlled like sample rate play capture and time scale adjustment Copyright 2013 Embedded Artists AB LabTool User s Guide Selected Time scale Add Sampled Captured device control signals signals ma Active Trigger Cursor control Measurements partly signals settings area controlled by cursor positions Figure 23 LabTool Application Default Screen The capture device is selected in the Devices menu When a LabTool device is connected it will show up in the list of selectable devices The Simulator can always be selected The status area see marked area in Figure 24 will indicate which capture device is currently selected The status text will turn red if the connection to the selected device is lost Copyright 2013 Embedded Artists AB LabTool User s Guide Status area Figure 24 Set Capture Device It is possible to select between two different color schemes light or dark as illustrated in Figure 25 below aceite LabTool Device Sample Rat Light Dark Capture Generator 1 ms s 1ms5 2 ms Figure 25 Set Color Scheme 4 2 Setup Prepare for Measurement Before starti
26. dded step by step guide to get started Added description about cursor functionality 2013 10 14 Updated for rev A of hardware Added more detailed calibration procedure General update of document Copyright 2013 Embedded Artists AB LabTool User s Guide 1 LabTool Introduction LabTool has been designed to be your best friend on the lab bench It is a combination of many instruments packed into a compact unit that fits into your palm e 11 channel logic analyzer e 2channel oscilloscope e 11 channel digital signal generator e 2 channel analog signal generator Details about the performance sampling rate resolution voltage ranges etc of the LabTool instrument are found in the datasheet on the product page The hardware is built around the LPC4370 microcontroller which is found on the LPC Link 2 board The hardware is the combination of an interface board and the LPC Link 2 board that is mounted on this interface board see picture below LPC Link 2 board Complete LabTool EHE Re oO es os ce amp Figure 1 LabTool Board Structure The user interface for LabTool is software running on a PC Communication between the hardware and the pc take place over a Hi Speed 480 Mbps USB2 0 link The user interface is feature rich and supports the user in configuration of the system and presenting the captured signals Below are some screen shots of the user interface just to give an idea about how it looks
27. e different values on both analog outputs For each of the values use a multimeter and measure the output voltage Enter the values you have found in the corresponding text fields below Click on Mext Value button to switch among the three different voltage levels Nothing outputted yet Press Next Value to start Settings for AD Settings for A1 Low level about 2 75V Low level about 2 75V Middle level about OV Middle level about OV High level about 2 75V High level about 2 75V Click to circulate the different voltages Figure 49 Calibrate Wizard Step 2 Copyright 2013 Embedded Artists AB LabTool User s Guide Next connect the analog inputs to the previously calibrated analog outputs and the click the ReCalibrate button Calibration Wizard Calibration of Analog Inputs This step will calibrate the analog inputs Please connect the AO input connector 74 26 to the A_OUTO output connector 14 20 and the A1 input connector 74 24 to the A OUT1 output connector J4 18 No calibration data yet Click ReCalibrate to continue Figure 50 Calibrate Wizard Step 3 The correction values computed in the calibration process are stored in an E2PROM on the LabTool board Copyright 2013 Embedded Artists AB LabTool User s Guide Page 43 5 2 Analog Input Stage Calibration There are four trimming capacitors on the LabTool board two for each a
28. e left or right The trigger point is displayed with a vertical red line with the letter T below it The signals can be rearranged if needed Sometimes it can be simpler to visually interpret and compare signals that are adjacent to each other Left click on the signal and drag it vertically to a new position The new position will be displayed with an empty dotted rectangle as illustrated in Figure 39 below File Devices Capture Options Help Simulator Sample Rate 100MHz gt CO E Q Q Q Addsignal Capture 51 us 49 us 149 us 245 us 349 us 45 us Cursor Me a SEM ME ve A Ny CR x DO Digitalo C3 C1 C2 f Ox00 M ci c2 t C3 C4 f C3 C4 t Digital Me Period Frequency Width x D2 Digital2 Duty C yde Figure 39 Vertical Move of Digital Signal Analog signals can also be moved vertically within the grid area by left clicking on them and dragging them to a new vertical position Place the cursor on the drawn signal voltage information before left Clicking Interpreters can be very helpful in analyzing captured digital signals An interpreter can be added even after a capture Is done Copyright 2013 Embedded Artists AB LabTool User s Guide 4 4 1 Using Cursors There are four cursors to help interpreting the captured data Some measurements displayed in the right most area uses the cursor positions as input All four cursor positions in time rel
29. eneration the pins are outputs and when using the logic analyzer functionality the pins are inputs To activate digital signal generation select the Generator tab see below The press Add button in order to add the signals that shall be generated Select the signals to add via the checkboxes and press OK Digital signals DO Di D2 D3 D4 D5 D6 D7 D8 D9 D10 I 7 9 E 9 E P 1 E P E Lox cancel Figure 42 Add Signals in Digital Signal Generation Next set the number of states the signal generation shall have and the frequency that these states shall be updated with There is help functions to generate the states for each signal Double click on a signal to open a dialog where it is possible to set several states with a simple wizard It is possible to generate a constant level high low between specified states and to generate a clock signal with specified duty cycle File Devices Options Help LabTod Device gt O E MNs Capture Generator Diaital Sianal Generatc CE cR III e 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 25 26 77 ololololol olololololalala eajlejojojojojoj ojoj o oj o qn a jejojojoj ojoj o o o oj o a v Analog Signal Generator Add Figure 43 Edit Digital Signal Settings To sta
30. et as high as possible meaning that most of the captured data is before the triggering point Sometimes the trigger condition is before the time period of interest In that case post fill should be set as high as possible meaning that most of the captured data is after the triggering point c Defining the triggering condition can be difficult Of a microcontroller is involved it is sometimes possible to let software detect the time period that is of interest for example an error condition A GPIO can be manipulated by the microcontroller and this signal can serve as a triggering condition with suitable pre post fill settings 2 Capture data The next step is to capture the actual data The system that is analyzed should be activated and LabTool shall be started with either a single capture or a continuous capture a Itis not uncommon that several captures have to be taken before a suitable section of the signals has been captured b Continuous capture is effective for events that do not occur very often in time not more than once per second The demo signals for example repeat themselves once every second It is possibly to manually analyze such captures on the fly c Continuous capture can sometimes also be effective if there is an error in the system that makes it freeze or stop working properly The triggering event stops occurring Then it is possible to have the capture of the last events that occurred before the error 3
31. ght 2013 Embedded Artists AB LabTool User s Guide Page 15 2 3 2 SPI The LPC812 has an SPI channel where it communicates with an SPI E2PROM 4 signals are used SCK the clock signal MOSI the data signal from master to slave LPC812 to E2PROM MISO the data signal from slave to master E2PROM to LPC812 and SSEL the chip select signal active low 5 Zoom in and measure the clock frequency It should be 1 MHz Depending on selected sample rate the time resolution might give another value and it can vary slightly between clock cycles The higher the sample rate the better resolution and the less jitter in measurements Hover the cursor over the captured clock signal and read the measurement in the Digital Measurements area see 4 4 2 on page 36 for more details 6 Itis possible to change settings of an interpreter reconfigure analyzer by clicking on the settings icon see Figure 30 for details where to find it Experiment with different representation of the data values Hex is selected in the preloaded project There are also Decimal and Ascii representation T Observe that the SSEL signal goes low in three different periods These are The clock signal is high between byte transfers within an active transfer SSEL low but goes low in between transfer blocks when SSEL goes high Also note that the bytes are not transferred back to back There is a delay between each byte transfer Get acquainted with the cursors to
32. ifies how much of the capture buffer should be used after a trigger has been found Example If the sample buffer can hold 1000 samples and the post fill percentage is set to 30 then after a trigger the sampling will continue for an additional 300 samples before the data is sent to the PC l l I I I I l l l I I l l l I I l l l l l 0 A maximum time limit can be set to avoid the long delays that might occur for low sample rates Example Assuming the same settings as in the example above with a sample rate of 50Hz that will result in a 15 second delay before the result is sent By setting the post fill time limit to 1000ms the hardware will only take an additional 20 instead of 300 samples after the trigger and return one second after the trigger Time limit ms Figure 34 Capture Buffer and Trigger Settings Post Fill 95 50 1000 Copyright 2013 Embedded Artists AB LabTool User s Guide 4 2 1 Project Settings It is possible to save a setup of signals and interpreters Select Save As in the File menu to store a new setup It is also possible to create new projects open existing and save changes to the current project See picture below HExzc C ON a DC iP AC Eee Se Figure 35 Save Project Settings Copyright 2013 Embedded Artists AB LabTool User s Guide Page 32 4 3 Capturing Starting a capture is very simple Just press the Play Capture button as illustrated in Figure 3
33. l connectors on LabTool USB cable to PC is connected here 12 demos signals legend on bottom side silk screen Debug interface for demo signal processor LPC812 Debug interface from LPC Link 2 can connect to target microcontroller y oS LM m LED2R92 ene Calibration signal for analog inputs upper 1 25V signal JH g mid 78mV signal mu fcm lower GND mE mi rr 26 cables for Digital 2366 20 D I O and Analog I O TEE Analog inputs via BNC connectors LPC4370 J2 SWD JTAG JP2 closed buffers pwr by Link 2 JP2 open buffers pwr by Target JP1 closed Boot SPIFI JP1 open Boot USB DFU T LPCXpresso LPC Link 2 z ng EE et m Figure 3 LabTool Connectors and Interfaces The 26 pos IDC connector carries the following signals Pin Cable Description of Demo Signal Color cel D IO VCC Brown Can connect to external logic level reference 2 4 5 5V If left unconnected the digital I O voltage reference will be 3 3V DIO 10 Digital I O 7 DIOS While Digital I O Copyright 2013 Embedded Artists AB LabTool User s Guide DIO 8 Digital I O DIO_7 Digital I O DIO 5 Digital I O Yellow Digital I O Orange Digital I O DIO 1 Digital I O DO W amp DRO 98 Wi Gom o 96 We Cond ND GND AOUT 0 Analog output 0 ANI Red Analog Oscilloscope input 1 AIN 0 Analog Oscilloscope input 0 The
34. measure time periods Read about how the cursors work and are controlled manipulated in section 4 4 1 on page 35 2 39 8 2C The LPC812 has an I2C channel where it communicates with a temperature sensor LM75 2 signals are used SCL the clock signal and SDA the bidirectional data signal 8 Zoom in and measure the clock frequency It is in the region of 260 kHz 9 Study the I2C analyzer output and determine the I2C address of the temperature sensor The Il2C communication takes place in two transfers Decode what is happening with the help of the LM75 datasheet 2 3 4 Counters The LPC812 outputs a 2 MHz clock to a 4 bit binary ripple counter All four signals are available with frequency 1 2 1 4 1 8 1 16 of the input frequency 3 of them are connected to digital inputs and the lowest frequency signal is connected to analog input 0 10 Measure the three frequencies Test to trigger on the lowest frequency signal Test to trigger on the highest frequency signal Which one is best for stable reasing 2 39 5 Analog As presented above the lowest frequency signal from the ripple counter is connected to the analog input 0 11 Zoom in and out and determine the frequency of the digital signal 12 Verify that the amplitude of the signal seems correct It is a 3 3V logic signal Test to change volts div setting 13 Test AC coupling of the signal and observe how the signal varies around ground level now 14 Select contin
35. n capturing both A0 and Al Figure 54 Warning Dialog Failed You have hit one of the current limitations of this version of the software The limitation when sampling both analog and digital signals is Sample rate cannot be higher than 20MHBz The limitations when sampling only digital signals without triggers are Max 50MHz sample rate when capturing DO to D7 Max 20MHz sample rate when capturing DO to D10 The limitations when sampling only digital signals with triggers are Max 8OMHz sample rate when capturing DO to D3 Max 40MHz sample rate when capturing DO to D7 Max ZOMHz sample rate when capturing DO to D10 Figure 55 Warning Dialog To get around the limitation remove some of the sampled signals or reduce the sample rate Copyright 2013 Embedded Artists AB LabTool User s Guide Page 46 7 Troubleshooting Things to Know This chapter contains some troubleshooting information and other good to know things 7 1 LPC Link 2 board is getting hot The LPC4370 chip is a small BGA100 package and when running at full speed the temperature increase is about 35 degrees Celsius on the chip This can seem relatively hot but is within acceptable limits Remember not to keep the board in a small closed space because then the temperature can increase further 7 2 A10 MHz input signal looks distorted This is actually exactly what to expect The bandwidth of the analog inputs is in the region of 3 12 MHz
36. nalog signal see Figure 51 These are used to calibrate the analog input stages RY i t The goal is to get an accurate impedance matching in the input stage Without calibration a sampled Square wave might look like one of the two top signals in Figure 52 The upper trace is under compensated The middle trace is over compensated and the lower trace is correctly compensated This is how it shall look like after correct calibration mnm TP D D UD E E Copyright 2013 Embedded Artists AB LabTool User s Guide Page 44 Note The trimming capacitors are endless Turn it 360 degrees and it will have the same value as it started in This means that there is never any point in turning it forever Note It is important to use a screwdriver which is of a non conducting material like plastic or ceramic otherwise the screwdriver itself will affect the calibration A metal screwdriver will not work Figure 3 illustrates where the calibration signals are found on the LabTool board To calibrate do the following steps 1 Connect AIN 0 to the 1 25V calibration pin Setup the LabTool application to only sample AO 1MHz 0 5V div AC trigger on falling edge and then start continuous sampling EJ LabTool C Program Files Embedded Artists LabTool calib prj File Devices Capture Options Help LabTool Device Sample Rate FON Q Q Q Add signal AQ Analog 0 O 5Vidiv mE CLC2 f 5 pc amp AC i C1 C2
37. ng to capture signals the planned measurement needs to be setup First the needed signals shall be selected In the toolbar below the menus there is an Add Signal button see Figure 23 It is also possible to add an analyzer of digital signals via this dialog like 12C SPI and UART Tick the boxes for the signals to add It is also possible to select add an analyzer If more analyzers are needed press the Add Signal button again Add Signal or Analyzer Digital signals DO D1 D2 D3 D4 DS D6 D7 D8 D9 D10 AHA ET E 8T EE IET ET LET AQ Al Ae Po Figure 26 Add Signal Dialog Due to hardware design in side LabTool select the lower numbered digital inputs first If only a few signals are needed start using from DO and up to the needed number of signals The lower the number of signals used the higher the sample rate can be Copyright 2013 Embedded Artists AB LabTool User s Guide Page 27 If an analyzer is selected a new configuration dialog will appear after the OK button is pressed There information about which captured signals to analyze and other important parameters to carry out the analysis can be filled in The dialogs are shown below in Figure 27 Figure 28 and Figure 29 Any digital signal can be input to the analyzers just select from the drop down lists An analyzer can be added before or after a capture If active during capture for example during continuous capture then the screen update will be slowe
38. on and or Quick Launch icon not available in all versions of Windows of the application Press Next button Setup is now ready to begin installing LabTool on your computer Click Install to continue with the installation or cick Back if you want to review or change any settings Destination location C Program Files Embedded Artists LabTool Figure 18 Fourth Dialog of Installation Copyright 2013 Embedded Artists AB LabTool User s Guide Press Install button and wait while files are installed on the computer Installing Please wait while Setup installs LabTool on your computer Extracting files C LabTool drivers LabTool_drivers_v1 00 a64 winusbcoinstaller dll X O 9 h Figure 19 Fifth Dialog of Installation The USB drivers that are installed have been signed and will likely be installed in the background However on some versions of Windows two dialogs one for each driver may be shown asking for permission to be installed Permission must be granted otherwise LabTool will not work c Windows Security r a pes P1 Would you like to install this device software Name WAP Universal Serial Bus devices cM Publisher NXP Semiconductors USA Inc P Always trust software from NXP Semiconductors Don t Install USA Inc F You should only install driver software from publishers you trust How can I decide which device software is safe to install
39. presented in other chapters 2 1 Prepare the Hardware Start by following the preparation steps in section 3 1 preparing hardware if needed and then connect the DIO x AIN 0 inputs to the demo signals according to this table Cable Demo Signal Description of Demo Signal color see legend in silkscreen on bottom of pcb ull UART TXD Asynchronous UART signal transmitting a string at 115 2kbps 8N1 8 databits no parity one stopbit iu Brown l2C SDA I2C data signal for communicating with a temperature sensor LM75 DIO 2 I2C SCL I2C clock signal 250kHz for communicating with a temperature sensor LM75 DIO 3 Orange SPI SSEL SPI device select signal for communicating with an SPI E2PROM 25LC040 DIO 4 Yellow SPI MOSI SPI slave output signal for communicating with an SPI E2PROM 25LC040 DIO 5 Green SPI MISO SPI master output signal for communicating with an SPI E2PROM 25LC040 Blue SPI SCK Clock signal 2 1 MHz for communicating with an SPI E2PROM 25LC040 AE WM NM INNEN O PWM signal 24kHz that drives the green LED Copyright 2013 Embedded Artists AB LabTool User s Guide Te Sa E 000000000 dE ra menm n S uia TE doni ce i fu NIU ANI Figure 4 All Demo Signals Connected Legend for the 26 pos cables Demo signal for Digital I O and Analog I O legends 3 E 229 cod ow 4 EX Ex T 2 ve oo 4 w cue u EI E Na 1 01 i 1 Gro IX Lx 76 O orv x ow 2 12
40. rt a one shot generation of the signal press the Play button To start an infinite loop of signal generation the last state is followed by the first state press the Repeat Play button Copyright 2013 Embedded Artists AB LabTool User s Guide It is possible to generate very complex patterns The picture below illustrates 11 signals generated with 154 states at 50MHz that are captured by another logic analyzer capturing at 200MHz arr gaara eee _ eEeee Bl Intronix LogicPort Logic Analyzer C Program Files x86 LogicPort Projects logosc_dio_only LPF AL File Options Setup Acquisition View Help S A im x gt a T B os le safe l Ol ey E o Esther Fc sitcoms jee Sample Rate v 200MHz v Logic Threshold mij 1 40 Pre Trigger Buffer Y 50 Measurement D Source w D11 4 4 4 4 Wm o m m Signal Wire Wire Pattern Edge Cursor 1 5us Jus 500ns T 1 465us 500ns lus Hna ID Staus A A A PEAK Values on DIO 7FFh Value on DIO 0 1 Value on DIO 1 Value on DIO 2 Value on DIO 3 Value on DIO 4 Value on DIO 5 Value on DIO 6 Value on DIO 7 Value on DIO 8 Value on DIO 3 Value on DIO CLK ie pe e ue ae d ae re ael Lr X X X x x x x x xxx r Lu bu m LabTool C Users test Desktop labtool_gen_anders pr Ele Devices Options Help
41. talo L J sage TIUS Xx ei D1 Digital 1 T Rising edge trigger x D Digital 2 No trigger selected x D3 Digital3 Figure 32 Digital Signal Triggers Copyright 2013 Embedded Artists AB LabTool User s Guide It is possible to set an analog trigger rising or falling edge The trigger level is drawn in the GUI and can be dragged to wanted position Only one analog channel can have a trigger active at a time embed lded Artis sEsNLabToo File LabTool Device Sample Rate gt ON QQ G Addsignal Line showing trigger level Devices Capture Options Help 1 194 ms 194 us AQ Analog 0 Slider for selecting trigger level Trigger level in Volts Figure 33 Analog Signal Trigger Sex Cursor Measurements Cl i 5ms C2 3ms C Ca C1 C2 f 666 667 Hz C1 C2 t 1 5 ms C3 C4 f C3 C4 t Digital Measurements Period Frequency Width Duty Cyde Analog Measurements AQ Al A0 A1 Pk PkO Pk Pk1 If an analog trigger is selected all digital trigger settings will be erased and vice versa Finally there are two settings that are related to the capture buffer It is basically how much data to capture before and after the trigger event i e pre and post fill levels It is also possible to set a post fill level time limit that is useful for very low sample rates since the capture buffer size is quite big Trigger Settings Spec
42. the system starts up A calibration is then suggested to the user The second calibration is to set correct impedance matching in the analog inputs This is a manual operation involving four trimming capacitors Since the trimming potentiometers are mounted on the board the calibration follows the board also in this case 5 1 DC Level Calibration Select Calibrate Hardware in the Capture menu A wizard will guide you through the different steps needed to calibrate the hardware t estpnnpLia Devices Capture Options Help File LabTool Device Start co E Q Q GG Addsignal Capture Ger Continuaus Stop us 264 9 us 214 9 us 164 9 us Trigger settings AD Analog 0 2 V div Calibrate Hardware Export Data amp oc Ac Figure 47 Calibrate Hardware A reasonably accurate bench multimeter is needed to perform the calibration Copyright 2013 Embedded Artists AB LabTool User s Guide s Calibration Wizard Introduction This wizard will quide you through the steps of calibrating the LabTool hardware You will need a multimeter for this Figure 48 Calibrate Wizard Step 1 oix voltages shall be measured on the multimeter and written in the wizard The voltages are generated from the LabTool board Click on NextValue button to circulate between the three different voltage levels e Calibration Wizard Calibration of Analog Outputs This step will output thre
43. trol area and drag the cursor slightly along the horizontal axis Copyright 2013 Embedded Artists AB LabTool User s Guide Page 36 4 4 2 Digital Measurements For digital signals it is possible to just hover the mouse over an area of interest and the Digital Measurements will immediately show period frequency width high time and duty cycle information See picture below for an example C1 C2 f 1000 Hz C1 C2 t 1ms C3 C4 f C3 C4 t Digital Measurements Period 3 85 us Frequency 259 74 KHz Width 1 925 us Duty Cyde 50 95 Hover with mouse pointer over signal section of interest A1 IAO0 A1 Pk Pk0 Pk Pk1 gt Figure 41 Digital Measurements 4 4 3 Analog Measurements oimilarly there are analog measurements that are calculated and displayed as soon as the mouse is over the active area for the analog signals The absolute value of the analog signals at the mouse point represented by a small square is presented along with the peak to peak value for each channel The Absolute difference between the two channels at the mouse point is also presented Copyright 2013 Embedded Artists AB LabTool User s Guide 4 5 Digital Signal Generation It is possible to generate up to 11 parallel digital signals Note that it is not possible to use the digital signal generation and logic analyzer functionality simultaneous They share the same pins When using the digital signal g
44. uous sampling and change triggering to the analog signal Adjust triggering level and verify what happens if outside of the signal range Also verify that the digital signals just randomly flash by now The only way to get the back into the area of interest is to trigger on UART SPI or 12C communication signals Copyright 2013 Embedded Artists AB LabTool User s Guide 2 3 6 PWM The last demo signal created by the LPC812 is a PWM signal It controls a green LED on the board 15 Measure the PWM frequency It is about 24 kHz Note that the sample frequency must be high to keep stable triggering is the end points PWM signal almost always high or almost always low Trigger on this signal Copyright 2013 Embedded Artists AB LabTool User s Guide 3 Installation This chapter describes the steps needed to prepare the hardware and install the PC application 3 1 Prepare Hardware In most cases the hardware is already prepared looking like the picture below LabTool can be bought assembled like this In addition to this two cables are needed e 26 pos cable for external signals This cable is included when buying LabTool e USB cable mini B to A Note that this cable is not included when buying LabTool Verify that no jumpers are inserted on the LPC Link 2 board These jumpers can possible be inserted on the bottom side of the LabTool interface board in the middle hole i es y f wv Lt u ius de

Download Pdf Manuals

image

Related Search

Related Contents

別記様式  Manual de instruções  Virus Test Kit (HIV, HTLV,HCV, HBV, ParvoB19)  Team Orion ORI14043 rechargeable battery  Project Tracking 2013 - Encore Business Solutions Inc.  Philips VideoShell DLA91001H  DLW ドルフィンワゴン    Banque d` Banque d`activités en ergothérapie rgothérapie rgothérapie  INSTALLATIONSANLEITUNG  

Copyright © All rights reserved.
Failed to retrieve file