Home

Logic Analyzer User Manual

image

Contents

1. 01 0in0 oO Woy ya 187 Please visit our Website www embedtools com Chapter 12 Tips on using plug ins Figure 12 1 An example result after using the SSI Bus Analysis Plug in Now user is going to delete the OUT result signal only Keeping the original signal as Figure 12 2 shows r 1 40000mE 1 60000ms i 1 0ti n Figure 12 2 The original signal The steps to achieve this are listed as below The following is an example on how to deactivate the SSI Bus analysis Plug in 1 Select the Tool gt Plug in manager in the menu bar to bring up the plug in manager there is a tick in front of SSI Bus analysis option indicating that this plug in are activated other deactivated plug ins have no ticks in front of them as Figure 12 3 shows Plug in Hanazer Version Manchester Codin 1 01 Modified Miler C 1 01 MODBUS Protocol 2 01 1 WIRE Bus Analysis 2 03 The ssl Bus lysis gt l 2 Analysts plug in Is activated O1 UART Bus Analysis j Description The 551 Bus analysis plug in can decode the acquired data based on 551 Bus specifications t allows user to decode the DA and Ds signal of the 551 Bus together or separately Figure 12 3 The SSI plug in are activated 2 Remove the tick in front of the SSI Bus analysis option then click button to confirm your settings as Figure 12 4 shows Back to the waveform viewer you can find that the result signal of
2. spa I oO 1 1 oO Oo fi a oii O 71 0 0 0 1010 fi O JOJi O71 1 0 0 jiji oO Figure 13 31 Result of zooming 4 Zooming the waveform horizontally Point zooming Also there are two ways for point zooming A general used way is Hold down the Ctrl key on the keyboard then the shape of cursor will change to a E then move it to the place you want to zooming left click to zoom in and right click to zoom out Another method is to select the zoom in or zoom out option within the right click dropdown menu Chapter 14 Supports amp guarantees 14 1 Frequently Asked Questions and answers 1 My computer only has the USB 1 1 interface can I use the LA2532 Sure you can the LA2532 are fully compatible to USB 1 1 and 2 0 interfaces You can use it on USB 1 1 interface computers But the transmission speed of USB 1 1 interface is much lower than USB 2 0 interface so transmission time should be longer 2 My computer supports USB 2 0 interface but why did the communication version displayed in the dialogue are USB1 1 If you computer supports USB2 0 interface but the communication dialogue displayed that it s using the USB1 1 interface it means that your USB2 0 host controller driver was not correctly installed If you re using Windows 2000 system please contact your mother board supplier to get the USB2 0 Host driver If you re using Windows XP please install the SP1 or later patches 3 Can I use LA2532 under a
3. Figure 4 4 Rename Mybus1 to XTAL Step3 Click the Sampling clip and keep the default settings as Figure 4 5 shows mee es ARTF E hiz SEE TREE ooo wi 6 Miz POD ACE LYCMOS 1 70 w FIBA ins POD BCE Lycos amo He D OEF Oi OF FIARE A 32K v V FEB C dre fie LI 32K X 10 O BSA REI tS TATE As Figure 4 5 Sampling frequency settings Step 4 Click the Trigger clips and select the Trigger immediately option as Figure 4 6 shows then click the button 26 Please visit our Website www embedtools com Chapter 4 Quick start tutorial See zi Me we be We RT fie Ae Fi RTEA E RTNH Bik HIAS SERN HERMEEN FIORE TEG RAA HET tie Se hay HEREN bie fani itt rd ad Figure 4 6 Trigger setup for frequency measurements Step 5 click the run button run once within the tool bar then the logic analyzer will display the waveform of the measuring signal as Figure 4 7 shows When you move the mouse cursor onto the waveforms the software will display a small notice about the signal as Figure 4 7 shows The logic analyzer software will give out an instant information notes about the signal segment where the cursor points As Figure 4 7 shows the high voltage level of XTAL signal where the cursor is pointing lasts 140ns zlgLogic 3 00 2 10 logic_demo zla THE FER RES SHA MEY BAG TAM Language HEH IPH Pr
4. LED 3 LED 4 Levis LED 6 s1 LED 7 i PPPA wewe i PAPA PRRP i APIP A AP eewewewe PAREPA AAP i eawe wewe revere wrert Figure 4 13 The shifting waveform of 74HC164 chip 30 Please visit our Website www embedtools com Chapter 4 Quick start tutorial 4 4 SPI transmission measurements Step 1 After measuring the output of the 74HC164 chip now is the time to measure its input and observe the relationship between input and output 74HC164 is a serial shifter chip and it s not a standard SPI chip for the convenience on observation the 74HC164 chip that driving the LED is controlled by the MCU through a SPI simulation interface The P2 5 port of P89LPC913 is output as the CLK Clock signal of SPI and the P2 3 is output as the DATO data output signal of SPI When the CLK signal has a rising edge the data transmitting on DATO will start The P0 6 port is the CS Chip Select signal for SPI output when this CS signal is low there are data transmissions on SPI Connect these CS CLK and DATO signals to the CH1 CH2 and CH3 of the PODA respectively Then select the Setup gt Bus Signal within the software menu to open the setup window add 3 new buses and named them with CS CLK and DATO as Figure 4 14 shows then click the OK button Bus Signal Sampling Trigger Fod Fod A 15 14 13 12 11 10 9 amp T amp 5 4 3 2 1 Jo 15 14 13 12 11 10 3
5. csseeeeeeeeeneeeeeeeeneneees 183 Contents Please visit our Website www embedtools com EMBER TARAR W T 020 22644972 Contents a 2909 4oupedghed 4escHanbreectronics CO LTD All rights reserved n 184 TANO E ON USAO eeri rE aceon oe EE nce E R 187 Chapter 12 Tips on using plug inS s ssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 187 TEF OVEN We E ecenne cet ined aceuaanesseesessstecaeaceaennes 187 12 2 Deactivate a plug i ccccccceecceecceeeceeceeeceeecaeeceeauecaeecseecaesagesaeeseessanseenes 187 12 3 Reactivate a plug in c ccccccceecceecceecceeceeesaeeccecueecuecaeecseseuesasesseeseeenenseeees 189 12 4 Using multiple plug ins in one project cece ceee cece eeeceeeceeeeeeeeeeseeeseeeaeees 190 Chapter 13 Special Functions ccccesssecsesseeeeseeseeneeseseesenseeseaes 191 13 1 Digital MNES caspase ninae E E E PTEE E AE 191 13 2 Loading a saved fil sic odendecccssadsciuadeadenadageenageccuaneadeclanausdioanessadsedandendeceiegenneces 192 dS Jere EOJ DEN arrra E A eee ee 196 la AOV NEET oa yates vtec vende oe ome oe eetene gated eaves aseaaeseseeesoe 197 13 5 Automatic upgrades ce cccecc cece cece eeeceeceeeea seca cece ees eeseeseeeseeeseeseeseeeseeeseesaeees 199 13 6 Automatic MEASUFEMENHS ccccceccc cece seca cece eese esse eeseeeeesseeeseeseueeeeseeeseeeeeees 202 13 7 Tips on using the logic analyzer cece ccc eecceeceeeee seca esse esse eeeeeea
6. a hs Boa G Ea ahs is Pet eh Bos Es hs he Es Eo chs hy Eo ahs he eke lg Phe che eh Eos ob he ete Eo che E3 G ols ote els etsy eis Eo etc ic che he che rhc etc E ots ols ote he ote rly etre etic E he etch ote che ety ols ote wis ots rly SE eis E E BAER otek ots EERE ot x Name MSPL_ InitQ Function Initialize the SPI interface and set it as a Host SC A SC C2 ECS ECS EI IE ECO IC EC EE ACSC EC EI EE CO IC ECE ESE EC Ao a oA a oo I oo void MSPI_Init void PINSELO PINSELO amp 0xFF lt lt 8 0x55 lt lt 8 SPCCR 0x52 Set the SPI frequency division SPCR 1 lt lt 3 CPHA 1 sample the data at the first edge of SCK clock signal 0 lt lt 4 CPOL 0 Active Low for SCK signal 1 lt lt 5 1 MSTR 1 SPI Host mode 0 lt lt 6 LSBF 0 Set bit order for SPI MSB is set to Bit7 0 lt lt 7 SPIE 0 SPI Disable the SPI interrupt Gah os hs Shh ahs hs ed eh ache hs hc ela E0 E G Eo ahs he eke ols Phe che eh E03 obs he ete Eo ES ES ety wis che be cts E E0 Eo etc EOS che che che rhc B ES eis wl ote hc ote rls ete che et Eos ote che ctrl ct che ety ots cts vis ots rly GE eis E E AE BES ets vic cts ic ot X Name MSPI_SendData Function Send data through SPI Bus Imported parameter data to be sent Exported parameter Return the read data KKK K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K
7. 11 3 2 Detailed descriptions 1 Select the Tool gt Plug in manager option in the menu bar to bring up the Plug in manager dialogue Then select the Modbus protocol analysis item and press the Setting button to bring up the Modbus protocol decoding setup dialogue 178 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Plug in Hanager Name Version A D Conversion A 1 01 CF Card Analysis 2 01 TIC Bus Analysis 2 03 Manchester Codin 1 01 Modified Miler C 1 01 MODBUS Protocol 2 01 1 WIRE Bus Analysis 2 03 LJ O Sl Card Analysis 2 01 z Descnption The Modbus Protocol Analysis plug in is aimed for the Modbus protocol implementations on senal data link layer The interface on physical layer can be set to RS232 RS4 2 or R5485 and the awalable transmission mode ts Figure 11 12 Plug in manager Modbus protocol analysis plug in 2 Add a RXD TXD signal configuration option Double click the blue button or to add a RXD or TXD signal configuration option as Figure 11 13 shows BEODBUS Protocol Decode Setup AsO Signal Group TD Signal Group Insert A Signal Source Signal Source Signal Result Name RAD Result Name TADI Location Before Signal Location Before Signal Hi I Color Color Figure 11 13 Add a RXD and TXD signal configuration option 3 Select the source signal and result name for each RXD TXD signal All single
8. Generate different data for tests data_buf i 1 0 Convert the number 0 9 to ASCII code while 1 Write 8 bytes with the start address 0x00 I2C_WriteNByte CAT24WC02 ONE_BYTE_SUBA 0x00 data_buf 8 DelayNS 80 Clear data buffer to prevent errors for 1 0 1 lt 8 i data_buf i 0 Read back the written data I2C_ReadNByte CAT24WC02 ONE_BYTE_SUBA 0x00 data_buf 8 Verify the read back data with the written data for 1 0 1 lt 8 1 if data_buf i G 0 while 1 Found error beep continuously IOOSET BEEP DelayNS 20 IOOCLR BEEP DelayNS 20 177 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Correct give out a single beep IOOCLR BEEP DelayNS 80 IOOSET BEEP return 0 9 5 3 Steps for data recording 1 Bus Signal Setup After connecting the hardware according the schematic download the program to LPC2131 When all these are done you can connect the probes of the LA logic analyzer to the I C clock signal SCL wire and data signal SDA wire In this experiment we connect the PodA_0O to the clock signal SCL of I7C port 0 and PodA_1 to the data signal SDA of IC port 0 as Figure 9 18 shows Fod f45 14 i3 12 41 1019 6 Te 5 4 J3 2 1 Jo i5 i4lisji2tii iol9 8T 6 5 J4 3 J2 Ji oO 1 DOGOOBBAOGBDABAOABAABOOAOAOABAABAABAOAOGBGABAABDABAOODABAABDOBEAE 1 WHWOODOODOABAOBOADA
9. Location The location to put the result signal two available options before the Original signal or after the original signal 128 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Color Select the color for the result signal after decoding Data type Select the original data type of the measuring signal Number for numeric type Char for character type Displaying format Select a way to display the data It s a data value if the Data type is Number then Decimal and Hexadecimal are available in this option It s a character if the data mode is Char then ASCII and Hexadecimal are available in this option OK Confirm the settings and dismiss the dialogue Cancel Cancel the settings and dismiss the dialogue 9 8 2 Detailed descriptions 1 Select the Tool gt Plug in Manager within the menu bar to bring up the Plug in Manager dialogue Then select SSI Bus Analysis plug in as Figure 9 42 shows then click the Setting button to bring up the SSI Bus Analysis setup dialogue as Figure 9 42 shows Plug in Hanager Hame Version Manchester Codin 1 01 Modified Miler C 1 01 MODBUS Protocol 2 01 I WIKE Bus Analysis z 03 SU Card Analysis 2 Ol SFI Bus Analysis 2 Ol SST Bus Analysis UART Bus Analysis O1 W T E E E E E Descnption The 551 Bus analysis plug in can decode the acquired data based on S51 Bus specifications It
10. f you find that the program is hard to understand please read the descriptions in user menu first If the software has an error please repeat your actions to confirm it lf there is any notice on error please record it or save a screenshot Vhen using a telephone Fax E mail for supports please state out your product Serial Number 2 Wewill not be responsible for any of the situation listed below a Any unauthorized installation operation modification on our product b Any damage caused by misused and ignorance or any products that with a wrong serial number c Any program error caused by physical damage on CDs d Any consequential damage or lost caused by hardware error or software defects 3 License agreement All rights are reserved to Guangzhou ZHIYUAN Electronics Co Ltd 4 Warranties Guangzhou ZHIYUAN Electronics Co Ltd has a strict quality insurance system Within a year started from the date of purchase if there are defects in software or hardware we offer free repair service and conditional replacements This guarantee only applies when the software is correctly installed and the normal working environment of it is satisfied 209 Please visit our Website www embedtools com Chapter 14 Supports amp guarantees 5 Guangzhou ZHIYUAN Electronics Co Ltd Feel free to contact us if you have any questions or suggestions about our product Here is our contact information Ad
11. Insert marker Goto M1 Goto M2 Goto Trigger Point Go to the beginning Go to the ending Properties Zoom in for more details Zoom out for observations Zoom out for a complete view Place the M1 marker on this place Place the M2 marker on this place Insert a new marker with a new name Display the contents around the M1 marker Display the contents around the M2 marker Display the contents around the Trigger point Display the beginning section of the record Display the ending section of the record Configure the waveform viewer window 47 Please visit our Website www embedtools com Chapter 5 Menu descriptions 5 12 2 Waveform selection drop down menu From left to right hold you left mouse key to drag a box and select a segment of waveform when you release your mouse key a menu will then appear to ask you how to handle this section of waveform ms PAA EA Aa SSSA Zoom In Set Trigger Find Hext Find Previous cave To BMP save To Clipboard Figure 5 13 Waveform selection drop down menu Zoom In Zoom in to view the details of this area Set Trigger Set the selected waveform segment as a trigger Find Next Find next similar area Find Previous Find previous similar area Save to BMP Save the selected waveform segment to BMP image file Save to Clipboard Copy the selected waveform segment to clipboard 5 13 Waveform files and Bus Signal assista
12. Launch the program Figure 3 10 Installation complete 21 Please visit our Website www embedtools com Chapter 3 Software installations 3 2 Running the logic analyzer program 3 2 1 First time running the software after installation When the installation is complete you may tick the Launch the program option to start the program directly Then the software interface will run automatically after the installation zlgLogic ZlgLogl File Record Setup Analyser View Window Tool Language Help b ptt Ganaa Hh EEG E myBuso a MyBuso O 1 MyBus 1 J MyBuso 2 a MyBuso 3 i MyBuso 4 a MyBust 5 MyBuso T MyBuso 7 7 MyBuso S J MyBust Si tt Auto Beasure HHH Mi M2 300 ns 1 M1 M2 3 33MHz BLES Frequency 100 00M Mot Trigger OFFlirn Figure 3 11 The zlglogic software interface If your PC is not connected with the LA2532 logic analyzer then a offline status will show on the status bar indicating that the connection is not ready ee Frequency 190 00M Not Trigger Figure 3 12 Offline status 22 Please visit our Website www embedtools com Chapter 3 Software installations 3 2 2 Running the software in normal situation Normally there are two ways to start the software interface a Double click the shortcut on you desktop b Select the program under the Start gt zlgmcu Logic Analyzer menu La Power Ah i UltraEdit MA
13. Oeeurrence counting Plug in Trigger Advance Trigger Triggered by a specified value appeared on the selected bus and a rising edge appeared on the selected signal Ifthe inputted value has a prefix Ox it will be treated as a hexadecimal number otherwise it will be treated as a decimal number T XXX Target Bus ADDR Ox8000 Signalitising edge R Figure 7 8 Example data value and rising edge trigger setup And the result of this example is shown as Figure 7 9 Figure 7 9 Result of data value and rising edge trigger example 78 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides 7 1 8 Data value and falling edge trigger This trigger is a combination of data value trigger and falling edge trigger that is to say only when both conditions are satisfied the software will be triggered to start the recording Like the previous trigger this trigger is used to detect a bus operation that related to a specific value such as read write operation to specific address For detail please refer to the previous description on data value and rising edge trigger 7 1 9 Hold time trigger As Figure 7 10 shows this type of trigger has a fill in box for durations When the inputted value appears on the selected bus and last over the specify duration the software will be triggered for recording The minimum time unit for duration is 10ns Usually this type of triggers is used to
14. MOSI total 4 pins to the LPC2131 processor Then define signals connect Pod A_0O of the LA logic analyzer to clock signal and assign it as SCK Pod A_1 to chip select signal as CS Pod A_2 to the Host input signal as MISO and Pod A_3 to Host output as MOSI as Figure 9 36 shows 124 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Bus Sienal Sampling Trigger HS 14 1Si12141 1019 6 T 6 5 4 13 2 i 0 145 14113 12141 10 9 e T e 5 4 3 2 1 lo o0GOGzCOCCOCOGOGCO OCOCOCOCOOGCOCOCOOCOOGCOCOGOCOCOODO N gou0ng0ug0g0ng0ug0pgu0ugaug0gpg0og0ug0ugpg0oag0ugpg0pg0agg0g0g0g0pg0og0 ai O GGU 0G O0UGOGOOUGOUOGUGOUOOGOGOOGO0UCOOOOOO0OGOGUOUGOGOUO O g OO MOSI BEER BRR RRR Figure 9 36 Bus Signal setup for SPI experiment 2 The second step is the trigger setup In this experiment we set the falling edge of CS as a trigger to start the recording as Figure 9 37 shows e Sampled Trigger Trigger Type gt Immediate A 4 eee Falling edge trigger i Rising edge Falling dege Edze Bus triggers ata value Data Queue Synthesis triggers i Data value and riz Triggered by a falling edge appeared on the selected signal T o beata value and fal 3 _ Time related triggers Target Signal C5 Hold time Data arrival and Data passed and de gt Decurrence counting l Flugin Trigger SPI Bus Analysis n Advance Trigger Figure 9 3
15. Trigger Fosition 32K a 10 Save to files when sampling repetitively Re Figure 13 10 Configure the threshold voltage User can select the voltage threshold based on the system requirements such as 2 00V for the LVTTL system 0 98V for a 1 8V I O system For special voltage values user can input it within the selection box the precision of the voltage is 50mV Threshold setting FOD A pside LYCMOS 1 TOV se POD B Downside 1 34 w Figure 13 11 Inputting a threshold voltage 13 4 Cymometer Several types of LA series logic analyzer provide a Cymometer function to precisely measure and display the frequency of a signal The CHO of PODA and PODB are the input channels of the Cymometer Connect the CHO to the signal you want to measure then the measurement result of frequency will be displayed on the Cymometer as Figure 13 12 shows 197 Please visit our Website www embedtools com Chapter 13 Special Functions zlgLogic SD zla Seles x File Record Setup Analyzer View Window Tool Language Help BHH gt eR Olt nM GARB ose Ke EEA Z in rei ln sD zla Cymometer TP SERMONS ch a ROUEN i SEES alee rare 30q Figure 13 12 Cymometer The color of the probe wire is displayed in front of the frequency value representing PODB CHO and PODA CHO respectively Based on the frequency value the unit will change from Hz to KHz and MHz automatically and 3 digits after the decimal po
16. as Figure 10 9 shows IIC Trigger Setup sen soa CDATA Start Conditi u Stop Condition Specified Address Figure 10 9 Set a I C Start Bit trigger The result of start bit trigger is shown as Figure 10 10 455 46000 Figure 10 10 I C Start Bit trigger result 2 Set the trigger condition to trigger on the Stop Bit of the I C Bus data as Figure 10 11 shows 156 Please visit our Website www embedtools com Chapter 10 Plug in Triggers IIC Trigger Setup sev spa DATA Start Conditi a E ieni ornatti wH Response O Specified Address Figure 10 11 Set a I C Stop Bit trigger The result of start bit trigger is shown as Figure 10 12 Figure 10 12 I C Stop Bit trigger result 3 Set an I C address trigger on write operation ACK response The detailed settings are OxA0O for the device slave address write operation ACK response As Figure 10 13 shows IIC Trigger Setup pata Trigger Type Address OwAd Start Condition whe Response Stop Condition O Read ACK Specified Address Write NACK Figure 10 13 Address trigger setup for IC Bus analysis plug in 157 Please visit our Website www embedtools com Chapter 10 Plug in Triggers Check the source code of the I2C Bus Analysis experiment the processor will write 8 bytes of data to CAT24WC02 So the trigger condition should be satisfied Figure 10 14 shows th
17. comprassl clam ave m apor pz Po re wr oe oo i ns woe CEC CO Figure 2 5 After data compression 2 5 System requirements 2 5 1 Minimum requirements 600MHzZ or faster CPU 128MB or more memory 30MB or more free hard disk space USB1 1 or USB2 0 interface 1024x768 or higher resolution monitor 16 bit color or upper Windows 2000 SP4 or later operation system E6 0 or later version browser 2 5 2 Recommended PC platform 1GHz or faster CPU 256MB or more memory 100MB or more free hard disk space USB1 1 or USB2 0 interface 1024x768 or higher resolution monitor 16 bit color or upper Windows XP SP2 or later operation system 1 E6 0 or later version browser 16 Please visit our Website www embedtools com Chapter 3 Software installations Chapter 3 Software installations 3 1 Software installations 3 1 1 Installing the ZigLogic Software Please insert the CD accompanied with the LA2532 logic analyzer into your CD ROM driver and then start the installation following the instructions listed below 1 Double click on the icon to bring up the Preparing to install dialogue as Figure 3 1 shows InstallShield Wizard Preparing to Install algLogic 2 0 Setup i preparing the InstallShield Wizard which will guide you through the program setup process Please wat Checking Operating System Version
18. performed on those existing signals or buses So in order to perform these actions user should define the signals or buses for the sampling channels first And this can be done in the Bus Signal setup dialogue 6 1 1 Quick guide on bus signal setup Step 1 click the shortcut button or select the Setup gt Bus Signal option within the menu bar to bring up the Bus Signal Setup dialogue as Figure 6 1 shows Bus Signal Sampling Trigger Hame IS A15 Te dr TONS S B S jaya le ft 0 PTS Aa 108 pe 7 e 5 pays je jt iO ies 16 OOOOOOOOCOOOOODOO REE EEE eee eee MyBusl 1 oanannnnnannnannannnannnannnannnannnnnnnnnnnnA mr aS Figure 6 1 Bus Signal Setup dialogue 50 Please visit our Website www embedtools com Chapter 6 Function Descriptions Step 2 Delete the default bus and signal and add your new signals or buses Delete a bus signal left click to select the bus signal you want to delete Press Delete button to delete it Add a bus signal left click on the button to insert a new bus signal left click on the default name MyBus0O of the new signal bus to change it Then tick the channel you want to sample within its channel list Step 3 Use the Up and Down button to change the displaying order of a Bus or signal Then click to confirm your settings Tips You can also configure the
19. 01 2 03 1 WIRE Bus Analysis 2 03 Z2 01 2 01 d activat 7 e 2 Manchester Codin Modified Miler C MODBUS Protocol 1 WIRE Bus Analysis The Plug in is deactivated k 0l O1 Sol Bus Analysis O UART Bus Analysis SSI Bus Analysis Ol UART Bus Analysis O1 Description The SSI Bus analysis plug in can decode the Description The SSI Bus analysis plug in can decode the acquired data based on S51 Bus specifications It allows acquired data based on 551 Bus specifications It allows user to decode the DA and DX signal of the 551 Bus user to decode the OF i to contin of the 591 Bus together or separately together or separately the changes Gam Cox Comer Cee Figure a The plug in is deactivated Figure b Activate the plug in Figure 12 5 Deactivate and reactivate the SSI Bus analysis plug in 12 4 Using multiple plug ins in one project The LA series logic analyzer supports multiple plug in for one project file this means that you can perform many kinds of analysis through multiple plug ins for different signals come from different signal sources Figure 12 6 shows an example project using SSI Bus Analysis plug in and Serial UART Bus analysis plug in to perform analysis to two different source signals derived from SSI bus and UART communications respectively a ese ane oo000ms 11 80000ms 11 30000ms lz ts Decoding reste k trai rai trr a l ierat rirli iraa eHO Oi OL OL OL YL OL od oy oi oinnia D 1
20. 1 WIRE Bus Analysis SU Card Analysis z Description The 120 Bus analysis plug in can decode the acquired data based on 120 Bus specihications finding out the start bit access operations slawe address data field including response stop bit and other useful information GD Cac Figure 9 13 Activate and configure the IIC Bus Analysis plug in 2 Within the IIC Bus setup dialogue Select an IC clock signal for the SCL Signal then an I C data signal for the SDA Signal All available options within their menu are single channel signals that defined within the Bus Signal Setup dialogue As Figure 9 14 shows rot E N ONEA eit 15 14 13 12 11 1019 8 T 6 5 J4 l3 2 1 O j15 14 13 12 11 10 9 e T e 5 4 13 2 1 O SA 1 00g0 g0g0g0og0ag0ogcgoga0ag0cgoagopgaugcgogogag cgogogag0a0ogaoaog0oug0g nng SCL 1 G a G GOGO OOGOOOgGEOOOgGOCO OGOGO GOOD GEOG UGI i oe ooo e Hame 5 ie igure a Signals defined in Bus Signal Setup Dialogue IC Bus Property SCLSigma scl v SD amp rSignal spa ce IIC Analysis A SCL ES a Colg Figure b Available signals for SCL Signal and SDA Singal Figure 9 14 I C Bus clock signal and data signal setup 3 Set the Data type and the Format for data and the colors for the results The Data type indicates the actual data being transferred for example a hexadecimal number 0x55 or a character A so Data type has two options Number for numeric type of d
21. 4 11 The recorded waveforms of LED control signals 29 Please visit our Website www embedtools com Chapter 4 Quick start tutorial Step 5 As Figure 4 11 shows there is a negative pulse lying on each data signal the red box area in Figure 4 11 Move the cursor to its location then hold down the CTRL key the cursor will then change to a magnifier shape as Figure 4 12 shows then left click the mouse to zoom in the waveform right click will Zoom out ng logic_demo rla EH LEC I LED O f LED 1 J LED 2 EN T LED 4 _f LED S f LED 6 T LED HO DWE i ieee anna eee Paar sails keniare A een 1 5 yay We ene oe a Oe ee en MN a Oye eR a ar tee wae Sa 6 Ose ee wa NS a a wow a ae ee eS ee ee Ee ne eee ee eee ee ese ee ene eee eee SSS ee a ee i i i i Figure 4 12 The mouse zooming mode Step 6 When in the mouse zooming mode left click to zoom in the pulse until you can see it clearly as Figure 4 13 shows move the cursor and points it to one of the negative pulse it shows that it only lasts 4 77us this duration is so short that we cannot notice it on the LED through our human eyes so the only thing we can see is that the LED is light up and turn off one by one in a cycle but with the logic analyzer you can observe these pulses and analyze them easily pi logic_demo zla E Leo 0 LED 0 LED 1 LED 2
22. 63 S707 21010 0012 KE E E ee E T 63 6 6 1 Quick guides on adding a new IMASKELS 11 ccccccccccceseecessccceescssseeeseecesensens 63 6 6 2 616 8 240 6 16 gt ecese e E EER T EE T 64 6 6 3 Details ON adding a new MASKED sccccsseccccseececseseecsneeessueeeesaeeessansessaneeses 64 SF HUGG TN PIGS iceee ae ate css Sse sdeinae E sands anc ssateostsetodaacsmeneeaee 65 Contents Please visit our Website www embedtools com EMBER TAMRAR W T 020 22644972 Contents Mi 02907 SeanaRpud s SHANGRstHMMice GO LTD All rights reserved 65 oh fer zg BF 610 UER e 21118 gio pee E E een ee nee ee E ene ee 66 6 7 3 Details ON finding a market sccccseeccsucecsneecsusesceesaueesssessaeessanessunssaneess 66 6 8 Add auto measurements ccccecccececeeceeceeeceeccaeccuecaueseeceeseeeseessesauessesaeesas 67 6 8 1 Quick guides on adding a new auto measurement ssccccsseeeesseeeeeseeees 67 6 82 IOUS OPON S sprei EE ESE E TES 67 6 8 3 Details on adding a new MEASULEIMENMN c sccccsesecseeeccnsesseeessesesansessneess 68 09 Dala SoC NIN eroen E ee ee 68 6 9 1 Quick guides on data SCALCHING ccccccccceeeeeeecccecsceeseecesscccessessseecescesensaas 68 ohne ag MalbgUe OPON secsi e EE R TEE ee cee ae eee 69 6 9 3 Details on data SCALCHING ccssccccsseecccsececcseseecsuseessueeesseeessaeeessnesessneneses 69 6 10 Waveform viewer SCtUDS cccccceece secs eeseeeeeeeneeeeeteeeeeeseeeeeetaeesee
23. 8 T e 5 J4 3 Z 1 Jo A O GO O GO GO GO GO GO GO GO GO G G G G G G G G d d d bd d bd bdi A A G G L H O GO OU GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO GO O O d O O O O GO GO O GO GO O GO GO GO GO O GO GO GO GO O GO O O O GO O O TAE Figure 4 14 Adding the SPI bus signals Step 2 Click the run l run once button within the software toolbar to start the measurement of SPI input and the LED signals After the measurement completes click the Full display overall displaying button to observe all results as Figure 4 15 shows 31 Please visit our Website www embedtools com Chapter 4 Quick start tutorial a logic demo zrla i 200000000s ogdgati0s ea eer Se 10 00p0000ds 1200000000 i 14 0C r T a S a T ee ee ee ee Oe ee ee OF aaa OE aaa ee a O aaan OO E EO O AE E U YY Y A O U U U Y U aE Y Y U U Y Y A M O Y U U YU AF AE Y Ay A E LED A LED O a LED 1 ol LED 2 ll LED 3 f LED 4 LeDIs T LED 6 T LED 7 Jes clk pata oh aia O or hs rh cir ch oh A rr oh Pe ir ch i cir i ir Oh i Oe ir os Oh chs hs i ir oh i oir Sc Sh chs Sn ir oh Oe os os Sn ES die A es Pe ee A oe a A es A Oa A a eM A eM oe le Me A a Pe F Figure 4 15 SPI transmission measurement result full displays Step3 Zoom in the LED signal between OxFE and OxFD to observe the relationship between SPI and LED si
24. 92000ms alae seu TUU UUE UUU DATA I SDA Ss o E lo ji T i lo E lo E CAT2Z4WCO0 Device Address Read isi Address AT24 WCCO Device Address Figure a Global view 660 16400ms 660 16600ms 660 1 ener DATA soa Figure b Start bit 6 eke eons i iita aa i i a sev DATA spa Figure c Slave address and Operation type Figure 9 25 I C Bus Analysis dialogue 4 Verify the read back data Read back the data and verify it to the original data if they are correct give out a single beep else the buzzer will keep beeping continuously The original data is 0 7 in ASCII code 8 bytes in total From the result figure we found that to the read back data are exactly 0 7 Number ASCII code as Figure 9 26 a shows The last bit is a NACK Non acknowledgement signal as Figure 9 26 b shows pP 0000m s gt A r i ere area ae eee o74 10000ms i of seu DATA IEJ Piura a The read bank data pe eons rd ta2490ms Erg L3600m SALISSA Suita Oey Figure b Stop bit Figure 9 26 I C analysis decoding result 116 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 5 Judge by the buzzer beeps The buzzer gave out only single beep which showing that the read back data is the same with the written data 9 6 SPI Bus analysis plug in The SPI Bus analysis plug in can interpret
25. Bus Analysis SI Card Analysis O C m E E O O fkl gt Description 1 wire Bus Analysis plug in can find out the time sequences in 1 wire transmissions data such as reset Sequence read write sequence and etc aleo support the standard and high speed bus mode Figure 9 2 Activate and configure the 1 Wire Bus Analysis plug in 2 Set the Signal Name option and Speed option All single channel signal specified in Signal Bus setup dialogue will be available as options of Signal Name as Figure 9 3 shows Fod Fod A 15 14 13 12 11 10 3 T 6 5 J4 3 2 jl ao 15 14 13 12 11 10 9 8 T 6 5 4 13 jz 1 j m maanaanaaanaanaananaaanaanaanaaanaaanaanaAA R Wire 1 opo0000000 000000000000000 0000m000 4 Oe ee ee ee ee eee ee eo Figure a Signals defined in Bus Signal setup Dialogue l Fire Decode Setup x ire Bus Property wire 1 ire Analsietresa zjn Color Setup Speed Source Signal Standard C High Figure b Available signals In 1 Wire Source Signal options Figure 9 3 Available Signal 3 An example result of the decoding As Figure 9 4 shows the virtual signal DATA is the result of the 1 Wire analysis 100 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins pe a0000Ums 2 2000 ms Data 1 wire Figure 9 4 Example result of 1 Wire Analysis decoding 9 3 A D Conversion Analysis plug in The A D
26. Cancel Figure 3 1 Preparing to install 17 Please visit our Website www embedtools com Chapter 3 Software installations 2 After the system check is completed click Next to proceed i zlgLogic 2 0 InstallShield Wizard Welcome to the InstallShield Wizard for zigLogic 2 0 The InstallShield R Wizard will install zigLogic 2 0 on your computer To continue cick Next WARNING This program is protected by copyright law and international treaties Figure 3 2 The installation startup dialogue Read the license agreement carefully tick the I Accept option then click Next to proceed iz tlgLogic 27 0 InstallShield Wizard License Agreement Please read the following license agreement carefully Guangzhou ZHIYUAN Electronics Co Ltd ZHIYUAN SOFTWARE LICENSE TERMS ATTENTION USE OF THE SOFTWARE IS SUBJECT TO THE LICENSE TERMS SET FORTH BELOW THIS SOFTWARE LICENSE IS A LEGAL AGGREEMENT BETWEEN YOU AND ZHIYUAN IF YOU DO NO AGGREE TO THIS LICENSE THEN DO NOT USE THE SOFTWARE OR RETURN IT TO ZHIYUAN FOR FULL vl Figure 3 3 The License Agreement dialogue 18 Please visit our Website www embedtools com Chapter 3 Software installations 4 Fill in the user name and organization then select the authorization type within the Customer Information window click Next to proceed ie tleLogic 27 0 InstallShield Wizard Customer Information Pl
27. DX and DR User may only want to decode DX or DR or sometimes both of them so the SSI analysis plug in provides a option to enable the signal as Figure 9 44 shows Next is to select a signal channel signal for the enabled DX or DR signal as Figure 9 45 shows all signals available in the menu list are defined in the Bus Signal setup dialogue The rest of the parameters such as Virtual name location and color are related to the data results you can just keep the default settings DX o _ Enable Enable Source Signal SOLUCE Signat DR Figure 9 44 Enable the SSI decoding for DR or DX signal a i Bus Signal Sampling Trigger aa ose Pod A 15 14 13 12 11 10 3 S T J6 S J4 JS j2 j1 JO 15 14 13 12 11 10 9 8 T 6 S J4 3 2 1 oO tly 1 DOOOOOOOODR00000000000000 00080000 FF 1 GOOOO0D0D0000000000000000000Ro0 0o0o00n w 1 GDOOGOGODOOU00 0000000000000 0E8o00 0o0o0n x OOM OOOO oOeeoooeaeooeeoooeooosooo 85u01 THI OOOOOOOOOOOOOOOOREe eee ee ee eee Figure a Signals defined in Bus Signal Setup dialogue Enable Location a Color Figure b Signals available for Source Signal option Figure 9 45 SSI data signal DR or DX selection 130 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 5 Setup the Data type and Displaying The Data type option specifies the actual data format adopted by the SSI bus such as 0x55 as a data value and A as a chara
28. FFE OCCIE FESE o DEINE SI Es VOCAT E FASEREN OC IE FOTTERE OCI fee FFO O TESE ERG DOIG OC AITE Fg EF OCSE FISEER OCV IE FA FF OC TIE FI EFR HODOMOTON OL IE F6 PP Sate IE Fo FF eh hop oh hae IE F6 EFP BOGE Es Ee Ober See EFSF OCI E FA FPEO CIELA ERES Figure 13 6 The data values saved in the binary file 2 Loading data from a CSV file The format of the CSV file generated by the logic analyzer software is quite simple as well CSV is the acronym of the Comma Separate Values and it s a pure text file format Usually it is used for electronic data sheets or data bases The CSV file format uses a comma to separate two data value this allows program to read in the data and save them in different column structure in a data line every data separated by the comma will create a new column For example a line of data time location people in a CSV file will generate 3 columns of data which will be the time column location column and people column when loaded by the Microsoft Excel or other table handling software The LA series logic analyzer software will save the data in 33 columns the first line of data in the CSV file generated by the 194 Please visit our Website www embedtools com Chapter 13 Special Functions software will be the title of each columns The first column is time it stores the sampling time record of each line of data Form the 2 column to the 33 column each column
29. Figure 6 26 Customizes bars and functions New Create a new toolbar Rename Rename a toolbar Delete Delete an existing toolbar Reset Reset to default toolbar settings before change Help Bring up the help information Press F1 Step 2 Select the Commands clip to configure the shortcuts commands for a tool bar as Figure 6 27 shows 72 Please visit our Website www embedtools com Chapter 6 Function Descriptions Customize Toolbars Commands Options To add a command to a toolbar select a category and drag the command out of this dialog box to a toolbar Categorie Commands Record Setup Analyzer View Window Tool All Commands Save BRachkup as Built in Menus Save as Hew Meru Ter Figure 6 27 Customize commands Step 3 Select the Options clip to setup the displaying options for tool bar as Figure 6 28 shows Customize Toolbars Commands Options Personalized Menus and W Show full menus after a short delay set menu and toolbar usage dat Other Larze icons v Show Sereenlips on toolbars Show shortcut keys in Screenlips Mer System default Figure 6 28 Toolbar options setup 73 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides Chapter 7 Detailed trigger guides The major purpose of triggers for a logic analyzer is to record and analyze the useful sections within massive da
30. Jata passed and delay Oeeurrence counting ba Plug in Trigger SeAdvance Trigger Figure 7 18 Advanced trigger dialogue 7 4 1 Detailed Descriptions The advanced trigger is form up by a series of steps each of which contains three items the conditions the action to perform when conditions are satisfied and the action to perform when conditions are not satisfied Click the button after the step number to add a new step click to remove a step Figure 7 19 shows the setup interface after inserting a new step _Bus Signal Sampling Trigger Trigger Type Immediate Signal triggers Rising edge Bus triggers v MyBus0 v v Falling dege A Edge No Actii v Dont care cou v Don t care timr w And Goto Step 0 Bus triggers Data value No Actii v Dont care cou v Dont care tirnt v And Goto Step 0 v Data Queue Synthesis triggers i Data value and rising i Data value and fallir E Bus triggers v MyBus0 v a Time related triggers Hold time No Actic Don t care cou v Dont care timr wal And Goto Step 1 v Data arrival and del RRs iy Reece cee i Data Passet and dels No Actic Dont care cou wal Dont care timr v And Goto step 1 wal Oeeurrence counting o Plug in Trigger Advance Trigger Figure 7 19 Insert a new step 83 Please visit our Website www embed
31. Windows 98 system 207 Please visit our Website www embedtools com Chapter 14 Supports amp guarantees No you cannot Because some of the processes in windows 98 are calculated in 16 bits so it can not satisfied the analysis requirements for LA2532 LA2532 must be used in an operation system with a version later than windows 2000 or Windows XP 4 Does the LA2532 need an external power source The LA2532 supports the USB powered and require no external power sources But if the USB power supply was not sufficient for reliable working situations like you had connect it with PC but the software still shown that it s offline then you need to connect its power adapter for external power supply 208 Please visit our Website www embedtools com Chapter 14 Supports amp guarantees 14 2 Technical supports We provide not only a good product but also a perfect service for our customers On our website you can check out the price purchase method and the aspect of our products Also you can download the most updated timing library and find out the solutions to frequently asked questions Of cause you can contact our distributor agent or directly ask our engineers for any technique supports Our customer service team will trace your problem and give you a solution You can check the feedbacks on questions on our website at anytime 1 For better service before contacting us you may need some preparations
32. achieve this a logic analyzer may need to handle an important task interpret the acquired bus data based on protocols or bus specifications then display it in simple and easy ways A good analyzer can not only supports most popular protocols but also allows users to define their own protocols and then further supports the analysis on these self defined protocols General logic analyzer venders will not provide or provide only little bus protocol analysis functions for this kind of functions they may charge you additional fees for buying some add on components The LA series logic analyzer gives you a better option for this it integrates with powerful tools designed for protocol and bus analysis and all of them are completely free and upgradable For each popular bus or protocol the LA series logic analyzer provides a unique and complete module to perform analysis based on their standard specifications In the software we call these modules as Analysis Plug ins In addition to the protocol analysis the LA series logic analyzer extends the ability of plug ins and allow user to use their analysis results as a trigger For example within the I C bus protocol there are start bit address stop bit and many other flags with the plug in trigger we can set these flags as trigger conditions to detect bus activities further more it also allow us to set the IC slave address data flowing direction and response type as additional trigger condition
33. all single channel signals are available in the Target Signal option since only a signal can have a rising edge a bus contains two or more channels of signal so there s no rising edge for a bus Bus Signal Sampling Trigger Trigger Type Immediate oe H Doed aun Rising edge trigger Ei sing edge Falling dege Edze T Bus triggers Tata value Data Quene Synthesis triggers Data value and risin Data value and fallir Time related triggers Target Signal MyBus0 0 Hold time Tata arrival and del Tata passed and dela Oeeurrence counting Plug in Trigger Advance Trigger Triggered by a rising edge appeared on the selected signal Figure 7 2 Rising edge trigger dialogue If there are no options within the drop down menu it means that no signals are defined so user must define at least one signal within the Signal Bus setup dialogue to use this trigger Select a signal then press the run button when the selected signal jumps from low voltage level to high voltage level the software will be triggered and start the recording E F An are i are i a i A nE i a ta i 12 6 mriybust i o Trigger point Figure 7 3 Rising edge trigger example result 75 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides 7 1 3 Falling edge trigger Similar with the abovementioned rising edge trigger the only difference is that if the signal jumps form a high vo
34. and decode the acquired data based on SPI Bus protocol specifications It supports the four transmission modes of SPI protocol and the variable length SPI data frame also allows user to decode the MISO and MISO signal together or separately 9 6 1 SPI Bus Analysis setup options SPI Setup SFI Bus H E ae Shane LSBF Frame Length 3 SPI Mode Nai SFI Analysis Result Setup MOSI MISO _ Enable Enable Source Signal Source Signal MISO wt Result Hame Result Hame Location Location Before MISO Cor Data Type O Number Char Displaying Format Ascii Hex Figure 9 27 SPI Bus Analysis setup dialogue Clock signal Select the SPI bus clock source signal SCK All single channel signal name are available in its drop down list SSEL signal Select the chip select signal SSEL for the SPI bus LSBF Select the bit order of the SPI Bus Available options are MSB Most Significant Bit at the Bit 0 or LSB Least Significant Bit at Bit 0 Frame length Specify the frame length 4 bit 16 bit for variable frame length SPI interface The default setting is 8 bit SPI Mode Select the CPOL and CPHA combinations There re four choices since it s a 2 bit combination Enable Activate or deactivate the decoding on MOSI or MISO 117 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Source Signal Specify the source signals for MISO an
35. as a separate bit Start Bit from data value and the first bit option will not appear if there are no Start Bit exist within the target signal user should specify a first bit either 0 or 1 as the beginning of the decoding The First Bit is counted into the data value these options are necessary for the precision on aligning of frames Setup the Error Tolerance The decoding sequence is based on the synchronous clock signal of the Modified Miller coding But the time period for each bit in the actual signal is not a certain value since there are errors The error tolerance value provides a range limit for data recognitions For example assume the error tolerance value is 0 2 then if the duration of a bit does not exceed the limit which is range from 0 8 Bit Time to 1 2 Bit Time it will be accepted as a legal bit otherwise it will be abandoned Other parameters Setting other parameters such as bit time frame length parity mode and data filter are quite simple user can just set it based on the actual situations and requirements Setting for analysis results There are two result signals one is displayed in bit stream and the other one is displayed in frame stream You can configure the Data Format option to specify the displaying of frame stream result three options are available Decimal for decimal values Hex for hexadecimal values and ASCII for characters At last in the color setting options you can select different colors
36. available options LVCMOS 1 7V LVTTL 2 00V 1 5V I O 0 98v 1 8v I O 1 17V 2 5V I O 1 70V 3 3V PCI 1 65V 5V PCI 2 00V or you can fill in a value between OV and 4 6V Digital filter Three options are available here None 1 or 2 The filtering is run in hardware select none to deactivate this function select 1 means a 2 of 3 filtering select 2 means a 3 of 5 filtering Acquisition Select the capacity of a record Compress Enable Disable the real time compression to the acquired data Trigger position This is the percentage of the pre trigger data comparing to the total recorded data Save to file when sampling repetitively Tick this option to save the record file on every time the sampling cycle repeats OK Confirm and dismiss the dialogue Cancel Pop up the help information Press F1 6 3 3 Details on sampling setups 1 Specify the sampling frequency User can select or just fill in a frequency within the Frequency field and the unit of the frequency can be set to Hz KHz or MHz Notes The inputted frequency should be limited between 0 100MHz The inputted frequency should be a divisor number of 100M if it s not when you switch to other options the software will find a nearest number to replace your setting 2 Specify the threshold voltage There are 7 available options user can select one for each signal of D15 D0 and D31 D16 or just specify a voltage value
37. boost up many strange problems also appears most of these issues are caused by the mismatch on the timing between processor and different devices To demonstrate the solutions to these issues here is an example on maximizing the performance of the processor when using a SST39VF 160 90 Flash chips as an external storage for LPC22xx series processors Figure 1 5 shows that the read in timing on the SST39VF160 90 Flash chip and its dynamic parameters are listed in the following Table O rM Tas ADDRESS eo 6 UH RRA AK we TTT S442 AZ Hie Boas ae AMY Figure 1 5 The read in timing of the SST39VF160 90 Table 1 1 The olla for SST39VF160 90 Sop Pein corse ce Tae reacer Ooo e l f a T a Toe T Output enabie accessing tme Terz Time spent on CE switch from low H level to effective output Torz Time spent on OE switch from low voltage NE Tcnz Time spent on CE switch from high voltage Po mcnmananmen Touz Time spent on OE switch from high voltage a ecnmananmes Time spent from address modification to output i mag sewers A 6 Please visit our Website www embedtools com TN BBC 30 FF BR 2 a 4288 T 020 22644372 F 020 38601859 Win Tandoor Guomay findythat Exectionicsy GO tap Tahnidattheckew earameter for data reading If Tre Tce Taa does not satisfied the data read in procedure will have errors and also it may cause hardware damages The Tog parameter can be ign
38. bus The SPI mode has four options with the combinations of CPOL and CPHA the SPI mode is important for the decoding wrong SPI mode may cause an unpredictable result on analysis so user should select this option carefully Some kinds of chips provide the SPI interface with variable frame length support the logic analyzer provides a frame length parameter is designed to support this function so you can simply specify it for these kinds of chips the range of the frame length is 4 16 These parameters are shown as Figure 9 30 Frame Length AOSI Figure a Bit order ource signal jesul Name i SPI Mode CPOL 1 CPHA 0 w CPOL 0 CPHA 0 Beaten ult Setup CPOL 0 CPHA 1 MISO CPOL 1 CPHA 0 olor Figure b SPI Mode Figure c Frame length Figure 9 30 The bit order SPI mode frame length options 119 Please visit our Website www embedtools com 4 Chapter 9 Bus analysis plug ins SPI virtual bus setup After setting all basic parameters for SPI interface such as Clock signal chip select signal SPI modes and etc now it s time for you to setup the displaying of the results First setup the SPI data signal MOSI and MISO User can perform analysis on any of them or both of them by placing a tick within the use option on the right upper corner of their field Then select the measuring signal within all single channel signals give the result a virtual name select its displaying color and locate
39. channel signals defined in the Bus Signal setup dialogue are available for the Source Signal option as Figure 11 4 179 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Bus Signal Sampling Trigger Tene i Ba Pod A 15 14 13 12 11 10 9 6 T JB 5 J4 3 2 1 JO 15 14 13 12 11 10 9 T JB 5 j4 Ja z 1 j See eee eee WWW eeeeeee eee U OUa H O O O O O O O O GOGO UGO GO GO a ba ba bd bd bad bd bd bd ba bd bad Comm bad bai ba igure a Signals defined in Bus Signal Setup dialogue l 4D Signal Group Source Signal Source Signal Result Mame Result Name Figure b Signals available in RXD TXD Source Signal option Figure 11 14 Select the read write signal 4 Transmission configuration result displaying and color setup Configure the Baud rate parity mode for RS232 and RS485 communications select the transmission mode for data link layer RTU or ASCII select the displaying of the decode result on layers and then setup different colors for different information displayed on the results as Figure 11 15 shows Basic Setup Baud Rate Parity Mode Transmission Mode RTU ASCII Q Color Setup MEN Addtess Pou Data Eror Checking Filed Physical Layer alk Levan Function Code MODBUS i MODBUS Protocol Add User Function Code Figure 11 15 The configuration to transmission parameters and result displaying 5 User can
40. communicates with the devices through USB ports It also supports the most popular Windows system and provides with a beautiful and convenient user interface With its powerful triggering abilities user can easily find out even slightest errors within the system with its complete bus and protocol analyze capabilities user can analyze their products without going deep into any details of the protocols with its highly effective compress algorism user can obtain more information and save more sampling points to process more data also with its automatic and online upgrade capability user can get the newest technologies and updates anytime and anywhere LA2532 logic analyzer adopts the advanced large scale integrated circuits and mixes with many brand new technologies of the embedded systems such as USB2 0 CPLD and FPGA also supports the USB powered and the Plug amp Play technology Comparing to the traditional logic analyzer it has the advantages on its high performance low costs easy to carry convenient on usage and good extendibility it s the best choice for you to replace your old or traditional logic analyzers LA2532 is a 100M 32 channels high performance logic analyzer that can be use to perform the developing measuring analyzing and debugging works it s a powerful device designed for developing or verification engineers in electronic field and also a convenient tool for high school research or teaching teams It s an el
41. displaying color for the start bit of the analysis result Parity bit color The displaying color for the parity bit of the analysis result OK Confirm the settings and dismiss the dialogue Cancel Cancel the settings and dismiss the dialogue 9 12 2 Detailed functions and notice on usage 1 Select the Tool gt Plug in manager within the menu bar to bring up the Plug in manager dialogue then select the Modified Miller Coding Analysis option within the plug in list as Figure 9 65 shows then click the Setting button to bring up the Modified Miller Coding Analysis setup dialogue 147 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Plug in Manager Hame A I Conversion Analysis CF Card Analysis TIC Bus Analysis Manchester Coding Analysis Modified Miler Coding Analysis MODBUS Protocol Analysis I WIRE Bus Analysis SU Card Analysis v Desorption The Modified Miller coding analysis plug in can decode the acquired data base on the standard Modified Miller coding It allows user to define the bit time signal idle state start bit parity mode frame length and error tolerance Figure 9 65 Plug in Manager the Modified Miller Coding Analysis plug in 2 Specify the target signal Select the target signal name to be measured the original data is acquired form this signal and the analysis will then be performed on them All signal channel signal defined w
42. for the start bit data bit and parity bit After all settings are done click to confirm the setting and run the analysis The result of analysis Figure 9 67 shows a analysis performed on an example signal in this example the settings are High for the Idle State O for Start Bit Odd for Parity mode 9 44us for Bit Time and 0 2 for Error Tolerance 25 7O000ms 28 75000ms ERSS bit Mile I Signal 28 70000ms Signal Figure b Zoom in view for Start bit 149 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins l 2o rod ms i eeu SOOOms i 25 21 bit Mile Signal Figure c Zoom in view for Parity bit Figure 9 67The result of Modified Miller Coding analysis Chapter 10 Plug in Triggers 10 1 Plug in trigger overview The LA series Logic analyzer has powerful trigger abilities it provides not only the event triggers and advanced triggers but also a flexible plug in trigger to simplify the works related to buses The plug in triggers are defined based on bus specifications and it works under the support of its corresponding plug in Take the UART Plug in trigger as an example user can use the plug in trigger to record the data when a specified value occurs after a read or write operation performed on UART bus For the measurements to specific buses the plug in trigger can avoid the redundant data allowing use
43. from it we can see when processor is fetching instruction at 0x8003 the logic analyzer is triggered to start recording Since LA series logic analyzer can adjust the starting position of a record so it can record both the pre trigger state and post trigger state So it is quit convenient for user to perform analysis based on its recording results The following two figures show that after a write operation the fetching of the processor goes wrong This information is useful to find out bugs in software or hardware Combining this result to the measurement on interrupts and output signals user may also find out how external output affects the running of a program JEX Lat orer Ila 3650 435 00ua 435 50ua 44000ua 440 50ua 441 00ua 441 50ua 442 00u4 442 50ua Pe ee ee ee i i thappgoe oe Pepe yp yp ba ee Pe pp la ee a pt hg ee et Figure 7 29 Detailed of the measurement results 89 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides Figure 7 30 Global survey of the measurement result 90 Please visit our Website www embedtools com Chapter 8 Plug in Analysis Chapter 8 Plug in Analysis 8 1 Plug in Overviews One of the core functions of logic analyzer is to translate the massive and complex data into useful information for developers and engineers the goal for this is to spend minimum time on analysis and get the expected information as quickly as possible To
44. is based on SPI bus analysis but further extended to the SD card protocol layer It extracts and decodes the tokens under the SD card protocol and marks them out with different names From the results you can easily find out the commands responses data CRC parity checks delays and other related operations 8 3 Descriptions on Analysis plug ins A plug ins is implemented and saved in one file with a file extension name plu each plug in is an independent module for the logic analyzer For example the Serial UART Bus analysis plug in and SPI bus analysis plug in are saved in different files they work independently without affecting each other Also since its a module it can be added to the logic analyzer software or removed from the software The plug ins are classify as two types the bus analysis plug ins and protocol analysis plug ins The Bus analysis plug in follows the specification of a bus to decode the acquired data And currently we only provided the support to serial buses For example the IC bus analysis plug in is designed to decode and handle the I C bus data A protocol analysis plug in decodes the acquired data following the rules of a specific application protocol usually it will perform the decoding at multiple layers usually first is the decoding of physical layer then maybe several upper layers For example the SD card SPI mode protocol analysis plug in will first decode the SPI bus data at the physical layer then
45. is corresponding to one of the 32 channels of the LA series logic analyzer the 2 column is bit0 3 is bit1 and so on and data values are started from the second data line Figure 13 7 shows an example signal bitO bit2 are sampling data Table 13 1 is the exported CSV file content for this signal The logic analyzer software only saves data when any of the signal state changes and it does not save continuous records with save data values so the recording period between two data lines is not a constant value it s variable due to the changes on signal states are randomly happened For example as Figure 13 7 shows since the data did not changed between 20ns 40Ons so the recording time jumps from 20ns to 40ns directly Ons i ns 20ns J ns 4 0ns 40ns Bit 0 l Bitl I I Bit l a T L Figure 13 7 The signal to be exported 195 Please visit our Website www embedtools com Chapter 13 Special Functions Table 13 1 The exported CSV file result Understanding the structure of the CSV file generated by the logic analyzer software you may now be able to use them in your analysis programs But generally its format of file is intended for the analysis using those table editor tools 13 3 Logic pen The LA series logic analyzer has the logic pen functions and this function is implemented by hardware so it does not require any user setups The logic pen shows the voltage state directly on the software interface it s su
46. j Pano 4 DATOZ cw 2 ie a E CH7 n E CH8 3 40 X ED3 14 11 CH9 3 E veco ae Q5 2 CHIO R4 470 YXMLED4 RST P1 5 9 MR Q6 4 11 7 13 CHII POS GND O7 RS ae Bp 70 EDS o E 744C164 E je e h CHO 8 CLKO XTAL2 P3 0 70 ED6 s R7 a70 Ngn 1 vop 1 __1vcc33 Ray Mees 7 XTALIP3 1 vss 4 P89LPC913 Figure 4 1 Schematic of the flow light experiment board with measuring points 24 Please visit our Website www embedtools com Chapter 4 Quick start tutorial Connect the logic analyzer to the PC with a USB cable and run the logic analyzer software zlglogic2 0 then the main interface of the software appears as Figure 4 2 shows Check the status bar to ensure the connection is OK because the device cannot operate properly when disconnected an Offline status as Figure 4 2 shows Freguency 100 00M Mot Trigger Figure 4 2 The Offline state We separate the whole measurement to the system into several steps they are Frequency measurements Bus activity measurements SPI transmission measurements and SPI data analysis respectively 4 2 Frequency measurements The oscillator priming of the RC oscillator circuit is a prerequisite to ensure the MCU work normally Using the logic analyzer user can easily find out whether the oscillator circuit works properly Step 1 Connect the CHO probe of Pod A to the crystal oscillator pin the CHO
47. link layer and Modbus application layer 177 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Color setup Address Select the displaying color for the address field on the data link layer data analysis results The default setting is green PDU data Select the displaying color for Modbus PDU data field on the data link layer data analysis results The default setting is cyan Error Check Field Select the displaying color for the error check field on the data link layer data analysis results The default setting is gray Function code Select the displaying color for Modbus Function code on the application layer data analysis results The default setting is cyan MODBUS Select the displaying color for Modbus data field on the application layer data analysis results The default setting is yellow Add user defined function code User can specify a function Click this button to bring up a dialogue on adding function codes as Figure 11 11 shows Add User Function Code Explain Acceptable Range For User Function Code 65 land O0 1101 Function Code Decimal Function Hame Figure 11 11 Adding a user defined function code Function code Enter the function code you want to define the acceptable range for this code is limited to two areas 65 72 and 100 110 Name Name of the new function code OK Confirm your settings Cancel Cancel your settings
48. logic analyzer integrates with a 32 bit timer a 32 bit counter and a high speed comparison module these resources can greatly simplify your measurements By using the advanced triggers you can manage all internal resources of the logic analyzer and make it more convenient for your measurements and analysis For example when the Program Counter of a MCU was corrupted by an address that does not belong to the code segment a run away error occurs There are many reason to cause this kind of error the major reasons are 1 Externally Hardware interference that causing the content of PC register changes 2 Internally bugged software that called an address out of code segment or abuse of pointers For the 80C51 microcontroller run away example mentioned before Chapter 1 3 5 when the program counter is fetching an address out of the code segment the microcontroller will used the PSEN pin to signal external memory devices for read write accesses Through the logic analyzer we can set the PSEN state as one of the trigger conditions to detect this external memory access action and record the time around the error point for analysis The code segment for 80C51 is O Ox3FFF program running out of this area will be a run away error The timing of on accessing external memories for 80C51 microcontroller is shown in Figure 7 27 Figure 7 27 Access to external memory address space Two conditions are require to access the external memory the fir
49. next bus signal Then the cursor will change to a double arrow shape as Figure 13 28 shows now you can drag it up or down to zoom in or zoom out the waveform the result is shown as Figure 13 29 205 Please visit our Website www embedtools com Chapter 13 Special Functions TAL ALE E Addr po E Po Figure 13 29 Result of zooming 2 Zooming the waveform horizontally Global zooming There are two simple ways to do the global zooming First method is to click the zooming icons on the tool bar The other method is to press the or button on the number pad of the keyboard 3 wv Zooming the waveform horizontally Area zooming Right click and hold down the mouse button to drag a selection box to select the data you want to observe Then release the button a dropdown menu will then pop up as Figure 13 30 shows et Quick Trigger Find oCL Hi gh and E oUA Falling Edge lms 17 80000ms 1o 00Np ms 10 20000ms 12 40000m Set Trigger Find Next Find Previous cave To BMP cave To Clipboard Figure 13 30 Select the zooming area for observation Then click the Zoom in option to zoom in the selected waveform as Figure 13 31 shows 206 Please visit our Website www embedtools com Chapter 13 Special Functions 100ms atria ire rare een saree mein varia mieten aerial Brn URE seL J J J J J J J J DATA OHAD Read DATAOHAC Write
50. of decoding are shown as Figure 9 59 Decode results Hello world eT 40000ms ii l 87000000M 47 20000m3 T D A E S B i Ej ia Ff i Figure 9 59 The Hello world string after decoding 9 11 Manchester Coding Analysis plug in The Manchester coding analysis plug in can decode the acquired data base on the standard Manchester coding algorism It allows user to define the bit time signal idle state start bit parity mode frame length and error tolerance level Based on these settings first it will find out the data values bit by bit and then calculate the parity bit to verify it at last display all results directly and visually on the waveform viewer 141 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 11 1 Manchester Coding Analysis setup options Banchester Setup Manchester Coding Properties Source Signal ManSign Idle State start Bit Bit Time 3 44 us Byte Length S First Bit Party Mode Odd Eror Tolerance 0 5 w v Filter Data Manchester 4nalysis Result Setup Color Setup Steet lh lewis Start Bit Location Before ManSignal Parity Bit d Color O Decimal Hes ASCII Figure 9 60 The Manchester Coding Analysis setup dialogue Source Signal Select a signal used for the analysis All single channel signals defined in the Bus Signal Setup dialogue are available for selection Idle State Select the idle state for
51. of the color cell Step 3 Select a position to put the new marker three available options centre of the waveform viewer screen specific time or specific sampling point Then click to confirm and dismiss the dialogue 6 6 2 Dialogue options Name Color Position OK Cancel Enter the new marker name here Select a color for the new marker by within the drop down menu The position to put the new marker three options are available centre of the waveform viewer screen preset time preset sampling point Confirm the settings and dismiss the dialogue Do not add a new mark and dismiss the dialogue 6 6 3 Details on adding a new marker 1 Name You can specify a name for the new marker and this name will be display on top of the marker 2 Color Click the color cell to open its drop down menu as Figure 6 20 shows click to select one new color for the marker this helps to distinguish different markers 64 Please visit our Website www embedtools com Chapter 6 Function Descriptions baa soa Hame Color Place Center Figure 6 20 Color selection for the new marker 3 Place Set a position to place your new marker you can select centre of screen time or sample point The default setting is the centre of the waveform viewer screen If you want to place it based on time or sampling points you can tick the option and then fill in the time or sampling point value where t
52. of the sampling as Figure 10 33 shows UART Trigger Setup RxDYTHD DATA Trigger Signal TxD Trigger Type N Start Frecision Daa Data Figure 10 33 Setup a UART data trigger 168 Please visit our Website www embedtools com Chapter 10 Plug in Triggers Figure 10 34 shows the result of this trigger T 7 eda ian We 3 Amem 2 Figure 10 34 Result of UART data trigger Chapter 11 Protocol Analysis plug in 11 1 Protocol analysis plug in Overviews The protocol analysis plug in mainly focuses on the higher layer protocols this kind of plug in is based on specific bus transferring specifications At first it will perform the bus analysis then based on the results it will perform the protocol analysis Usually a protocol is combined with commands data acknowledgements and other components the protocol analysis plug in will distinguish them by marking out each component or fields with different signs and colors which will be much helpful and convenient for user observations or further analysis 11 2 CF Card True IDE Mode Analysis plug in The CF Card True IDE Mode Analysis plug in will perform detailed analysis to the CF Card time sequences under the True IDE mode and then find out the read write registers and their data values analyze the operating ATA commands and their parameters and interpret the read write sequences and show them in graphical signs 169 Please visit our We
53. on the waveform viewer screen of the software with detailed descriptions 8 2 1 Bus Analyzer plug ins 1 1 Wire Bus Analysis plug in The 1 Wire Bus issued by Dallas Semiconductor uses only one signal wire to communicate through devices with well defined and time proven protocols The 1 Wire Bus Analysis plug in can find out the time sequences in 1 wire transmissions data such as reset sequence read write sequence and etc also support the standard and high speed bus mode But it will not perform upper layer protocol analysis to user data 2 A D Conversion Analysis plug in The A D Conversion Analysis plug in can analyze the analogue value of the analogue output then display the analogue value with a smooth curve on the waveform viewer User can compare the conversion result base on the Enable signal conditions including high or low voltage level rising or falling edge to this curve and find out whether they are valid results 3 1 C Bus Analysis plug in The IC Bus analysis plug in can decode the acquired data based on I C Bus specifications finding out the start bit access operations both read and write operations slave address data field including response stop bit and other useful information precisely then display them in specified colors on the waveform viewer quite convenient for observations and comparison 92 Please visit our Website www embedtools com Chapter 8 Plug in Analysis 4 SPI Bus Analysis
54. options are ASCII and Hex Hexadecimal as Figure 9 54 b shows Select your Data type and Displaying Format to decide the displaying style of the analysis result User can also select different color to present the special flags of data as Figure 9 54 c shows Color Setup Data Type C Numbet Char 7 cat ay a E Start Bit TC Displaying Format Decimal gt Hex Stop Bit Figure a Numeric data type Parity Data Type Number Char Displaying Format Ascii Hex Figure b Character data type Figure 9 54 Data type and color setup 7 Click the button to confirm and back to the plug in manager then click the button to start the decoding or to dismiss the dialogue 8 Result of the decoding As Figure 9 55 shows The result Jof decoding f 133 000ms o 134 000ms 135 001 Original Signal Figure b The Start bit and data 136 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins ll Stop bit bits Figure c Stop bit Figure 9 55 UART Analysis result 9 9 3 Notice on usage For better results and to reduce the error caused by the sampling the sampling rate of the LA series logic analyzer should be 10 times bigger than the UART Baud rate For example if the UART Baud rate is 9600 it s about 10Kbit s in order to get a better result after decoding the sampling rate of the LA series logic analyzer should be se
55. plug in The SPI Bus analysis plug in can decode the acquired data based on SPI Bus specifications It supports four transmission modes of SPI Bus and the variant length SPI data frame also allows user to decode the MISO and MISO signal together or separately 5 SSI Bus Analysis plug in The SSI Bus analysis plug in can decode the acquired data based on SSI Bus specifications It allows user to decode the DR and DX signal of the SSI Bus together or separately 6 Serial UART Bus analysis plug in The Serial UART Bus analysis plug in can decode the acquired data based on standard Serial UART Bus specifications It allows user to specify the baud rates data length 5 8 bits Stop bit length 1 2 bits and parity mode also allows user to decode the RXD and TXD signal together or separately 7 Manchester Coding Analysis plug in The Manchester coding analysis plug in can decode the acquired data base on the standard Manchester coding algorism It allows user to define the bit time signal idle state start bit parity mode frame length and error tolerance level Based on these settings first it will find out the data values bit by bit and then calculate the parity bit to verify it at last display all results directly and visually on the waveform viewer 8 Modified Miller Coding Analysis plug in The Modified Miller coding analysis plug in can decode the acquired data base on the standard Modified Miller coding It allows user to d
56. pop up automatically to ask you for hardware driver installations as Figure 3 7 shows click Install to install the device drivers for LA2532 o gt znAnalyser Driver Install Installing the driver of xAnalyser Tf you have suceessfully installed xAnalyser drvier please press Cancel Warning Disconnect the device when installing Figure 3 7 LA2532 driver installations 2 Figure 3 8 shows that the driver installation is in progress o gt zAnalyser Driver Install Installing the driver of xAnalyser Tf you have successfully installed xAnalyser drvier please press Cancel Warning Disconnect the dewice when installing ee f cee Figure 3 8 LA2532 driver installations Notice DO NOT connect the logic analyzer when installing the drivers 20 Please visit our Website www embedtools com Chapter 3 Software installations 3 After few minutes an information dialogue will pop up to indicate that the LA2532 driver installation is complete as Figure 3 9 shows Figure 3 9 Driver installation complete 4 Then the zlglogic software is successfully installed if you tick the Launch the program option then after the installation it will start the running of zlglogic2 0 software automatically iz zlgLogic 2 0 InstallShield Wizard InstallShield Wizard Completed The InstallShield Wizard has successfully installed zigLogic 2 0 Click Finish to exit the wizard
57. ror fddromd Time A Read Control E ADDR Signal State Enabled ro RD Tire m ADDR rert Figure c Hold time for the read operation Figure 11 9 The interpretation of read sequence 11 2 3 Notice on usage 1 The read write control signals are very important for the CF card TruelDE Mode analysis such as distinguishing the read write operations to registers judging the ATA commands and etc So user need to sample them together with the sampling of the CF Card TruelIDE Mode data transmissions 2 The displaying format of data is hexadecimal values 175 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in 11 3 Modbus Protocol Analysis plug in The Modbus Protocol Analysis plug in is aimed for the MODBUS protocol solutions on serial port data transactions It supports the RS232 RS422 and RS485 serial port communication interfaces and supports both RTU and ASCII transmission mode It decodes the data communications at the physical layer data link layer and MODBUS application layer respectively and supports up to 4 channel MODBUS modules 11 3 1 Modbus protocol decoding setup options BEODEBUS Protocol Decode Setup AD Signal Group TSO Signal Group Insert AAW Signal Y Y Source Signal RAD Source Signal RAD Result Mame RADI Result Mame TXD mo Location Before Signal Location Before Signal Color Color Basic Setup Baud
58. sampling ratio and trigger within the setup window just select their corresponding clip to bring up their setup interface 6 1 2 Dialogue Options Bus Signal Sampling Trigger Name Bits Pod B Pod A Insert Delete Up Down OK Cancel Help Bus Signal clip click to enter the Bus Signal parameter setup window Sampling clip click to enter the sampling parameter setup window Trigger clip click to enter the trigger setup window The name of the bus signal The bit length of the corresponding signal bus Corresponding to all brown probes of the logic analyzer Corresponding to all grey probes of the logic analyzer Insert a new bus signal Delete a selected bus signal Move the selected bus signal up one place Move the selected bus signal down one place Confirm your modifications on bus signal setups Cancel your modifications on Bus Signal setups Get help from the software Press F1 also works 51 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 1 3 Details on setting a Bus Signal 1 Add anew Bus Signal or change the name of an existing bus signal User can use the Insert button to add a new Bus Signal also can click the name of an existing Bus Signal to change it Notes Use only these characters to specify you bus signal name 0 9 A Z a z spacebar and _ underline 2 Assign Sampling
59. serial bus Its data frame length can be variable from 4 bit to 16 bit it also Supports the general master and slave mode The SSI Bus analysis plug in can interpret and decode the acquired data based on SSI Bus protocol specifications It allows user to decode the DR and DX signal of the SSI Bus together or separately 9 8 1 SSI Bus Analysis setup options SSI Setup SS Bus Property Clock Signal CLE FS Signal F5 Frame Length SS Analysis Result Setup Dx DR Enable Enable Source Signal Source Signat DR al Result Mame Result ame Location Location Color O Color S Daya Type Number Char Displaying Format C Ascii Hex Figure 9 41 The SSI Bus Analysis setup dialogue Clock Signal Select the clock signal for SSI Bus All single channel signals defined in the Bus Signal Setup dialogue are available for selection FS Signal Select FS signal for SSI bus All single channel signals defined in the Bus Signal Setup dialogue are available for selection Frame length Select the frame length for SSI bus data frame 4bit to 16bit the default setting is 8 bit Enable Enable the decoding to SSI DX signal or DR signal Source Signal Select a signal for the DX signal or DR signal All single channel signals defined in the Bus Signal Setup dialogue are available for selection Result Name Specify a name for the analysis result signal The default name for DX in IN for DR is OUT
60. setup Clock Signal The source clock signal for SPI transmission protocol All single channel signals are available for selection in this option SSEL Specify the Chip select signal for SPI bus All single channel signals are available for selection in this option SD Block Size Specify the size for each data block the default setting is 512Bytes SPI mode Select the operation mode of SPI which is defined by the combination of the CPOL and CPHA parameter There are 4 combinations which are CPOL 0 CPHA 0 CPOL 0 CPHA 1 CPOL 1 CPHA 0 CPOL 1 CPHA 1 respectively LSBF Select the bit order for the transmission Available options are LSB or MSB which means that the LSB or MSB is placed at bitO position respectively Enable Select this option to enable the decoding on DatalN or DataOut signal 183 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in MOSI MISO signal Specify the MOSI MISO signal for SPI data bus All signal channel signals defined in the Bus Signal setup dialogue are available for selection Result Name Specify a name for the result Data color Select the displaying color of the result Displaying User can select to observe the SD card data in different ways To observe the tokens user must select the command mode to observe every byte of data user must select the byte mode For comparison you can just select both of them Color Setup U
61. the standard Manchester coding algorism Figure 9 61 Plug in Manager The Manchester Coding Analysis plug in 143 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 2 Specify the target signal Select the target signal name to be measured the original data is derived form this signal and the analysis will then be performed on them All signal channel signal defined within the Bus Signal setup dialogue are available for this option as Figure 9 62 shows you should select the one corresponding to the actual signal to be measured Bus Signal Sampling Tri geer E Fad E Fod A 15 14 13 12 11 10 9 T 6 5 j4 JS 2 1 O 15 14 13 12 11 10 9 T 6 5 4 3 z 1 hasia 11 OOOO OA AAA OOO PAA nnana nananana ne MyBusO T onon0n00000000000000R NNN NM MOOCOOnON0O igure a Signals defined in Bus Signal Setup dialogue Hame RE Idle State Rit Time Rite earl E Figure b Signals available in Source Signal option Figure 9 62 Select a signal to perform Manchester coding analysis 3 Setup the Idle state Select the Idle stat for the signal This option is used to confirm the starting state of the signal According to the Manchester coding specification these two states Low and High will lead to two completely inverse results so this setting is extremely important for the analysis since it affects the result of analysis completely user should set it based on
62. this option to save each trigger wave form to a file in repetitive running mode the file name will be saved like 7 6 CurrentFileName_0 zla CurrentFileName_1 zla CurrentFileName_n zla 6 4 Trigger setup A logic analyzer can not only be set to trigger at the startup but also it can be set to trigger at different conditions Through the operation listed below you can set up your trigger mode quickly and precisely 6 4 1 Quick guides on trigger setup Step 1 click on the button or select the Setup gt Trigger option within the menu bar to open the trigger setup dialogue as Figure 6 5 shows 57 Please visit our Website www embedtools com Chapter 6 Function Descriptions Trigger Type Trigger Immediately ie Ne r E Trigger by a rising edge i Fosedge Hezedze i Edge Bus i Data Data Queue Pattern and Edge Pattern and Fosedze Trigger by a rising edge on the selected signal i Pattern and Negedge sn E Measuring Time Salect Signal MyBust 0 Data Width After Data Come After Data Go Count of Data Plug Trigger Advance Trigger Figure 6 5 The Trigger setup dialogue Step 2 Configure your trigger method select the trigger type on the left side of the dialogue and then the parameters of this trigger method will show up on the right side After configurations click to confirm your settings 6 4 2 Dia
63. write access to a specific address 60 Please visit our Website www embedtools com Chapter 6 Function Descriptions Figure 6 12 Data value and rising edge trigger Data value and falling edge trigger Triggered by a specified value appeared on the selected bus and a falling edge appeared on the selected signal If the inputted value has a prefix Ox it will be treated as a hexadecimal number otherwise it will be treated as a decimal number Usually it s used to detect certain types of operations such as the read write access to a specified address Figure 6 13 Data value and falling edge trigger Time related triggers Lasting duration trigger Triggered if a specified value appeared on the selected bus and then lasted over a specified duration Usually it s used to detect abnormal situations such as the width error of PWM output and burr analysis Figure 6 14 Lasting duration trigger Data arrival and delay trigger Triggered at the expiration of the specified delay period started from the appearance of a specified data value on the selected bus The unit of the time for the delay is calculated by sampling rates for example if the sampling frequency is 100MHz then the unit of the time is 10ns delay time Figure 6 15 Data arrival and delay trigger 61 Please visit our Website www embedtools com Chapter 6 Function Descriptions Data passed and delay trigger Triggered a
64. 0 21 Setting SPI Bus Analysis data trigger on 0x99 The result of the data trigger is shown as Figure 10 22 Notice that the trigger point is after a data value 0x99 00 00us 200 00us aes 5 scx 0 i un 0 e r Tigger at nr nal 7 x Figure 10 22 Result of SPI Bus Analysis data trigger on 0x99 Fill in a OxC6 within the data value box Figure 10 23 shows the result for this Tigger at Ox C Figure 10 23Result of SPI Bus Analysis data trigger on 0xC6 You can also set a data trigger on receiving a value on SPI Bus the settings are quite similar to the data trigger on sending a value on SPI Bus 162 Please visit our Website www embedtools com Chapter 10 Plug in Triggers 10 8 SSI Bus Analysis plug in trigger 10 8 1 SSI Bus Analysis plug in trigger setup 55 Trigger Setup Lk Fs oxDR DATA Trigger Signal Ook Opa Daa Figure 10 24 SSI Bus Analysis plug in trigger setup interface Trigger Signal Select the target signal to set a trigger either DX or DR Both of them are corresponding to the settings of the DX and DR signal within the SSI Bus Analysis plug in setup dialogue If user disable DX or DR within the decode setup dialogue then the corresponding signal in trigger setup interface will be deactivated not selectable vice versa Data Specify a data value as the trigger condition When this data appears on the SSI Bus the logic an
65. 12 bytes then each read write operation should carry 512 bytes of data Notice that the settings for data block size should be the same with the actual settings of the hardware or else the decoding result may go wrong 5 Leave other settings as default if you don t want to change them The decoding result for this example are shown as Figure 11 23 F so 000us I le p a LOU ODDW s LS0 000ys 200 000s re pyoufhy yopyfeysypysyfy y y y ihiyy yy fy yy Dataln Decoding Byte wode Data In Decodin An I 1 I 1 i PPP ee P F E P era Dataln i 1 1 iii IHR HH DASH il Wa fufode Incmd f HAC 35 Clock Cycles most Data Out Decodin Data Out I meen Byte ee Decoding TT A an F Command DataQut UH AP DERSLER HHHHII hode I i lI VELESUERVERU A VIM EECEEQEEL ET SAN Outen WAC 352 Clock Cycles i READ DATA mso Le TTL o Figure 11 23 Global view of the SD Card decoding result 185 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Zoom in to observe the command token from the master device to the SD card and the response from the SD Card devices to master bOOus sg 000us 32 000us 40 000us 42 000us 44 000us 46 0000 Lee ee i aaral sa il Command lail irail jangal ia raladi Command Parameters Code Bataln Intmd Most it es i oe a 49 000us 20 000us 21 000us 22 000us 1 O11 0 1 0 1 0 1 0 1 0 1 0 1 0 010 1010101 Oli oli Jo Data
66. 24WC02 define CAT24WCO02 OxA0O CAT24WC02 Device slave address define BEEP 1 lt lt 7 Buzzer BEEP controller port P0 7 beep on low voltage Gia E E hs Shs he ahs hs Pets eh stoke ls he cic Eo E hg Eo ahs he ots ols Phebe eh Eos oka he che rhe che ES ots ols oh he ots hy E E0 ety EOS E E B E BS cle chy ols ote he ote le ets che et che ote heart le etek ety ois ate vhs ots rly etch eis a GE BAER ete vie ets is cts ie ot x Function Name Delay NS Function descriptions Long software delays Imported parameter dly Delay parameter bigger for longer OK 28 OK OK K K KK K K K K KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK K K K K K void DelayNS uint32 dly uint32 i for dly gt 0 dly for 1 0 i lt 50000 i Es a rig a Oh he hg ela hs she he ele hai E Eaa Eo ria rhs Eo E ahs otc ols eke eis ets Eo Eo rhe rte obs ots oly ots eis ote ale ot ole ote rhs ets is ety ole ote hs ots ols GEE ale oto ole EEE Ea ete lg ots ols Ea toric ots is ete ie ate le ete is ets is a X Function Name I2cInitQ Function descriptions PC Bus initialization Imported parameter Fi2c C Bus frequency Maximum 400K OE OK OK OK K K K K K K KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK K OK K K K void I2cInit uint32 Fi2c if Fi2c gt 400000 Fi2c 400000 PINSELO
67. 6 Time related triggers Are Hold time No Actic Dont care cou w Don t care timr w And Goto Data arrival and del os E EE ET Data passed and delay No Actic s Don t care cou Don t care time x And Goto i Occurrence counting SE ee Puero e ere Advance Trigger TE A ma akiran Figure 7 22 Advanced Trigger setup with both counter and timer requirements 5 For a step with two conditions when the relationship between two conditions is set to OR you can not select two bus signal in one step conditions once you select a bus or a signal within one condition then the bus and signal options are not available in the other condition For example if you want to set a trigger to record the data when MyBus0 5 or 6 you will require at least two steps to achieve it The first step will find out if MyBusO equal to 5 if yes proceed to the second step else go back to itself the second step will find out if MyBus0O is equal to 6 if yes start the recording else back to first step Figure 7 23 and Figure 7 24 show the flow chart and the trigger steps setting for this example 85 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides Yes No MyBus0 6 Yes Start to record Figure 7 23 Flow chart for a single bus with two comparisons Sesa eee Bus Signal Sampling Trigger Immediate Si
68. 7 Set the falling edge of CS as a trigger for SPI experiment 3 Activate the logic analyzer Select record gt Run or click the cj button on the toolbar to start the data recording 125 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 7 4 Steps for analysis Check the recorded data sequence of the 74HC595 chip that driving the LED through SPI controls as Figure 9 38 shows sex es miso most Figure 9 38 LED driving sequence from 74HC595 through SPI control It s quite a complicate work if you analysis the SPI bus transfers manually The time sequence in Figure 9 38 shows this complexity of it But the LA series logic analyzer can do this for you 1 Use the SPI Bus analysis plug in to analyze the acquired data First is to complete the SPI analysis setup For this example the SPI mode are COPL 0 and CPHA 1 After the plug in setup run the analysis then the results are show on the waveform viewer as Figure 3 39 shows kd Dus 200 00us O 0 0Gus 4 00 00u3 00 0002 scx T Received daa _ es OUT mse yo IN i SPI T7 Transmitted MOST Figure 9 39 The result of SPI analysis 2 Verify the results with original codes 0xC0 OxF9 OxA4 OxBO 0x99 0x92 0x82 OxF8 0x80 0x90 0x88 0x83 OxC6 OxA1 0x86 and Ox8E these are hexadecimal value in the character table corresponding to 0 9 and A F One by one the program sent the
69. ABEL Figure 6 23 Add new measurements dialogue box Step 2 Select two target markers from the existing markers Step 3 Select the measuring objective including interval frequency duty ratio and edge counter four kinds of measurements and the default option is interval Click to confirm and dismiss the window 6 8 2 Dialogue options Choose markers Specify the measuring range the range in Figure 6 23 is from marker T to marker LABEL Measuring type Setup the measuring type 4 types of calculation are available interval frequency duty ratio edge counter OK Confirm and dismiss the setup dialogue Cancel Cancel this auto measurement setup Help Bring up the help information Press F1 67 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 8 3 Details on adding a new measurement Please refer to Auto Measurements 6 9 Data searching After the recording the waveform viewer window may have complex waveforms and many signals If you want to search a specific data within a specific bus or signal you can use the data searching function 6 9 1 Quick guides on data searching Step 1 Click the button within the toolbar or select Analyser gt Find option to bring up the data searching dialogue Bus Signal Hame From Search Min blax ownage o0 o when Find Next Placed Markel Exit Insert Marker Figure 6 24 Data searchi
70. AOODOADOAAAOOOAOAOOAAAOtrOo Figure 9 18 Setup the measuring channels for I C signals 2 Setup the trigger condition Once the bus signal setup is completed it s time to setup the triggers for this experiment we set the software to trigger at the falling edge of the SLC signal 112 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins _Bus Signal Sampling Trigger Trigger Type Immediate 4 Geral o iea Falling edge trigger Rising edge Falling dege Edze H Bus triggers Tata value Data Queue Synthesis triggers p Triggered by a falling edge appeared on the selected signal T Data value and ris Data value and fal Time related triggers Target Signal ICL Hold time Tata arrival and Tata passed and de Oeeurrence counting Plug in Trigger dA IIC Bus Analysis yt Advance Trigger Figure 9 19 Trigger setup 3 Start gathering the data Select Record gt Run within the menu bar to launch the data gathering or just click the gt button within the tool bar 9 5 4 Steps for data analysis Check the acquired IC read write sequence to the CAT24WC02 chip as Figure 9 20 shows 1 ieee Ouems 1 1 r 3000 Figure 9 20 I C read write sequence to CAT24WC02 Then it s time to use the I C bus analysis plug in to perform analysis to original data Complete the IC bus a
71. Analysis setup OPTIONS cceccececsetseeseesseseesseseessesteseestestereeseenes 105 9 4 2 Detailed CQOSCIIDTIONS 1 cccsccccsseseccsnseccscuscsssuecensuscensussessueessanesessaesessaanes 106 ro NoU ON USAGE eee er eRe eee een ee ee ern EEE ni eee en ae 109 9 5 Experiment on using IfC Bus Analysis plug in 0 c ccccessessessersessereesseseessereeeeens 109 9 5 1 Goal Of the CXPELIMON cccccseecccseececseesecseesecsansesnansessaueessauesessaesessaanes 109 9 5 2 Program list Of the experiment 1cccsceccsseecceeeccneessaneecsesesansessusesaneessaees 110 9 5 3 Steps for data recording crrr ieira r DE Ea E EE AEE 112 9 5 4 Steps for data ANALYSIS ccsccccsseccccseececsuesecsausessasecsausuessausessauseessusessanaes 113 9 6 SPI Bus analysis plug in o2ssirin c ccccsstsasondecdauaelameweteshdunselemedieadsedeansibatussceanaces 117 9 6 1 SPI Bus Analysis setup OPTIONS 0 ccccccceccceseeecesneeeeaneeessaeeessaeeessaeeessanees 117 9 6 2 Detailed CQCSCIIDLIONS ccscccccsseeecnseeeccaeecesceeessauseesausccssuesessuesessansessanaes 118 9 6 3 INOUCC on Usager e onen EE EEE EEA D EE ETER EEE 122 9 7 Example on using SPI Bus Analysis PIUQ iN ccccceccceeeceeeseeeeeeeseeeeaeeees 122 9 7 1 Goal of the CXPCLIMONL ccccccsesccnseececseesecsensecsensessasessaueeesanssessaesessaanes 122 S A 016 16210 0 E E E ee ee ee eT E A A 122 9 7 3 SICDS TOF TOCOOING sirere in E E EE S 124 9 74 Steps for analysis vxescsszsressepac
72. As Figure 9 33 shows select your Data type and Displaying to decide the displaying style the result of analysis 120 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Data Type Number C Char Data Type Number Char Displaying Format Decimal Hex Displaying Format Ascii Hex Figure a Numeric type data Figure b Character type data Figure 9 33 Data type and Displaying settings 6 The result of decoding T s O0000ms 3 00000ms 10 00000ms 11 0000 scx cs most OUT mise amp 20000ms See sex iS OT mise Figure b Zoom in view 2 80000ms 3 00000ms scx 1 cs 1 most OUT mise Figure c Zoom in view Figure 9 34The SPI decoding result 121 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 6 3 Notice on usage According to the standard SPI specifications before sending every byte the CS signal should be pull down as a falling edge and at the end of a byte the CS signal should be pull up for a rising edge On multiple bytes transmission this procedure repeats from time to time The SPI Bus always regards the falling edge of CS as a sign of the beginning of a transmission So if there s no falling edge on the CS signal the decoding will be failure even the signals and responses on the Clock signal and data signal are correc
73. Conversion Analysis plug in can sample the value of the inputted analogue signal and then use a smooth curve to draw it on the waveform viewer User can also verify the results with the analog values under the Enable conditions including high or low voltage level rising or falling edge 9 3 1 A D Conversion setup options Base Setup 4 0 Output Enable Always w Loversion Result Setup Result Hame Location Color Figure 9 5 The A D Conversion Analysis setup dialogue A D output Select the output bus to perform the A D Conversion analysis All available options are buses with multiple channels Enable Select the Enable condition of the A D conversion output Available options are Always means always enabled or a single channel signal as enable conditions including high low level voltage rising or falling edge Result Name The name of the analysis results 107 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Location Location to place the result signal two options are available before or after the original signal Color The color of the result signal OK Confirm the settings and dismiss the dialogue Cancel Cancel the settings and dismiss the dialogue 9 3 2 Detailed descriptions 1 Select the Tool gt Plug in Manager option to open the plug in manager dialogue Then select the A D Conversion Analysis within the plug in list and clic
74. D i T Serial UART Bus Data and ts decoding result Figure 12 6 A project using multiple plug ins 190 Please visit our Website www embedtools com Chapter 12 Tips on using plug ins Many ways to achieve this but user should configure each plug in before using it The steps for plug in setup are described in previous chapters User can select the Tool gt Plug in manager to bring up the plug in manager dialogue User can hold down the Ctrl key and right click to select multiple plug ins like selecting the SSI Bus Analysis and Serial UART Bus analysis option in this example After selecting all the required options just click the Settings button to set plug ins one by one Plug in Hanager Hame Version Manchester Codin 1 01 Modified Miler C 1 01 MODBUS Protocol 2 01 1 WLRE Bus Analysis zZ U3 SI Card Analysis 2 U1 SFI Bus Analysis 2 1 ool Bus Analysis 2 UART Bus Analysis U LJ E Im the settings signal of the SSI Bus for each plug in Sens 0K _ Figure 12 7 Select multiple plug ins Chapter 13 Special Functions 13 1 Digital filters 191 Please visit our Website www embedtools com Chapter 13 Special Functions When there are lots of high frequency noise on the signal channel user can use the digital filter function provided by the LA Series Logic Analyzer There are two filtering levels level one filter can filter high frequency puls
75. File Record Setup Analyze View Window Tool Language and Help options Toolbar Contains the shortcut buttons for frequently used functions such as start Zooming locate search configuration and cursor operations Logic pen Showing the current states of DO D31 channel 39 Please visit our Website www embedtools com Chapter 5 Menu descriptions Multi document structure Open multiple files at a same time Customized cursor Display the cursor customization information Tree structure groups Display a defined bus in tree structure groups Customize color and width Customize the displaying color and set the displaying width of the waveform for a bus signal Protocol analysis Perform protocol analysis on a signal Hexadecimal display Display the bus status in hexadecimal form Cursor pointing notes Display the related information of the items where the cursor is pointing to Status bar Display the sample rate and working status of the logic analyzer Automatic measuring Display the defined measurement value which can be set to the value of a specified interval between two markers frequency duty ratio or on change calculations 5 2 The File menu File Record Setup Analyser View Hew CtrltH i Open Ctrlto Close Save Ctrlts ji Save ALL cave Backup as Dave as Import Export Export As COSY File Print CtrltF Print Preview Print S
76. K K K K K K K K K K K K K K K K K K K K K ok K K uint8 MSPI_SendData uint8 data IOCLR HC595_CS Chip selection for 74HC595 SPI_SPDR data while 0 SPI_LSPSR amp Ox80 awaiting SPIF to be set which means that the data transfer is complets 123 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins IOSET HC595_CS Release the chip select signal return SPI_SPDR Initialize the number character table of 0 F for LED this LED is a 8 segment common positive device uint8 const DISP_TAB 16 10123456789 OxC0 0xF9 0xA4 0xB0 0x99 0x92 0x82 0xF8 0x80 0x90 HAbCdEF 0x88 0x83 OxC6 OxA1 0x86 Ox8E e Name main Function Use SPI 74HC595 to drive the 7 segment digital LED to display 0 F e int main void uint8 1 uint8 rcv_data PINSELO 0x00005500 Set up SPI pin connections PINSEL1 0x00000000 IODIR HC595_CS MSPI_ InitQ Initialize SPI interface while 1 display 0 F character for i 0 i lt 16 i rcv_data MSPI_SendData DISP_TAB i send the data to display DelayNS 100 Delay return 0 9 7 3 Steps for recording 1 Bus Signal Setup According to the schematic connect the circuit and download the program to LPC2131 processor Then connect the LA logic analyzer probes with the SPI clock signal SCK the Chip select signal CS Master In Slave Out signal MISO and the Master Out Slave IN signal
77. Logic Analyzer User Manual Version 1 00 Issued by Guangzhou ZHIYUAN Electronics Co Ltd J BBC sat FF BR 2S A 40 T 020 22644372 Contents E 2007 Guangzhou ZHIYUAN Electronics CO LTD All rights reserved Contents Chapter 1 Product INtroductiOn cccssccsesseecseseecenseeeeneeecnsesenseesensenees 1 1 1 Why using a LOGIC analyzer eee ccc ccc eecceecc seca cece eese ees eceeeseeeseeeeeeeeeseeeaeeeaeeses 2 1 2 Logic analyzer Or oscilloscope cece ceccceececececeeceee cece eeceeeceueeeeeeseueesueeaeeeseeesaues 3 1 2 1 Differences between logic analyzers and oscilloscopes 2 cccseeeeeeeeeees 3 1 2 2 The measurement methodology Of logic ANAIYZESS 111cccsesccsesecseseseeeens 4 1 2 3 Advantages ON USING logic ANALYZES S 1 ccsssecssececseeccaeeecsusesausessneessuessaeens 4 1 2 4 Four application fields Of logic analyzef 11ccccsseeeceneeeeenseecanseesaneneseneneees 4 1 3 Application example of logic analyzer eee ceccceeeeceeeceeeceeeeeeeseueeeeeseeeseeeeaas 5 1 3 1 Multi channel measuring cccceecssecccaceecseeccceesuensecsuscnsusensusensusensusesanessaes 5 1 3 2 Bus frequency measurements cccccccseeccsusecaneesseeessusessueesssessneessansssaeesens 6 kos POO CT aD V e e E E E EE EE T E E 7 1 3 4 Capabilities on analysis ccseccatcedceirnereceidecnsaceasnodiartesesdieencseculandsdssndolesseeands 8 LS ENO CAP UOS eenaa E E ERE E E E E 10 Chapt
78. Modbus protocol PDU and error checking field asFigure 11 18 shows RADI ETU FRAME MODBUS REQ Figure a Zoom in to view the slave address on link layer 24 000ms 24 000ms 27 OOOms 26 0 Li Li Li l Li i L Li l i Li Li Li l Li Li Li Li l Li Li Li Li l Li Li Li Li l Li Li Li Li RADI RTU FRAME Figure b Zoom in to view the PDU field on link layer 181 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in RADI ETU FRAME y LRL BEGE Figure c Zoom in to view the Error checking field on link layer Figure 11 18 Zoom in to view the read write operations performed to registers Zoom in to view the Modbus protocol layer decodes It includes the function code response type response to exceptions and other settings within the example we can only see the function code and PDU Data section as Figure 11 19 shows RADI RTU FRAME MODBUS REQ Figure a Zoom in to view the function code a ee ee RAD m J 1 010l O it a RADI an es sen aia RTU FRAME MODBUS REQ Figure b Zoom in to view other parameters Figure 11 19 Zoom in to observe the Modbus protocol layer decodes 11 3 3 Notice on usage 1 Find out the appropriate Baud rate Due to the errors in practical situations the Sampling frequency should at least be 10 times bigger than the Baud rate to ensure the precisions For example assume that the Baud rate for RS232 or
79. PINSELO amp OxFFFFFFOF 0x50 Enable the IC port PINSELO PINSELO amp 0xF0 0x50 Mask the effects to other ports I2SCLH Fpclk Fi2c 1 2 Setup the I C Clock source I2SCLL Fpclk Fi2c 2 I2CONCLR 0x2C I2CONSET 0x40 Enable Host C Enable the IC Interrupts VICIntSelect 0x00000000 Set all channels to IRQ mode VICVectCntl0 0x20 0x09 Allocate I7C channel to IRQ slot0 with highest priority VICVectAddr0 Gnt32 IRQ_ I2C Set up PC vector address VICIntEnable 1 lt lt 9 Enable Le interrupts 110 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins YE SE B E E E G E Eo B3 B Eos E E3 G OE Oe ca anton Sao at ahaa GS ES B st ean Got canis cs a E han G E hasta ES a sta E E E EREE x Function Name main Function descriptions Write 8 bytes of data to CAT24WC02 then read them back for verification xK If correct give out a single beep else beep continuously OK OK KK K K K K K K KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK K K K K K K K int main void uint8 1 uint8 data_buf 32 PINSELO 0x00000000 Set the pin selection for GPIO PINSEL1 0x00000000 IOODIR BEEP Set up the buzzer controller output IOOSET BEEP Deactivate the buzzer IRQEnable Enable the interrupts I2cInit 400000 Initialize the C to 100K mode for 0 1 lt 8 i
80. PROEHRMW BEBE H nal EEO AAA oe XTAL Ox1 1 WE 140ns ered tare vara are ave wer 1 0 TAL lt Auto Heasure Mi M2 300ns 1 M1 M2 3 33MHz Bahii BLES 432 100 OOMHz Figure 4 7 The measurement result of XTAL signal 27 Please visit our Website www embedtools com Chapter 4 Quick start tutorial 4 3 Bus activity measurements Step1 Connect the CH4 CH11 probes of Pod A to the QO Q7 pin of the 74HC164 chip respectively as Figure 4 1 shows Then Select the Setup gt Bus signal option within the menu to bring up the Bus Signal setup dialogue then click the Insert button to add a bus named LED as Figure 4 8 shows Then click JOK to proceed EWES e EFi ce ce De Pod A lS J4 13 12 11 109 6 Tb OS 4 Ss el Q IS I4 13 Iz 11 10 8 oT 6 5S 4 Jie 1 0 ATAL l fe LE SEES EEE EEE EERE ERE RES E a a Aw Seg bean reo ae ma Figure 4 8 Add a LED bus Step 2 click the run BS run once within the tool bar the measurement result of the logic analyzer is shown as Figure 4 9 ag logic_demo rla egs toogpme 15000m z0q00ms 2s0000ms TAL E LEC T LED O LED 1 T LED 2 LED 3 f LED 4 fT LED S 0 LED 6 T LED 7 Figure 4 9 XTAL and LED measurement results 28 Please visit our Website www embedtools com Chapter 4 Quick start tutorial Step 3 Since the XTAL has much highe
81. Qut i FF Outcmd ACR SUlock Cycles I C _ MISD 1 SO Card io NCR Delay Figure b Response of the SD Cara Figure 11 24 Zoom in to observe the command token and response token Zoom in to observe the data token and read write data Data Token Read operation starts O 000us 172 000us 1 4 000us 17 Data Qut Gutcmd READ DATA mise Figure 11 25 Check the data token Zoom in to observe the CRC 3 98ms 3 900ms 3 902ms DataQut ytd mise Figure 11 26 Observe the CRC segment 186 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in 11 4 3 Notice on usage 1 When analyzing the SD Card command token the default CRC for command token is 0x95 If the CRC value for a user command token does not match with this value then it may not have a correct command token and other SD token 2 All data are displayed in hexadecimal numbers Chapter 12 Tips on using plug ins 12 1 Overview This chapter will provide some useful techniques on using plug ins such as how to deactivate a plug in how to reactivate it how to use multiple plug ins and etc 12 2 Deactivate a plug in After using a plug in to perform specific analysis in some circumstance user may want to disable the plug in For example Figure 12 1 shows a decoding result of the SSI Bus Analysis plug in i a r cue FS 0 1 0 Di a oR 1
82. RERE M i ui a051 Fe EFH IL DI apt ani zlelogic P g ee Figure 3 13 Launch the program from start menu 23 Please visit our Website www embedtools com Chapter 4 Quick start tutorial Chapter 4 Quick start tutorial To meet the requirements of the technology developments MCU based embedded system designs takes up more and more percentage within the electronic device development projects The following section will take the application of logic analyzer on a MCU system as an example to illustrate how to use the LA2532 logic analyzer 4 1 Introduction of the experiment Here we will describe the measurement of a flow light experiment board as a tutorial example to help your about how to use the LA2532 logic analyzer The schematic of the flow light experiment board is shown as Figure 4 1 Within it we can see that the P89LPC913 processor is controlling 8 LED through the SPI bus to figure out what s happening on the board we place 12 measuring probes on the circuit CHO CH11 dr l l t 7 l and the measuring location of each probe is marked with a sign in Figure 4 1 Ul U2 m a _VCC33 z P1 0 TXD P0 6 gt Sr ons i Q0 one 70 EDI P1 1 RXD P2 5 SPICLK CP Ol HS R2 a I 1 5 Z CH6 70 ED2 P22 MOSI pps A Q2
83. RS485 is 9600bps which is roughly 10Kbps then in order to reduce the hardware errors to an ignorable degree the sampling rate of the Logic analyzer should at least be set to 100 KHz 2 The data displaying format is hexadecimal for data link layer decoding 182 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in 11 4 SD Card Protocol analysis plug in The decoding and analysis of the SD Card protocol analysis plug in is based on the SD card protocol specification under the SPI mode The SD Card plug in starts the from the SPI bus analysis and ended at the SD Card protocol layer It interprets each token on the SD card protocol layer and then displays it with different color and flags quite convenient for user to observe the commands responses transmission data CRC check delays and all kinds of information defined in SD Card protocol 11 4 1 SD Card protocol decoding setup dialogue SD Card Decode Setup SPI Bus Setup Clock Signet SCE w SSEL Signal LSBF SPI Mode CPOL 1 CPHA SD Block Size Bytes DatalN Setup DataQut Setup MOSI Signat MOS OE miso sionat x Enable Result Name D atalr Result Name Location Before MOSI ka Location Color J Displaying Displaying Command Byte Data Command Byte Data W Color Color Setup Command Data Token Data Error Token TY Response Token I DATA J Timing Constants J i Figure 11 20 SD Card Protocol decoding
84. Rate 3600 Panty Mode Transmission Mode ATU ASCII Q Color Setup Show Address Pou Data DN Eror Checking Filed Physical Layer Link Layer Function Code Ty MODBUS _ MODBUS Protocal Add User Function Code m Figure 11 10 Modbus protocol decoding setup dialogue RXD Double click the blue button to add a new RXD signal This is the signal channel used by master device to initiate transactions and queries TXD Double click the blue button to add a new TXD signal This is the signal channel used by slave devices to response the queries and requests Baud Rate Select the transmission Baud rate for RS232 RS422 or RS485 The default Baud rate is 9600bit s Parity Mode Specify the parity mode for serial port transmissions Available options are None Even and Odd the default setting is None 176 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Transmission mode Select the serial transmission mode of Modbus protocol Available options are RTU and ASCII the default setting is RTU mode Here is the description for RTU mode RTU Mode When controllers are setup to communicate on a Modbus network using RTU Remote Terminal Unit mode each eight bit byte in a message contains two four bit hexadecimal characters The main advantage of this mode is that its greater character density allows better data throughput than ASCII for the same baud rate Each message must be
85. SSI Bus Analysis plug in is gone 188 Please visit our Website www embedtools com Chapter 12 Tips on using plug ins Plug in Manager Name Version 1 01 1 01 2 01 2 03 2 01 2 2 Manchester Codin Modified Miler C MODBUS Protocol 1 WIRE Bus Analysis O1 UART Bus Analysis Description The SSI Bus analysis In can decode the acquired data based on 55 F Then click ations Ik allows user to decode the DA and Rice he S51 Bus together or separately Figure 12 4 Deactivate the SSI Plug in 12 3 Reactivate a plug in This is the reverse action of deactivating a plug in since the last plug in settings will be saved by the software so user does not need to reconfigure the parameters Just place a tick in front of the plug in name then confirm it by clicking OK button to reactivate the plug in For the abovementioned example assume that you had already set up the SSI Bus plug in and then deactivated it the setups to reactivate it are Select the Tool gt Plug in Manager option in the menu bar to bring up the Plug in manager dialogue You can reactivate the SSI Bus analysis plug in by placing a tick in front of its name as Figure 12 5 shows 189 Please visit our Website www embedtools com Chapter 12 Tips on using plug ins Plug in anager Ed Plug in Hanarer Kame Version Hame Versi om Ol Ol 1 01 Manchester Codin 1 1 01 Modified Miler C 1 2 01 MOUBUS Protocol 2
86. Setup AO Signal TD Signal Enable _ Enable Source Signal Source Signal Result Mame Result Mame jour Location Before RO Location Data Color Data Color O d Color Setup Data Type O Number Char Start Bit i Displaying Format Ascii Hex Stop Bit _ Parity a Figure 9 48 UART setup dialogue Baud rate Select the UART Baud rate the available options in the drop down list are 300 600 1200 2400 4800 9600 19200 38400 and 56800 the default setting is 9600 bps User can also enter a new Baud rate value within the selection bar if the required value is not readily provided in the list Data length Specify the length of the data 5 bits 8 bits the default length is 8 bits Stop bit Specify the stop bit length 1 bit or 2 bits the default setting is 1 bit Parity mode Specify the parity mode the available options are None Even Odd Mark Space The default parity mode is no parity Enable Enable the decoding for RXD signal or TXD signal Source Signal Select a signal for the UART RXD signal and another signal for TXD signal All single channel signals defined in the Bus Signal Setup dialogue are available for selection 132 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Result Name Specify a name for the result of the analysis the default name for RXD bus is IN and the default name for TXD is OUT Location Select the l
87. Sos X Name UARTO_SendStr Function Send a string through the serial port Imported parameters str The pointer to the target string OK OK OK OK K K K K K K KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK K K K K K K K void UARTO_SendStr uint8 const str while 1 138 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins if str 0 break Quit at the end of data UARTO_SendByte str Send out data Es i rhs ia he he hg ela E is oh heels hart hs Eo ois rhs Eo E ahs ote ols So hs ES Eo Eo ale rte hy obs oly rts eis ots ale ots ole ots rhs ets ls ety ols ote hs ots ols GEE he ot ole ots ris cts lca rhe ete oly ots ols rte eis ots ale toric ots is ete ic ats le cis is ets to a X Name main Function Main program to send out Hello World string through the serial port OK OK KK K K KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK K K K K K K K int main void uint8 snd 32 int 1 PINSELO 0x00000005 Pin selection to set I O for VARTO UARTO_InitQ Serial port initialization snd 0 H snd 1 e snd 2 1 snd 3 1 snd 4 o snd 5 snd 6 W snd 7 o snd 8 r snd 9 snd 10 d sad 11 snd 12 0 while 1 DelayNS 10 UARTO_SendStr snd Send
88. Synthesis triggers E Data value and ris DATA Data value and fal Time related triggers Hold time Tata arrival and Tata passed and de Qeeurrence counting Plug in Trigger SFI Bus Analysis Advance Trigger Trigger Signal Figure a Activated signal for SPI Plugin trigger MOSI MISO Source Signal Source Signal MyBus1 vl Result Name Result Mame bur e Figure b Enable state of the SPI MOSI and MISO signal Figure 10 18 The MOSI and MISO signal settings 3 Set a data value trigger You can input decimal value or in hexadecimal value here then click to confirm you trigger settings 4 Figure 10 19 shows a result of the data value trigger The data value in this example is OxBO as the figure shows when this value appears on the bus the logic analyzer is triggered to start the recording oso Sra nr ro E sck es most OUT miso oftpit o i o Figure 10 19 Data value trigger for SPI Bus analysis plug in 160 Please visit our Website www embedtools com Chapter 10 Plug in Triggers 10 7 SPI Bus Analysis plug in trigger example 10 7 1 Goal of the experiment This experiment is the same experiment as described in Chapter 9 7 the goal of this experiment and source codes are listed in Section 9 7 1 and Section 9 7 2 so the first thing you need to do is just follow the steps listed in Section 9 7 3 to setup the SPI Bus Analysis plug in After all
89. TO signals to transfer a OxFD value 54 74000ms i _ were were PEERAA LIERNE PEAREN FD Figure 4 22 Transmitting 0xFD value on SPI bus 36 Please visit our Website www embedtools com Chapter 4 Quick start tutorial So it is too complex to describe it with normal trigger types But the LA series logic analyzer can handle this by using its Plug in trigger which is a special function designed for this kind of analysis Step 1 Click the Setup gt Trigger to bring up the trigger setup dialogue then select SPI bus analysis option under the plug in trigger to show its settings on the right side of the dialogue then fill in a OxFD in Data field as Figure 4 23 shows Bus Sienal Sampling Trigger Immediate A SFI Trigger Setup Signal triggers Rising edge Fall Edge ing dege I SCE Bus triggers SSEL Tata value c Tata Queue MOSLMISO E Synthesis triggers Tata value and ris DATA Tata value and fal Time related triggers Hold time Data arrival and t Trigger Signal Data passed and de MoS MISO Data OFE ccurrence counting Plug in Trigger SPI Bus Analysis Adyatice Trigger Figure 4 23 Plug in trigger configurations Step 2 Click the button to confirm the settings Then click the Run run once to start the sampling the recording will start after the trigger condition satisfied Figu
90. WIQOGL sects ccsndtswadertsccsedesdensedacenoasedstonddcunsiastdatcucdenrsseceseidenddds desoesetessadaceses 36 Chapter 5 Menu descriptions ccccceeseeceeseeceeeeeceseeeenseseenseseenseseenees 39 i hs CS eM OW aeann stare ari snaimewiansneaauesunadan EE 39 92 The File MENU sssini ESE aAa a aE AREE 40 9 9 IMG Record MENU i errricsrsnnis reinii adiera ai 41 DA eUe AU e RE EE AEE 42 99 WINGY Seb MEDU ciana E E EESE 43 5 6 The VIGW Men siie2 seinen eddie asin naa ai a a aaa a Aa a d a iea EAE a 44 5 7 The Window MenU cccccccscceseceecceecceeceeesaceccecuecauecseeseeecaeseuesaeeseescuesueseeesas 44 OO TNE TOO MONU ernieren EEA E AN EEEE ET EEEE 45 gza Tie Language MENU e E E a E a a 45 S10 The Help MENU cernis serine raTa a TAE EEE ANENE 46 5 11 The Toolbar customization MENU c cece eeeceecceeceeeeeeeceeeseeeaeeeeeeseeeeeeaeesaeeees 46 5 12 The waveform viewer assistant Menus ccccecccecccececeeeeeeeeseeeseeesaueeseesaues 47 5 12 1 Waveform viewer right Click drop down MO NU 1 cccseeeceseeeeeeneeeneneneees 47 5 12 2 Waveform Selection drop down MENU 1sccccseccccsneececeeececsescsseesessaneeees 48 5 13 Waveform files and Bus Signal assistant MENUS ccccseceseeeeeeeeeeeeeeeeeeees 48 5 13 1 Waveform file right click drop down MONU cccseeeceneeeeeeneestaneneseaneeees 48 5 13 2 Bus Signal right Click drop down MENU 1ccccssececsseeessaneeseaeessaeeessneeeees 49 Chap
91. Website www embedtools com Chapter 8 Plug in Analysis 3 A single project can support multiple plug ins You can run multiple plug ins within a single project when there are multiple bus signals 97 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Chapter 9 Bus analysis plug ins 9 1 Overview on Bus analysis Bus analysis plug ins recover and decode the acquired data based on specific bus specifications For example when you re analyzing a Serial UART bus you need to know what type of data is transferring and also need to divide the data per 8 bit and calculate their value manually A Serial UART bus analysis plug in is a helpful tool to free you from all this boring works it will complete the Serial UART bus data analysis automatically and recovers the original data values that being transfer and display the result clearly and in different colors on the waveform viewer 9 2 The 1 Wire bus analysis plug in The 1 Wire Bus issued by Dallas Semiconductor uses only one signal wire to communicate through devices with well defined and time proven protocols The 1 Wire Bus Analysis plug in can find out the time sequences in 1 wire transmissions data such as reset sequence read write sequence and etc also support the standard and high speed bus mode But it will not perform upper layer protocol analysis to user data 98 Please visit our Website www embedtools com Chapter 9 Bus
92. Write 0 Response No Response Chapter 10 Plug in Triggers O Read 1 Read 0 Figure 10 2 1 Wire Trigger setup interface Trigger type Select the trigger conditions for 1 Wire Bus for trigger types Reset read or write operations and responses types OK Confirm the current settings Cancel Cancel the settings 10 3 2 Detailed descriptions 1 Complete the decoding setup for 1 Wire Bus Analysis plug in 2 Select the Setup gt Trigger option from the menu bar to bring up the trigger setup dialogue you will find that the 1 Wire Bus Analysis option has been added under the Plug in Trigger option Select this item then the 1 Wire Trigger setup interface will appear as Figure 10 3 shows The default trigger condition is the reset sequence with ACK signal Bus Signal Sampling Trigger Edge 1 Wwire Trigger Setup H Pus triggers Data value Data Queue Reset Co write 1 E pa genes Response Type White O Data value and fal Aesponse cp Time related triggers i Hold time No Response Tata arrival and Data passed and de Qecurrence counting Plug in Trigger TIC Bus Analysis ECHTER Bas Anelysi SPI Bus Analysis SSI Bus Analysis UART Bus Analysis Advance Trigger Read 1 Read 0 Figure 10 3 The trigger setup interface for 1 Wire Bus Analysis plug in 3 Figure 10 4 shows the trigger result of an example of 1 wire bus analysis trigger
93. XD for UART experiment 3 Activate the logic analyzer Select Record gt Run in the menu or just click the button to activate the logic analyzer 140 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 10 4 Steps for analysis Check the acquired data the original waveform of the Hello World string send by LPC2131 UARTO port is shown as below setae a aa Seen aAA a i soars aa E 87 1 a a TXO Figure 9 58 The original waveform before analysis The traditional ways to recover UART data is quite complicate as in this experiment extract the Hello world string out from the LPC2131 UARTO data manually can take a long time To find out a character in UART data first is to calculate the time period for each bit based on UART Baud rate then find out the start bit of a frame 8 bits of data and the stop bit at last but this is not the end you should also check the ASCII code to find out which character it represents Definitely it would be a boring and tedious work to find out the whole string Hello World But with LA series logic analyzer it s a different story its UART Bus Analysis plug in can handle all these boring jobs automatically and give you a much faster way to recover your required data The UART Baud rate for this experiment is 115200 and the Data type is Char TXD decoding only after setting all these within the UART setup dialogue the result
94. You can find a Run and Run Repetitive Pa options within the Record menu Click either one of these options to start the recording as Figure 6 18 shows Also there are two shortcuts within the tool bar can do the same thing Record Setup Analyser y gt gt all T Figure 6 18 Run and stop If you need to keep on recording without stop like an oscilloscope you should start it by clicking the Run Repetitive option This command will start the recording of data repetitively it will not stop after the first trigger record display procedure and it just repeats this procedure until you stop it 6 6 Add markers The markers on the waveform viewer window can be used to mark and measure the acquired data The default markers are T M1 and M2 Marker T represents the trigger position You can add new markers if you wanted they can simplify your analysis works by marking out importance places of the signal 6 6 1 Quick guides on adding a new marker Step 1 Click the 4 button within the tool bar or select Analyser gt New marker option to bring up the new marker dialogue as Figure 6 19 shows 63 Please visit our Website www embedtools com Chapter 6 Function Descriptions Barker Name eE Color E Place Center Of The Sreen Figure 6 19 The new marker dialogue Step 2 Enter the new marker name and select the displaying color for it by clicking the small arrow on the right bottom
95. Zoom out zoom out the waveform Analyze gt Zoom in Scroll the waveform leftwards Scroll the waveform rightwards 212 Please visit our Website www embedtools com APPENDIX Appendix Ill ISO9000 Certificates CERTIFICATE OF REGISTRATION This is to certify that the Quality Management System of GUANGZHOU ZHIYUAN ELECTRONIC CO LTD 3 Floor No 6 Building Huangzhou Industral Estate Chebei Road Tianhe Guangzhou China For Manufacture of MCU Emulator ARM Emulator MCU Programmer Expenment Instrument USB Analyzer CAN Bus Analyzer LED Tester Gate Access System Has been assessed by AFAQ EAQA and complies with the Quality Management System requirements of 1809001 2000 l n ORIGINAL DATE OF l CERTIFICATE NO CERTIFICATION DATE OF ISSUE DATE OF EXPIRY 5331 B April 2004 a April 2004 7 April 2007 APPROVED BY F EE ON BEHALF OF AF AG EAGA LTO AP AGF Lid I3 Pwi Sire anm LONDON SET A Part of ee AP AQ Greg of Cagna Tha certo os lee prope of AF AG EADA Lid and peed i bo Mar cio iH The bet of AP Aeonin Mak ioi Boccia Wo pepe of oe soii comune fey ber Cote hura O22 213 Please visit our Website www embedtools com APPENDIX Guangzhou Zhiyuan Electronics Co Ltd ADD 2 Floor No 7 building Huangzhou Industrial Estate Chebei Road Tianhe Guangzhou China Postcode 510660 TEL 86 20 22644372 FAX 86 20 38601859 Copyright C 2005 Zhiyuan Electronics All Rights Reser
96. a Bus Signal include the name color and the corresponding channel s all these can be configured within the Bus Signal properties window 52 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 2 1 Quick guide on bus signal properties setup Step 1 Right click on any bus or signal within the bus signal dialogue to bring up the context sensitive menu then click properties to pop up the bus signal properties dialogue as Figure 6 2 shows aik Ta m TE APERIN ERE C To Do DT D8 DIS GND NC POD A a POR B COOL LLU E Figure 6 2 Bus Signal Properties dialogue Step 2 modify the properties of the bus or signal E Name E Color Enter a new name for this bus or signal Click to select the displaying color for this bus signal Mm Select channels Just tick the channel you want to record Step 3 Click to confirm and dismiss the dialogue 6 2 2 Dialogue options Name Color Pod A Pod B GND NC OK Cancel User can change the bus signal name here Click to select a displaying color for this bus signal Corresponding to all grey probes of the logic analyzer tick it to activate the measuring on this probe Corresponding to all brown probes of the logic analyzer tick it to activate the measuring on this probe The black probe of the logic analyzer is system ground The orange probes are reserved ports Confirm the settings and dismiss the di
97. a Eo Eo rhs ia oh he hg ela hs is E heels hace hs Eo ois rhs Eo E ahs otc ols eke eis ES Eo Eo ale rte obs obs ols rts eis ots ale ety ole ots rhs ets ls ety ele ote hs ots ols rts EEE SA ots ris cts le Ea ete ols ots ols rte wis ots ele toric ots rs ete ic ats le cis ets et Name UARTO_InitQ Function Initialize the serial port set the data length to 8 bit stop bit length to 1 bit no parity a bits Baud rate for transmission are 115200 OK OK KK KK K K KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK K K K K K K K void UARTO_Init void uint16 Fdiv UOLCR 0x83 DLAB 1 Enable Baud rate settings Fdiv Fpclk 16 UART_BPS Set the Baud rate UODLM Fdiv 256 UODLL Fdiv 256 UOLCR 0x03 DIES SG E Ea B Na E a ata at Sara Eo Eos Go Eo Ra a aaa aaa an at asada ta ata hos aaa ast as ad aaa Sat hota RE Ea Name UARTO_SendByte Function Send Data bytes and wait for the transmission completes inquiry mode Imported parameters dat The data to send OK OK KK K K K K KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK K K K K K K K void UARTO_SendByte uint8 dat UOTHR dat while UOLSR amp 0x40 0 Wait till the sending ends TES Boa E Ea B es B3 B Eos E E3 G E Eo Se IO a EI EO EOS BI EOS an Saas os aU ES cot anne Seat aon ost asa tae E asta ES staan iota
98. a and etc It can display the results directly on screen quite convenient for user to observe and compare it with the original signals Figure 1 9 shows an example of analysis on SD card transmissions 9 Please visit our Website www embedtools com 77 Bie FF BRS HEt T 020 22644372 F 020 38601859 Pi Mee T PEM i T PEM ET hD Sea ERIA Glia oi G iSi hostess kG Se Skoda Figure 1 9 SD card transmission protocol analysis The CS SCK MOSI MISO in Figure 1 9 is the original data in communications Dataln DataOut are the result of the SPI bus analysis and InCmd OutCmd are the result of the protocol analysis 1 3 5 Error captures The powerful and versatile triggers of logic analyzer can be used to capture bugs and errors of the system Take the 80C51 processor as an example if a data access operation is out of the internal memory segments the processor will signal the PSEN pin to activate the access to external memories So use the logic analyzer and set a trigger upon the PSEN signal then the logic analyzer can record the accessing operations to external memories so that engineers can analyze the result and find out errors Generally the code segment of 80C51 processor is 0x0000 Ox3fff and the address in PC of a running program should not exceed it or else it should be a run away error To capture a run away error you can use the advanced triggers provided by the LA2532 series logic analyzer just set the trigger condition
99. ads i it iN egister Decoding ADDR 1 ocelot TAa T a 1111 o Addemi BB 1b TUL Time Hi CA A m ADDR J i a if oh A ICED 1 IIl 1 TITTI rowe i 1 i Figure 11 6 Global view of the result of CF Card decoding Zoom in to observe the decoding on ATA commands o Command code Transmitted on the Data bus DATA Winte Command DataCmd DATA Witte Command Code ADOR ae Addromd Write COMMAND REG Figure a Zoom in to view the ATA commands and their codes 173 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Decoding of an ATA Command 1 l o ES Ao F Po ES 0 a o En fx AP rrr io a a R Figure b Zoom in to view the decoding of an ATA Command 22 150m Figure 11 7 Zoom in to view the decoding of an ATA command Zoom in to observe the decoding on Read Write operations to registers ADDR S00 rms 271 505ms 71 510ms ADDR I I I l l m D A T A rn ee ADDE Addricnmd Write SECTOR REG Figure d Zoom in to view the write operation to DATA register Figure 11 8 Zoom in to observe the read write operation to registers 174 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Zoom in to observe the interpretation on read write sequence 2 259M5 22 200ms AddrCmd Time Read Control A inal State ADDR Disabled
100. allows Weer to decode the DA and De signal of the SSI Bus together or separately Figure 9 42 Plug in manager SSI bus analysis plug in 2 Set up the clock signal and FS signal for SSI bus Select a signal for the clock signal CLK of the SSI bus and another signal for the chip select signal FS of the SSI bus All single channel signals defined in the Bus Signal Setup dialogue are available for selection in these two options as Figure 9 43 shows 129 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins eo Y _ Bus Signal Sampling Trigger Pod A ame E 15 14 13 12 11 10 9 a T B 5 4 3 J2 1 O 15 14 13 12 11 10 9 je HOOGGOAOGGBGOAGOHOEDAADRDARDEARBDABAGRAAaDA HOOGGOGDABAABRAOEDADGBRARAGARAGARBAGA C3 L3 L3 Ca Ca C3 L3 CI Ca C3 CA GI L3 L2 C3 CI C3 La C3 L3 CI La L a u O G GGG OGOGO GOOG O GOG O G C Figure a Signals Defined in Bus Signal Setup Dialogue onooegooad oomemooooo OoOmoooooo A oOoodooodag ei eo Se e Clock Signal Frame Length Figure b Signals avalable for SSI Bus Property setup Figure 9 43 Selecting the CLK signal and FS signal for SSI Bus 3 Select the length for a SSI data frame 4 bits 16 bits available 4 SSI Virtual Bus setup In Step 2 and 3 we complete the basic settings for SSI clock signal chip select signal and frame length Now it s time to setup the SSI data signal
101. alogue Cancel the settings and dismiss the dialogue 53 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 2 3 Details on sampling setups 1 Add change the name of a Bus Signal Fill in or modify the bus signal name in the Name field such as MyBus0 Notes Use only these characters to specify you bus signal name 0 9 A Z a z spacebar and _ underline 2 Assign Dx bits for the bus signal Just tick the Dx bit you want to record or clear the Dx bits you don t want to record Notes Forcontinuous bits you can right click on bits to set them quickly a right click on a bit can reverse its state and also affects all bits after this bit and set them to the same state 3 Set Bus Signal displaying color Click the color menu within Figure 6 3 to open dialogue for color selection as Figure 6 3 shows Click to select your favorite color and click to confirm your bus signal properties settings Bus Signal Properties Harme iH P2 Color 0 7 DO D15 Dl 6 D31 CICCO Figure 6 3 Bus Signal properties color selection menu 6 3 Sampling setup Before sampling correctly setting the sampling frequency threshold voltage and other sampling parameters are very important for getting a precisely waveform 54 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 3 1 Quick guide on sampling setup
102. also define a new function code Modbus protocol defines that two fields are reserved for user function codes they are 65 72 and 100 110 User can define function code within these two fields The detailed operations are shown as Figure 11 16 Show Address POU Data a Error Checking Filed d Physical Layer reaver Function Code gt d MODBUS gt d MODBUS Protocol Figure a Click to add a new user defined function code 180 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Add User Function Code Ea Explain Acceptable Range For User Function Code 66 andl O0 1701 Function Code e Decimal 3 Function Hame fs Figure b Fill in a new function code and function name Figure 11 16 Add a user defined function code 6 The following is an example for Modbus decoding The actual parameters for this example are RS23 interface on physical layer 9600bps Baud rate no parity bit RTU transmission mode Here s the global view of the result 10 000me 20 000mes 30 000ms E E E i 10 000mz 20 0001 Layer RXDI Link Layer Decoding Decoding iai RTU FRAME C y MOD DEUS REQ Protocol Frame Start Layer Frame Stop 3 5 characters Decoding P 3 5 characters Figure 11 17 Global view of the decoding result of a Modbus protocol transaction Zoom in the result for details on data link layer you can find out the slave address upper layer
103. alyzer will be triggered OK Confirm the settings Cancel Cancel the settings 10 8 2 Detailed descriptions 1 Complete the SSI Bus Analysis plug in setup as mentioned in section 9 8 2 Select the Setup gt Trigger option in the menu bar to bring up the Trigger Setup dialogue You will fin that the SSI Bus Analysis option has been added under the plug in option as Figure 10 25 a shows Since the DR signal is disabled in the plug in setup dialogue as Figure 10 25 b shows the DR option is deactivated in the trigger setup interface 163 Please visit our Website www embedtools com Chapter 10 Plug in Triggers Bus Si anal s ampling Irigger Immediate SSI Trigger Setup Sienal triggers T Rising edze Falling deze Edze ek H Pus triggers Data value FS Tata Queue E Synthesis triggers i DXIDR Tata value and rit i DATA Tata value and fal Time related triggers Hold time Data arrival and c Tata passed and de Oecurrence counting E Flug in Trigger Sol Bus Analysis yt Advance Trigger Trigger Signal kS i Ds Source Signal D Source Signal Result Name OUT Result ame Location Before D ka Location Figure b Signal enabled in SSI decode setup dialogue Figure 10 25SSI Bus Analysis plug in setup and trigger setup 3 Specify a data value as the trigger condition You can specify a decimal value or a hexadecimal value with a p
104. analysis plug ins 9 2 1 1 Wire Bus Analysis setup options 1 Wire Decode Setup 1 Wire Bus Property Speed Source Signal Standard High 1 Wire Analysis Result Setup Color Setup Result Name Reset Location Before MyBust we Response in Data Figure 9 1 1 Wire Bus Analysis decode setup dialogue Source Signal select the 1 Wire Signal All one channel buses or signals are available within the drop down menu Speed Select the transfer speed mode Standard or High Speed Result Name The virtual bus name for the result of analysis Location select the location to put the result You can select this option to place it before above or behind below the original bus Color setup Specify the displaying colors for Reset Response and Data OK Confirm and dismiss the setup dialogue Cancel Cancel the setup and dismiss the setup dialogue 9 2 2 Detailed descriptions 1 Select the Tool gt Plug in Manager option to open the plug in manager dialogue Then select the 1 Wire Bus Analysis within the plug in list and click the button to open the 1 Wire Bus Setup dialogue 99 Please visit our Website www embedtools com Bus Signal Sampling Trigger Hame BE Chapter 9 Bus analysis plug ins Plug in Manager Using Name ASD Conversion Analysis CF Card Analysis IIC Bus Analysis Manchester Coding Analysis Modified Miler Coding An MOUBUS Protocol Analysis 1 WIRE
105. annels at the right side of it then right click on the channel next to the right end of the wanted channels to deactivate the unwanted channels So usually you only need to click twice to set up a bus with continuous measuring channels For example if we want to seta ADDR bus and activate the measurement on PodA_ 8 to PodA_15 you can right click on PodA_15 the channel marked with a red box in Figure 13 26 a then from PodA_0O to PodA_ 15 will be ticked as Figure 13 26 b shows after this right click on the PodA_7 then from PodA_0O to PodA_7 will be clear as Figure 13 26 c shows and our setting requirements are met 203 Please visit our Website www embedtools com Chapter 13 Special Functions ee First right Pod A 15 i4 islizlii iol9 e IT 16 15 l4 3 2 j1 fo fish Tekh a lioia ja IT Ie 5 4 13 2 i Io ADDR Figure a Before any setup Pad Al Second night mas oo click here 15 14 13 12 11 10 9 T 6 15 J4 3 2 1 JO 15 14 13 12 11 10 9 8 T M j2 1 0 ADDR E m m m M M a a M M M M ee a l l e l l l l a a e l ly Figure b After first right click on PodA_15 Hame E Fod E Fod A 15 14 13 12 11 10 9 amp T amp 5 J4 Ja 2 1 JO 15 14 13 12 11 10 9 8 T 6 5 4 3 e 1 Jo Tt le Figure c After second right click on PodA_7 Figure 13 26 Selecting continuous channels for a bus 2 Other ways to scroll the w
106. annnnnnnnnnnnnnnnnnnnnnnnnnnnnnrnnnnnnnnnnne 165 10 10 UART Bus Analysis plug in trigger experiMent cccecececeeeeeeeeeeeeeeeeaeees 167 10 10 1 Goal of the CXPOLiMeNt cccccseccccseccccsuscccsuececsueeessansesnsnssssanesessaeeses 167 10 10 2 Detall COSCHDHONS arisicesoannsindtantc beatae nebiuadierrantsbendnecesoesitaddndsauadddencavenies 167 Chapter 11 Protocol Analysis PIUQ iI1 ccccccsssseessesseeseenseeseeesensees 169 11 1 Protocol analysis plug in OVErVICWS ccccecccseccceeeeeeeeseeeseeecaeeeseeeteeeeaneeaes 169 11 2 CF Card True IDE Mode Analysis PIUQ iN cccccecccececeeeceeeeaeeeseeeseeeeaues 169 11 2 1 CF Card decoding setup OPTIONS cccccccssseeccsseneeccnsusesecsaunssessauseseees 170 17 2 2 Detailed descriptions ccssccccsseeccnsuecessuececsuesecsasessansessanseesanasessnesessaes 171 ThA INOUCS ON USIO resni rer ese eescncnssee verse E EE 175 11 3 Modbus Protocol Analysis plug in cccccceecceecseeeeeeceeeseeeseeeeeeseeeeeeeseeeaeees 176 11 3 1 Modbus protocol decoding setup OPTIONS 2 cccccccseeeeeeenteeeeeeneeneeees 176 11 3 2 Detailed descriptions ccsccccccseeccnseececseeecsunsecsausessasessaueessaneeesanenessaes 178 11 33 NOCO ON SAG esac hee eet teccrssinen ce n EEE E EE EEE ES 182 11 4 SD Card Protocol analysis PIUQ IN cccccccccceecesececeeeceeeeceeeeeeeeeneeseeeeeeeeaes 183 11 4 1 SD Card protocol decoding setup CiAlOQUE
107. astinclennncenseiwobanenienousetonrcenieiaGueenduoanccmuseecdies 126 9 8 SSI Bus Analysis plug in cccccccececseecceeceseeceeecaececeeesseecoeeseeeesseeseaeseeesees 128 9 8 1 SSI Bus Analysis setup options o scccccccseececcsseeecessueeeessueeeeesaeeeesssneases 128 9 8 2 Detailed QCSCIIDIONS ccccccccseseccssesecssesecssusccnseeensuesessuesessaesesaaasessaunes 129 9 9 UART Bus Analysis plug in c ccc ceccceccceeeseeeeeeeeeeseeeeesaeeeeeeseeeseeeseeeeueeeeeaees 132 9 9 1 UART Bus Analysis setup OPTIONS ccccscccssecccseecsneecsesesausessusesaneesanees 132 9 9 2 Detailed ie ci 6 g 0 8 een eee ee A een ee ee ne ere eee 133 9 9 3 Nolito ON Usage varitsiccnsnsntzectancnnaesnddadicannctntmupeliald snc EENE AER 137 9 10 UART Bus analysis CxAMple ccccccccece eee seeeeeeseeceeeeeeseeeseeeseeeeeeeeeseeeaaes 137 9 10 1 Goal Of the CXPOCiIMONh ccccscccccseececssececseeeecsansessausessanseesanseessuesessaanes 137 OF 0 210 I Lo ER ne eee PE Ee CRE E een ene ee eee errr 137 9 10 3 Steps lor recording 10 ccscesccccscneeccsrensersscnsersstcseeeessonveresscnescessaseececsaees 139 9 10 4 Steps for QNAIVS S vascacececsnescceccussenenstenanidiedacssuseiboennbacasannasesbedudiasenesbosauts 141 9 11 Manchester Coding Analysis plug in ccccceccceccceeeeeeeeceeeeeeeeseeeseeeeaneeaes 141 9 11 1 Manchester Coding Analysis setup OPTIONS cccccccccseeeeeseeeesaneeeseneees 142 Conte
108. ata and Char for character type of data There are two ways to display a numeric type of data decimal or hexadecimal as Figure 9 15 b shows Also there are two ways to display a character type of data ASCII characters or Hexadecimal number as Figure 9 15 a shows User can also specify colors for the displaying of the results as Figure 9 15 c shows 107 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Nata T Number E Color Setup ata Type umber Chae ese D ata A Displaying Format Ascii Hex Stat Bit Figure a Character type ae Response MEM Data Type Number Char Displaying Format Decime Hex Stop Bit O Figure b Numeric type Figure c Color setup Figure 9 15 Data type data displaying mode and color setup 4 Select the Address Classification if you need to separate the displaying of the decoded data for different slave address select the Read Write Classification if you need to separate the displaying of the decoded data for different operations performed on the bus The default setting is no classifications 5 Example result of decoding Figure 9 16 shows an example of I C bus analysis Data Signal Figure c Zoom in to view slave addres and operation type 108 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins d Stop bit 706 65600ms 706 65800ms 706 661 Figure d Zoom in to view the Stop bit an
109. aveform viewer screen Sometimes you may need to move the marker to a location out of the displaying area of the waveform viewer screen Generally way is to click the scroll button to reach the location then drag the marker to there By LA series logic analyzer you can just click and drag the marker out of the viewer screen in the direction to scroll then the screen will scroll automatically in that direction 3 Quickly jump to next transition edge If you are dragging the marker within the waveform viewer window then when you release the mouse the marker will jump to the next transition edge automatically If you don t want this function you can drag the sign of the marker on top of the waveform viewer screen where it shows the marker name 4 Save the waveform to a picture file A single figure is much better than paragraphs of plain descriptions especially when you are describing a waveform In other software you need to press the Print Screen button to take a screen shot and then paste it into other picture handling software But in our logic analyzer software you can select the waveform you want to save then right click on it and select the save to picture option and then a high quality picture is saved for directly usage 5 Visual trigger setup You can just right click and hold down you mouse button to drag a box and select a segment of waveform when you release the mouse button a drop down menu will show up then you can se
110. between 0 and 4 6 V 3 Acquisition capacity selection User can select different storage capacities of a record for the logic analyzer available options are 1K 2K 4K 8K 16K and 32K sampling points the default setting is 32K sampling points 56 Please visit our Website www embedtools com Chapter 6 Function Descriptions 4 Compress Tick it to enable the real time data compression This option is useful for long period measurements allowing the logic analyzer to record more data under the same storage capacity Tips Enable is recommended 5 Digital filter selection Three options are available None 1 or 2 The filtering is run in hardware select None to disable this function select 1 means a 1 sampling clock pulse filtering select 2 means a 2 sampling clock pulse filtering Tips When there are many clutters on the sampling waveform analysis result may have errors For this situation you can try to change the threshold voltage or set a digital filter to solve the problem If you select None within the digital filter option the filter will be deactivated if you select filter 1 it will filter the non continuous pluses that lasts one sampling clock if you select filter 2 it will filter the non continuous pluses that lasts less than two sampling clocks 6 Trigger position This option sets how much pre trigger data can be recorded and displayed 7 Save to file when sampling repetitively Tick
111. bout the signal 8 Please visit our Website www embedtools com WRT h FARA E GR T 020 22644372 F 020 38601 859 g 1 2 00v p 2 14p 1 00 Stop 1 27W J 1 AX 656 59mHz AYCI 125mV j Figure 1 7 The measurement result from a oscilloscope As a comparison the measurement result of the LA2532 logic analyzer is shown in Figure 1 8 Not only can the logic analyzer measure the voltage and time but also it can perform practical analysis to data by using its plug ins Just fill in some parameters related to the Serial UART bus then the logic analyzer can perform analysis to the signal based on UART transmission protocol and display the result on screen so that developers can study the transferring data in a more directly way 4 000ms i 6000m e 000ms 10 000ms Oi GO ili 0 1101116 OUT Figure 1 8 The UART data measurement result from a logic analyzer The UART data measurement is just a small case A good logic analyzer can also perform analysis to serial port or parallel port data converting the waveforms to data values based on bus specifications For example the LA2532 supports the analysis to Serial UART I C SPI SSI 1 wire and other buses An advanced logic analyzer can even analyze data based on higher layer protocols For example the LA2532 logic analyzer can perform analysis to the SD MMC card data on SPI mode CF card data on TruelDE mode Modbus protocol dat
112. bsite www embedtools com Chapter 11 Protocol Analysis plug in 11 2 1 CF Card decoding setup options CF Card Decode Setup Basic Setup Address Bus Setup Address Bus Result Name ADDA Before MvBusl ka Location Color IOWA Signal MyBusl w Data Bus Setup Data Bus DATA Before MvBus w Result Name Location Color Displaying Register Yalue Read Write Register Timing Diagram Color Setup ATA Command Displaying ATA Command Data Value Data Value e Timing Diagram J ATA Register Figure 11 1CF card protocol decoding setup dialogue IORD Signal Select a signal for the read control signal under the CF Card TruelDE mode All signal channel signal defined in the Bus Signal Setup dialogue are available to select in this option IOWR Control Signal Select a signal for the write control signal under the CF Card TruelDE mode All signal channel signal defined in the Bus Signal Setup dialogue are available for this option Address Bus Data Bus Select a bus for the address bus under the CF Card TruelDE mode then another one for the data bus The address bus has 5 signal wires and the data bus has 16 signal wires All multi signal buses defined in the Bus Signal Setup dialogue are available for these two options Result name Specify a name for the results of analysis on address bus and data bus under the CF card TruelDE mode Location Select a location to display the analysis resul
113. bus 5 Maximum value Only available to buses the ending value of a range in a bus 6 When found When a result is found depending on this option the software will put the M1 M2 or user defined marker to the position where the result was found Or just put a new marker on the result position user also can specify the new marker s name the default name is Find 7 Finding direction User can click the or button to search in different directions 6 10 Waveform viewer setups The waveform viewer is the major window for observations and analysis The configurations on background color grid color and the displaying of vertical or horizontal lines can assist the observing and analyzing of the waveforms 6 10 1 Quick guides on waveform viewer setups Step 1 Right click within the waveform viewer to bring up the context sensitive menu select the last option Properties to enter the waveform viewer properties window 70 Please visit our Website www embedtools com Chapter 6 Function Descriptions Display Property Background Gnd Latitude Longitude Figure 6 25 Waveform viewer properties dialogue Step 2 Following the notice within the dialogue modify the options you want to change then click to confirm and apply 6 10 2 Dialogue options Background color Grid color Horizontal lines Vertical lines OK Cancel Setup the background color of the waveform viewer window Setu
114. ce Trigger Data value trigger Trigger at the appearance of a specified value on the selected bus Ifthe inputted value has a prefix Ox tt will be treated as a hexadecimal number otherwise tt will be treated as a decimal number T Target Bus MyBus0 OxFFFC Figure 7 4 Data value trigger setup dialogue 76 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides E myBusc FFFC I eee Trigger point Figure 7 5 Recorded Results of the example data value trigger 7 1 6 Data queue trigger _Bus Sienal Sampling Trigger Trigger Type Immediate Signal triggers Data queue trigger ae ee Triggered by a data queue that appeared sequentially on the selected bus Edge Ss Ifthe inputted value has a prefix Ux it will be treated as a Bus triggers hexadecimal number otherwise it will be treated as a decimal number Data value T Data Queue Synthesis triggers Data value and risin WANN Data value and fallir 1 Time related triggers Hold time Data arrival and del Target Bus MyBusl Tata passed and dela Oeeurrence counting Add Plug in Trigger Advance Trigger Figure 7 6 Data queue trigger setup dialogue As Figure 7 6 shows on the trigger setup dialogue there is an button This button is used to add new data values every time user press it it will generate a new input box allowing user to add data value in th
115. channel buses and all multi channel buses defined in the Bus Signal setup dialogue are available in these two options Bus Signal Sampling Trigger Hame Fod E Fod A 15 14 13 12 11 10 9 T B J5 j4 JS ye j1 JO 15 14 13 12 11 10 9 je T B S 4 3 j2 1 o DOOOOBDABDBDARDOADABDERBHHHHOOOOOOOOADOOAAAAD TH DOOBDOORBOOBOOBDHOOBOOABDAADOADOAOBARAABAARBAARBABAALBADLB Address Bus Se Address Bus ADDR ka Data Bus Result Name ae Result Mame Location Refore ADDA wg aratinr Refore DATA wt Figure b Buses avaiable in Source Signal option Figure 11 4 The CF card Data Address bus setup Notes The CF Card decoding setup dialogue will pop up a warning message when there are no signal channel signals or multi channel buses defined within the Bus Signal setup dialogue as Figure 11 5 shows A Ho Usable Read Write Control Signal Figure a Warning for no usable R W control signal 172 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in A Ho Usable Address Data Buses Figure b Warning for no usable Address Data Buses Figure 11 5 Warning messages 4 You can leave other settings as default Here is an example for the decoding on the write sequence to a 23 sectors CF Card The result of decoding Data Bus Decoding ATA Command Decoding Timing Diagram DataGrid Address F i Bus be
116. channels for a bus signal After clicking the button to create a new bus or signal you may then assign the channels that required for sampling just tick it them after the signal ous name For a single channel sampling we call it a signal for multiple channel sampling we call it a bus Please make sure the assigned channels are corresponding to the required probes Tips For buses with continuous channel bits which means that the check boxes for each sampling channel are continuous on the Bus Signal setup dialogue you can just right click to tick all bits quickly Right click on a bit will reverse its state and all bits after it will be changed to the same state with this bit For example in Figure 6 1 if you want to measure bit A15 A8 of Pod A in MyBus0O you can just right click the A15 then all bits are ticked after this right click on A7 then AO A7 will be clear so that only A15 A8 remain ticked So actually you only need to click twice for setting a continuous 8 bits 3 Change the list order of a Bus Signal Select the signal you want to move click Up or Down button to change its displaying order in the list 4 Delete a Bus Signal Select the unwanted Bus Signal click to remove it from the list 5 Confirm the settings Just click OK to confirm your settings when you finish setting the Bus Signal otherwise click Cancel to discard the changes 6 2 Setup Bus Signal properties The properties of
117. ck the OK button to confirm and dismiss the dialogue 5 Example result of the decoding Lt ZleLozl AD zla niin pineal enna Bnrelee aan A A naire seen mare Analag An en E apouTt fT ADOUTI O f ADOUTI 1 A ADOUTI 2 T ADOUTI 3 Figure 9 10 The result of A D conversion 9 3 3 Notice on usage When observing the analogue waveforms user can increase the height of the analogue waveform To do this move the cursor to the bottom of the signal name cell of the analogue signal then the shape of the cursor will change as Figure 9 11 shows click and drag down to increase the displaying height of this signal 104 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 101 60000ms Plen gt Se Figure 9 11 Drag to increase the displaying height of a signal 9 4 I C Bus analysis plug in The I C Bus analysis plug in can interpret the acquired data based on IC Bus protocol specifications it can decode and find out the start condition access to slave address both read and write operations data zone including response stop condition and other information precisely All information can be displayed in specified colors on the waveform viewer quite convenient for observations and comparison For better views the result of the decoding the slave addresses and the read write operations can be displayed separately in different si
118. cter There are two data types as said before one is data value the other is character if you select data value the Displaying Format options are Decimal or Hex Hexadecimal otherwise the options are ASCII and Hex Hexadecimal As Figure 9 46 shows select your Data type and Displaying Format to determine the displaying style of the analysis result Data Type Number C Char Data Type Number Char Displaying Format Decimal Hex Displaying Format Ascii Hex Figure a Numeric type data Figure b Character type data Figure 9 46 Data type and Displaying 6 The result of decoding As Figure 9 47 shows E nat ieee in ar mai E BO0COms 3 an i Figure a Global view t a SEANA l Spanu elk Figure b Zoom in view Figure 9 47The SSI analysis result 131 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 9 UART Bus Analysis plug in LA series logic analyzer software provides a Serial UART Data analysis plug in to interpret and decode the acquired data based on standard serial port protocol specifications It allows user to specify the baud rates data frame length 5 8 bits Stop bit length 1 2 bits and parity mode also allows user to decode the RXD and TXD signal together or separately 9 9 1 UART Bus Analysis setup options UART Setup Buse Signal Property Baud Aate Data Length Stop Bit Parity Mode Serial JART Communication
119. d MOSI respectively all single channel signals are available in these options Result Name Specify the name for the decoding results The default setting is IN for MISO OUT for MOSI Location Select the location to put the decoding results can be set to before the original signal or after the original signal Color Specify a color for the result signals Data type Select the data type displayed on the result signal after decoding Number option for data values and Char option for characters Displaying Select the method to display results If the Number option was selected in the Data type field then the available options are Decimal or Hexadecimal if Char option are selected then the available options are ASCII or Hexadecimal OK Confirm the settings and dismiss the setup dialogue Cancel Cancel the settings and dismiss the setup dialogue 9 6 2 Detailed descriptions 1 Select the Tool gt Plug in manager option to bring up the Plug in Manager dialogue then select the SPI Bus analysis plug in within the plug in list as Figure 9 28 shows Then click the Setting button to bring up the SPI setup dialogue Plug in Manager Name Version Manchester Codin 1 Modified Miler C 1 MOIEUS Protocol z 1 WIRE Bus Analysis SU Card Analysis E SFI Bus Analysis Z SSI Bus Analysis t 0 UART Bus Analysis Z Descnption The SPI Bus analysis plug in can decode the acquired data based on SFI Bu
120. d data Figure 9 16 Example result of IIC Bus analysis 9 4 3 Notice on usage C Bus analysis plug in starts it analysis when it detects a start bit of IC bus If there is no start bit it will not perform any analysis So if you perform the analysis to a segment of data and get no results it means that no I C start bit was detected by the analyzer during the process of the whole segment of data The reason for this is to increase the precision on locating each byte and reduce the chance on misjudging 9 5 Experiment on using IC Bus Analysis plug in 9 5 1 Goal of the experiment This experiment will measure the read writ operation performed by the PHILIPS LPC2131 processor hardware through I C interface to the CATALYST E PROM CAT24WC02 chip The I C device within this experiment will be settled as a host device By using an I C software package not provided with source code it will write 8 bits to the CAT24WC02 chip and then read back for verification If the result is correct the buzzer will give out a single beep if not the buzzer will beep continuously The schematic for this experiment is shown as Figure 9 17 Figure 9 17 Schematic for reading writing CAT24WC02 by LPC2131 109 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 5 2 Program list of the experiment The source code for this experiment are listed in Program List 9 1 Program List 9 1 I C read write access to CAT
121. data error output When set the data value to 1 and occurrence time to 3 the measuring procedure is shown as Figure 7 14 at the third time of occurrence of 1 the software will be triggered to record the data 80 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides 0831436374324 253569765412 Recorded content of Data occurance trigger ab eb Te Figure 7 14 Data occurrence trigger schema 7 2 Visual trigger setup If the trigger condition is too complicated to describe in any of the simple triggers you can use the visual trigger to setup the trigger conditions Take the 80C51 microcontroller as an example if we want to set its OxFFOA address as a trigger condition first step is to use the immediate trigger to record the data from the beginning as Figure 7 15 shows asas i a4 aes ata US ALE m aor Sie m P2 RE wr Figure 7 15 MCU read in operation Then within the waveform viewer left click and hold down the mouse key to drag a selection box which contains a falling edged of ALE signal and the OxFFOA value within the ADDR bus Then when you release your mouse key to bring up a context sensitive menu select the Set Trigger option to set the selected area as a visual trigger condition Within the note pad we can see the actual trigger condition is ALE has a falling edge and ADDR equals to OxFFOA 81 Please visit our Website
122. detect the abnormal operations such as abnormal PWM output or burrs _Bus Signal Sampling Trigger Sag Teisene Type Immediate E errs Hold time trigger Rising edge Falling dage Triggered if a specified value appeared on the selected bus and then hold Edge for a specified duration H Pus triggers Tata value Data Queue Synthesis triggers Data value and risin Data value and fallir f Time related triggers Hole tema Target Bus MyBus i Tata arrival and del Tata passed and dela Timex 100 lus gt Oeeurrence counting Plug in Trigger Advance Trigger Figure 7 10 Data width trigger For example if the trigger condition is set to MyBus1 1 and Time gt 100us to measure a PWM output The software will be triggered when the width of PWM high voltage level pulse output is changed from smaller than 100us to bigger than 100us The result of this example is shown in Figure 7 11 000ms a Po1 00000me i re wes Ps2 00000n a iS myeuss Figure 7 11 The trigger result of PWM output change detection example 79 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides 7 1 10 Data arrival and delay trigger When a specific data value appears on the selected bus the software will start to delay then it will be triggered on the expiration of this specified delay period This trigger allows user to observe the waveforms after a specific delay that starts for
123. dow Show Woof Show Longitude GUI Style b J Zoom In MUl Zoom Dut Full Figure 5 6 The View Option Tool Bar Show Hide tool bar including standard logic pen markers and Customization options Status Bar Show Hide status bar Auto measure window Show Hide auto measure window Show Horizontal Lines Show Hide horizontal lines Show Vertical Lines Show Hide vertical lines GUI Style Define the style of GUI Graphic User Interface including the Office 2000 Office XP Office 2003 and Window XP Zoom in Zoom in the waveform views Zoom Out Zoom out the waveform views Zoom Out Full Zoom out for a full view of the waveform 5 7 The Window menu Hindow Tool Lang Cascade Tile v 1 ZeLogl Figure 5 7 The Window menu 44 Please visit our Website www embedtools com Chapter 5 Menu descriptions Cascade Cascade the opened windows Tile Tile the opened windows Ziglog1 The current opened window of this example 5 8 The Tool Menu Tool Language Help H HoteFad Calculator Faint z Plug Manager Figure 5 8 The Tool Menu Note pad Open the note pad window Calculator Open the calculator window Paint Open the painting window Plug in manager Open the plug in manager 5 9 The Language menu Language Help Chinese v English Figure 5 9 The Language menu Chinese View in Chinese Eng
124. dress 2nd floor Building 7 Huangzhou Industrial Estate Che Bei Road TianHe Guangzhou China Website Http www embedtools com Email tools embedtools com Sales department Please check our website for Fax telephone Technical department 86 20 22644375 14 3 Feedbacks Thank you for your supports to our company and our LA series logic analyzer Any difficulty or problem on using our logic analyzer feel free to contact us we ll help you to solve the problem as soon as possible Also we require your valuable suggestions or feedbacks on our products this help us greatly on product perfections also on providing a detailed helping system which makes you quicker to master the techniques on using the product Please fill in the feedback form send us by mail or call us directly Contact number 86 20 22644375 E mail analyst analystudio com Appendix i Tool bar icons AHH PR OERM GARD ARK ET OSI AKA A New waveform file Open an existing waveform file L S Save current waveform to file Save all opened file a b Run once Run repetitive 210 Please visit our Website www embedtools com op O O Zoom in waveform Ctrl left click E Go to the beginning of the waveform G Go to the trigger point E Go to the end of waveform data Find previous data it Bus Signal Setup Trigger Setup Show vertical lines eS Go to a
125. e signals Figure 6 8Falling edge trigger Edge trigger Trigger for an edge either rising or falling appeared on the selected signal Usually it s used to detect the change of a single signal such as read write signals 59 Please visit our Website www embedtools com Chapter 6 Function Descriptions OR Figure 6 9 Edge trigger Bus triggers Data value trigger Trigger at the appearance of a specified value on the selected bus If the inputted value has a prefix 0x it will be treated as a hexadecimal number otherwise it will be treated as a decimal number Usually it s used to detect specific data values such as output data status T Figure 6 10 Data value trigger Data queue trigger Triggered by a data queue that appeared sequentially on the selected bus pattern If the inputted value has a prefix 0x it will be treated as a hexadecimal number otherwise it will be treated as a decimal number Usually it s used to capture a bus operation such aS communication protocol signs Figure 6 11 Data queue trigger Synthesis triggers Data value and rising edge trigger Triggered by a specified value appeared on the selected bus and a rising edge appeared on the selected signal If the inputted value has a prefix 0x it will be treated as a hexadecimal number otherwise it will be treated as a decimal number Usually it s used to detect a certain data value such as the read
126. e acquired data based on standard Serial UART Bus specifications lt allows user to specify the baud rates data length piat bits Stop bit 172 bits and Figure 9 49 Plug in manager UART Bus analysis plug in 133 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 2 UART Baud rate setup The Baud rate can be set by selecting the provided value listed in the drop down list but also it can be inputted manually on the value box as Figure 9 50 shows If the baud rate setting is wrong the decoding result will be wrong UART Setup UART Setup BusSignal Property Bus Signal Property Baud Rate 128 Jv Data Seral UAART T 1200 RD Signal A00 ti Senal USAT Communication Ae Signal Source Signal RxD np Result Hame IN Figure b Input your Baud rate Figure a Select a Baud rate Manually Figure 9 50 Baud rate settings 3 Setup the data bit length stop bit length and the parity mode The data bit length ranged from 5 bits to 8 bits the default setting is 8 bits user can select it within the dropdown list of data bit as Figure 9 51 a shows The stop bit length ranged from 1 bit to 2 bits the default setting is 1 bit user can select it within the dropdown list of stop bit as Figure 9 51 b shows The parity mode menu has five available options None Even Odd Mark and Space as Figure 9 51 c shows Notice that the data bit length stop bit lengt
127. e queue User can specify up to 8 data values and sequentially they will form up a data queue if this data queue appears on the selected bus the software will be triggered to record the sampling data The data queue trigger is often used to capture some specific operations such as finding a sign of a communication protocol Figure 7 7 shows an example trigger seeking for data queue 123 and contents within the box will be display on screen 7 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides 125 7 Recorded content of data queue trigger Figure 7 7 Data queue trigger schema 7 1 7 Data value and rising edge trigger This type of trigger is a combination of data value trigger and rising edge trigger As its name describes the software will only triggered when both conditions are satisfied Usually this trigger is used to detect a bus operation that related to a specific signal such a read write operation perform to specific address Figure 7 8 shows an example trigger setup for the detection of a write operation perform by MCU to address 0x8000 Eus Signal Sampling Trigger Trigger Type Immediate Signal triggers Rising edge Data value and rising edge trigger Falling deze Edze Bus triggers Data value Tata Queue Synthesis triggers Data value and risin Data value and fallir f Time related triggers Hold time Data arrival and del
128. e recording else jump back to itself and restart the comparison The flowchart for this example is shown in Figure 7 25 and the trigger setup for it is shown in Figure 7 26 86 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides MyBus0 5 AND MyBus1 8 Start the sampling Figure 7 25 Flow chart for two buses with equal conditions Bus Signel Sempling Trigger Trigger Type Immediate step f Signal triggers Rising edge If Bus triggers v MyBus0 v v 5 Falling deze i E Edge ANC vl Bus triggers v MyBus1 al v 8 Bus triggers i S Tata value Then No Actit Dont care cou y Dont care tino v And Goto Step 1 Data Quene caren greet ng atte ee a ent ta Synthesis triggers Else No Acti v Don t care cou v Dont care timr And Goto step 1 v i Data value and risin Data value and falliz Step 1 a Time related triggers Hold time i Anytime oy i Data arrival and del Data passed and delay Rec Dont care cou v Don t care timr v And aoto Step 1 v gt Decurrence counting j ee fee No Acti v Dont care cou v Dont care timr wal And Goto Step 1 gt Figure 7 26 Advanced Trigger setups for two buses with equal conditions 87 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides 7 5 Examples for advanced trigger setup LA series
129. e result of this trigger 266 220 00ms 256 2250 336 2 L200ms sen DATA spa Figure 10 14 Trigger result for Address 0xA0 write operation with ACK response 4 Set an I C address trigger on read operation ACK response The detailed settings are OxA0O for the device slave address read operation ACK response As Figure 10 15 shows IIC Trigger Setup sev soa DATA Trigger Type Address OwA0 Start Condition Response Stop Condition ACK Specified Address i O NACK Figure 10 15 Address trigger setup for I C Bus analysis plug in Check the source code of the I C Bus Analysis experiment the processor will read 8 bytes of data back from CAT24WC02 So the trigger condition should be satisfied Figure 10 16 shows the result of this trigger m 7 i 320 44000ms i 3 ga450 ms i seL DATA spa Figure 10 16 Trigger result for Address 0xA0 read operation with ACK response 158 Please visit our Website www embedtools com Chapter 10 Plug in Triggers 10 6 SPI Bus Analysis plug in trigger 10 6 1 SPI Bus Analysis plug in trigger setup SFI Trigger Setup scr sseL mosi miso DATA Trigger Signal MOS OMISO Data Figure 10 17 SPI Bus analysis plug in trigger setup interface Trigger signal Select a signal for trigger settings MOSI or MISO They are corresponding to the MOSI and MISO defined in the plug
130. e settings find out the data values and calculate the parity bit to verify it then display the result directly and visually on the waveform viewer 9 12 1 Modified Miller Coding Analysis setup options Hiler Setup Modified Miller Coding Properties SOLUCE Signat Signal v Idle State start Bit Bit Time 34o o us Byte Length First Bit Parity Mode Error Tolerance Eiter Data Miler Snalysis Result Setup Color Setup Result Hame start Bit D d Location Before Signal Ww Parity Bit Be Color 7 O Decimal Hex ASCII Figure 9 64Modified Miller Coding Analysis setup Source Signal Select the target signal to perform the analysis All signal channel signals that defined within the Bus Signal Setup dialogue are available in this option Idle state Specify the Idle state of the signal the available options are High for high voltage level and Low for low voltage level This option is used to confirm the initial state before the transmission begins Start bit Specify start bit value of the signal Available options are 1 0 and none None is used for a signal without start bit you need to further specify the first bit of the signal to 1 or O and this value is used for the aligning of bytes First bit This option appears when user selected None in Start bit options it s used for the aligning of bytes Bit Time User can specify the time period for each bit in us the default setting is the standa
131. ease enter your information User Name Jiuyingbing Organization Zigmcu Install this application for Anyone who uses this computer all users Only for me iuyingbing Figure 3 4 The Customer Information dialogue 5 As Figure 3 5 shows the software will install to its default folder if user does not change the installation path within the Destination Folder window if user wants to change the destination folder just click the Change button and change the path in a file browser dialogue after setting your installation path click Next to proceed ie zlgLogic 2 0 InstallShield Wizard Destination Folder Click Next to install to this folder or cick Change to install to a different folder Install zigLogic 2 0 to C Program Files zigmau zigLogic 2 0 Cancel Figure 3 5 The Destination Folder dialogue 19 Please visit our Website www embedtools com Chapter 3 Software installations 6 If every thing is OK the program will start the installing of files ie zlgLogic 2 0 InstallShield Wizard Installing zigLogic 2 0 The program features you selected are being installed Please wait while the InstallShield Wizard installs zigLogic 2 0 This may take several minutes Status Figure 3 6 The Installing zlglogic 2 0 window 3 1 2 Installing the LA2532 driver 1 After the installation of the zlglogic2 0 software a driver installation dialogue will
132. ebsite www embedtools com Chapter 9 Bus analysis plug ins mem 131 10000hs 131 12000 sen DATA soa Figure d The First address to write in CAT24WCO02 Figure 9 22 I C decoding results 2 Verify the data to be written The experiment program writes 8 bytes of data in ASCII codes to the CAT24WC02 From the result of analysis we can find that the written data are 0 7 in ASCII codes as expected As Figure 9 23 shows gt o000ms 131 15000ms 131 20000ms 131 25000ms l 131 30000ms Wee TEM MMe s04 i lofi o lo i lo filo olol lofi Figure 9 23 The written data after analysis 3 Read back 8 bytes from CAT24WC02 The read back data starts from the internal address 0x0 of the The sequence of this operation is shown in Figure 9 24 5 5 T T S BUS ACTIVITY A SLAVE BYTE A VE MASTER L ADDRESS ADDRESS n i ADDRESS SDA LINE 9 ye A A DATA n K K K N oO A C K Figure 9 24 The read sequence of the CAT24WC02 From the global view we can find that the read in procedure starts after the start bit Figure 9 25 a is the global view after zoom out b shows the start bit of the IC and c shows that the slave address is started form OxAO and will read data from These are the same with those hose defined within CAT24WCO02 115 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins ni nana pe 673 33000ms 673 90000ms 6 3
133. ecceccessercersersersersersesversessersessereesserees 155 10 5 1 Goal Of the CXPOCLIIMON scccccsseeccceecccsuececseeensunsessausesnasessanesessaesenes 155 10 5 2 Steps Tor trigger SCID aiaso sre rt erent eccecs indeed sie gescaseedasteenseneeieneuacomeeabens 156 10 6 SPI Bus Analysis plug in trigger c ccccceccceecceeeeceeeceeeseeeeseeeeeeeeseeseeeseeeeaes 159 10 6 1 SPI Bus Analysis plug in trigger setup 1cccccsesecssseeeesneeessaneessaneneees 159 10 6 2 Detailed CCSCIIDTIONS cccccccccsscecceseeeessueeecsueeessueessaeeessaneessaneeessneeeses 159 10 7 SPI Bus Analysis plug in trigger CxAMple ccccccceecceeeeeeeeeeeeeeeeeeseeeeaes 161 10 7 1 Goal Of the CXPCLIIMON cccccccseecccesecnsescecsececseesessaneesnasessaesessaeneses 161 10 7 2 Steps for trigger SCLUP ccscccccsseecccsescccsesccnsueeessuesessausesnassssanenessaeeeses 161 10 8 SSI Bus Analysis plug in trigger c ccccceccceeceeeeceeeceeeceeeeseeeteeeeseeeseeeseeeeaes 163 10 8 1 SSI Bus Analysis plug in trigger setup 11cccccseesececsseseeeseeeeeessneeseeees 163 10 8 2 Detailed COSCIIDTIONS 1 cccccccccsseeccseeccnsuscecsuesensueeessansessansessaeeessaaneses 163 10 9 UART Bus Analysis plug in trigger ccccceccceeeseeeseeeeeeseeeeeeseeeeeeeseeeseeeaeees 164 10 9 1 UART Bus Analysis plug in trigger setup ccsssccssseceeesenseseeeesaesesens 165 10 9 2 Detailed descriptionS 0000an000aanaannnnannn
134. ecific data value such as the read or write operations on specific address Often use it to trigger at the occurrence of some specific error states such as a wrong width of the PWM output or use it for burr analysis Often use this to detect some specific errors such as program output errors Often use it to detect specific operations such as communication symbols based on a protocol Often use it to trace the after effects of a specific error or event such as tracing a data transmission error and the following events after its occurrence With the abovementioned triggers one can easily find out bugs hidden in massive data or information The listed triggers are just general methods provided in most common logic analyzers some advanced logic analyzers such as LA2532 logic analyzer can also provide some special trigger controls such as visual trigger and combined trigger 1 3 4 Capabilities on analysis The analysis of an oscilloscope is focus on the frequency duty ratio and peek voltages of the target signal input and the analysis can only perform to a single signal But a logic analyzer is capable to perform analysis on multiple signals For example both the oscilloscope and logic analyzer can measure the UART data derived from MCU Figure 1 7 shows the measuring result of an oscilloscope From this figure you can only observe the time scales and the voltage values it contains no information about the data contents a
135. ectronic instrument with many brand new measurement methods Please visit our Website www embedtools com i NT 7c FB RS Fl Hee LF 5020 22644372 F 020 38601859 E Fe major ave Ae of the LA2532 is isted tS Bi 2007 Guangzhou ZHIYUAN Electronics CO oO All rights reserved Provides with flexible and creative trigger techniques to speedup and simplify your measurement procedure Provides edge value pattern and many other triggering mode convenient for usage Also provides a data compress algorism to extend the recording depth and increase the precision of the data sampling Provides with a dedicated bus and protocol analysis function which greatly simplifies your analysis on data related to UART SPI IC and SSI buses and their related protocols Provides a humanize software interface that integrated with many useful functions such as signal measurement triggering setting dynamic helps software upgrade and etc Supports multi task structure you can do the data measurement comparison and observations on different data at a same time Supports multiple export file formats you can perform the off line analysis easily Flexible frequency settings breaks out the 125 scale limits and make the measurement more precisely Contains a high performance measurement core does not depend on high performance PC USB 2 0 high speed interface with PnP Plug amp Play support Smaller size and beautiful sha
136. ed by different Buses and Signals 42 Please visit our Website www embedtools com Chapter 5 Menu descriptions 5 5 The Analyser menu Analyser View Window Tool E iwo to Begin of Data Previous Fage Ed Go to Trigger d gt Hext Fage E fro to End of Data i A Find Ctrl F Sq Find Frevious CtrltF3 joa Find Hext F3 A New Marker Ab fro to Marker Ab Hew Measurement Figure 5 5The analyze window Goto Begin of Data Display the beginning section of the data Previous Page Go to Trigger Next Page Display the contents on previous page Display the triggering section of the data Display the contents on next page Goto End of Data Display the ending section of the data Find Find Previous Find Next Add Markers Goto Markers Search a specific data within the current active file Search the previous specific data within the current active file Search the next specific data within the current active file Add a marker within the waveform window User can name it and set up its color Display the data section near the marker New Measurement Add new Measurement information between two markers to the measurement information bar 43 Please visit our Website www embedtools com Chapter 5 Menu descriptions 5 6 The View Menu TS View Window Tool Language Toolbar eE status Har B Auto Measure Win
137. eeeseesenseesenseeseneees 17 3 1 Software installations cece ccceeecceeeceeeeeeeeaeeeceeeeeeeeseeesueeeneeseeeseeessueeseeesaes 17 3 1 1 Installing the ZlgLogic Software ccccccseeccccseeeecesneeeeessneeeessaneeeessaneeeeees 17 3 1 2 Installing the LA2532 drivert cccsccccseeccsneeccueeccaueseauessaeeesauessaesessusesaeesans 20 3 2 Running the logic analyzer program ccccccceeccececeeceeeceeeeeeaeeeeeeseeseeeeeeeaeeses 22 3 2 1 First time running the software after installation c 1cccccseseessseeeseneeeees 22 3 2 2 Running the software in normal situation 1ccccseeccsseeceneeeceessaeeesaneesans 23 Chapter 4 Quick Start tutorial ccccccssseeeesseescesseescenseeseonseeseeeneessonaes 24 4 1 Introduction of the ExPeriMent ccccceccceceneeeeeeeeeeeeeeeeeeeseeeeeeeeeseesaeeeeeeseeeaaes 24 4 2 Frequency measurements ccccceccseece cece eeceeeeeeeeeeseeeseeeseeceeeseeeseeseeeseeeaeeeaees 25 4 3 Bus activity measurements ccc cece cece eecceecaeece seca cess eeseeeeeeseeeseesseeseeeseeeseeeaees 28 4 4 SPI transmission measurements cccceeeceeceseeeceeecseeeceeeteeeeseeeseeesseeseeeeaeees 31 1S OAH data ANY SIS ooer nE Ganeeiensaenaaenoeeeeceni 33 Contents Please visit our Website www embedtools com EMBER TAMRAR W T 020 22644972 Contents a A4S2Hyg erased ZHIYUAN Electronics CO LTD All rights reserved ann 35 Af Plug in T
138. eeseeeeetaeeeas 70 6 10 1 Quick guides ON waveform viewer SCLUDS 1ccccssececeseeeceaeeeesaneessaneeees 70 OO ZZ OOS OPON crate ated E ana ae So ceca edna ea ese ea enee ness daect 71 6 10 3 Details on setting the waveform VIQWEL 1 ccscsccseeeccnseseeeesseeesansesansess 71 6 11 Toolbar customization iicesesn aca dae sesiecsahevaecessocceusssecedenenbdeeustsehoatndsbete lt stwavedanctaoeeens 72 6 11 1 Quick guide ON toolbar CUSTOMIZATION cccccccccsssseesesececeessssseesescesensens 72 Chapter 7 Detailed trigger guides cccssseccesseecenseeceneeeeeneeseeneeseeneees 74 7 1 12 types of fast TO GSLS osicsc icici dinnscannacawcenit deeatadsnnevecetenewedssnais sant easanesdxvccedldeexnadseentl 74 7 1 1 Trigger Immediately cece satactae oe reese sate ecmas sont cea eeeeedases eanstasesoeaeeee 74 7 1 2 RISING edge thiQQUels 11 cccssscccsssecccsesccnsuscensueeessussessuueessausessaneessanasesanesessaes 75 7 1 3 Falling edge trigget siccccesscccaciencmsnesmnuacpanausindiseennsenemnbantisciouegiendoniecemensouunactue 76 LIAE WTA T e E E E E E NE E E E EE 76 Zt Dala valdo JJO e EREE E AE AE ren ees 76 7 1 6 Data gueue trigger ecceianictaadasxnccatinentes ieesend denen inania niini eiai aiani EE EERS 77 7 1 7 Data value and rising CAGE trigget ccsscececneeeecaeeeensnererseeessaenessaneessaes 78 7 1 8 Data value and falling edge trigget cccscccccseseecneececseeeensnesessaesessanensnans 79 Vda eo Ha UNE TJO e
139. eeseeeseeeeeees 203 Chapter 14 Supports amp QUarAaNt eS cccceeeseeeeseeeeeeeeeeeseneeeeeeseneeees 207 14 1 Frequently Asked Questions and answers ccceccceecceeeceeeeeeeeeeeeeeeeeeeeeaes 207 14 2 Technical SUD DOING ec sosct tere tactic mecsaninaapitedocdnadsesevedieuchuecen uaia wia N Ka a EEEE texe 209 ore 21216 0 6 renia a e ee eee ee eee eee 210 Appendix E TOO Dal ICONS acs sisesecceeitecuece cscs teas vest eece signee dese uceceseeesades 210 Appendix Il Hotkey lists xcscstceseace dn seeu saenncensoeneeesstecseestovewesecenesceveosceceswooar 212 Appendix III ISO9000 Certificates ceceseeseeseeseneeeeeneesenseeseneesseaes 213 Contents Please visit our Website www embedtools com TY BC 370 FB BR 2S a 4828 T 020 22644372 F 020 38601859 Ee 2007 Guangzhou ZHIYUAN Electronics CO LTD All rights reserved Chapter 1 Product Introduction Due to the fast development of the electronic devices the digital circuit designing takes up more and more percentage in the total electronic devices developments thus how to verify and check a digital circuit is getting more and more important today Now ZHIYUAN Electronics brings you a brand new LA series logic analyzer to assist your development in this critical area It contains many new and creative technologies leading the evolution of analyzer functions and techniques The LA series logic analyzer uses the PC as its displaying platform and
140. efine the bit time signal idle state start bit parity mode frame length and error tolerance level Based on these settings first it will find out the data values bit by bit and then calculate the parity bit to verify it at last display all results directly and visually on the waveform viewer 8 2 2 Protocol analysis plug in 1 CF Card True IDE Mode Analysis plug in The CF card True IDE mode analysis plug in can perform detailed timing analysis to the CF card data under the True IDE mode finding out the read write operations to the device register the data value read from or write to a register and the ATA commands and their parameters also interpreting the timing of the read write operations then display them in specified colors on the waveform viewer 93 Please visit our Website www embedtools com Chapter 8 Plug in Analysis 2 Modbus Protocol Analysis plug in The Modbus Protocol Analysis plug in is aimed for the Modbus protocol implementations on serial data link layer The interface on physical layer can be set to RS232 RS422 or RS485 and the available transmission mode is RTU or ASCII It decodes the data on physical layer data link layer and MODBUS application layer respectively and supports Modbus model with up to 4 wires 3 SD MMC Card SPI Mode Analysis plug in The SD MMC card SPI mode analysis plug in is a SD card protocol analyzer under SPI Bus mode also supports the compatible MMC cards The plug in
141. en are etter EE oR Aten Pena se a E eer 79 7 1 10 Data arrival and delay triQQes ccsscccccseecccseecessueeesssecesseeessaneessnesssans 80 7 1 11 Data passed and delay trigger ccsscccccseecccseeeccseeeecseeeessneeesseeessneessaes 80 7 1 12 Data occurrence trigger 1cccscecccseecnsesensuscsausensusenausessusesacessseessasassnaass 80 Fer WASUAL MOOSE SOU aaae E EEES E E N 81 7 3 Plug in trigger SetUD ccecceccceccceeceeeceeeceeeaseceeeceecsaeceeecaeecaeecaesageceeeseeesaesaeesas 82 7 4 Advanced trigger setup cccccceecceecceeceeeseeeceeecuecaueceecaeecaeseessaeeseeecuesueseeesas 82 7 4 1 Detailed Descriptions cccccssceeccnseccaeeecasusecsauseecauseessuesesscesessaasessuasessaes 83 742 NOCO ON IS AO ec sia secession eae Ae EE e aE E E EE 84 7 5 Examples for advanced trigger SCtUD cccccccceecesececeeeceeeeeeeeseeeeeeeeseeeseeesaues 88 Chapter 8 Plug in Analysis ccccceseesessesceneeeeeneeseeseesenseesenneesenseeseneees 91 3 id I fot a OVErVIEWS ee eee ee eee 91 8 2 The meaning and Classification Of plug in ccc ceecccececeeeeeeeeeeeeeeeeseeeseeeeaees 92 8 2 1 Bus Analyzer ON NS ce ese cea pene ia ctagseecoseane cite eects ce iE IR Tia 92 8 2 2 Protocol analysis plug in ccccsccccseeccseeecsneesseeccsuessausensusesausessueesansesasesans 93 8 3 Descriptions on Analysis PIUQ INS cccccccecceeceeeeseeeeeeceeeseeeseeeeseseeeseeeseeeaeeees 94 Con
142. er 2 Hardware introductiOns cccsssscccesseeseeneecnseeseeeeeseeneeeennees 11 2 1 Features of LA2532 LOGIC analyzer 0 e ccc eccc cece eeeeceeeceeeteeeeseeeseeesseesseeeseeees 11 2 1 1 Feature 1 LOGIC analyze ccccscccssescnseccnsesensuscnausessusesausessussssusesanssssasess 17 2 1 2 Feature 2 Bus QUAY ZOOM rece siccnatscrendacessandebsssestecdoceonussessntucbeceaddsunetecierast 12 2 1 3 Feature 3 Protocol ANALYZES ccccsccccseecccceecneuscnsuscnausensusesausessusesceessnaass 12 2 1 4 Feature 4 CYIMOIMECTELS ccccccccseecenseeeecseeecsansessansecnacseenaussensuasesaaunessaaass 12 2 1 5 Feature 5 LOGIC PON 1cccssccccseecccecccaceecneeeccsuscnsusecsusensusessusesausessanssasessuaass 12 2 2 Aspect of the LA2532 logic analyzer ec cece eeccseeeceeeceeeeceeeeeeeeeeeeseeessueeaeeesanes 13 2 3 The hardware connections of the logic analyzer cece ceccceeeceeeeeeeeeaeeeeeeeeaees 14 2 4 Data compression AIGOLISM cccccsece cece eeeceeeceeceeeeeeeceeeseesaeeseeeseeeseeeaeeeeeseeees 15 2 5 System requirements xcctiscciecriss cnnerciucntiadeasasicncanctaseageasdearaeedetiaeiensabacacePasiedusssseaeeeades 16 2 5 1 Minimum TOQUINCIM CIN nc0ccsieccusdavevdnssccendaberevetesesexceusacsendsdeeieadesssstetedecbonse 16 2 5 2 Recommended PC PlatOrr csccccssecccnseecccseecccsuececsueeessueeesseeeessansessaaaes 16 Chapter 3 Software installations cccccsseecseseeeeenee
143. er will not focus on specific voltage values and the analogue characteristic of a signal it works on the aspects of voltage level For example Figure 1 1 shows a falling edge of a signal displayed in oscilloscope software ii i a a UO lr le aF li ak eh UL hr eh UCT le oe Aa n Gat a a AX 1 0000us L O0TOMH ATE ee ree Y TO YI Stee eoe A y ea n ae Figure 1 1 A falling edge of a signal displayed in oscilloscope For an oscilloscope it can measure the falling time of the voltage voltage scope and the spurious interference of this signal But for a logic analyzer the result of the measurement to this signal is quite different as Figure 1 2 Shows i 14P0m F 1 3G0me fa pama decd edad L satan E Figure 1 2 A falling edge of a signal displayed in logic analyzer 3 Please visit our Website www embedtools com 7 Bit BF BR ZS 4228 T 020 22644372 F 020 38601859 1 212 Kheomeasurementanethodology of logicnanakyzers The logic analyzer used a specified frequency to sample the inputted signal then compare it with the threshold voltage if the voltage of the inputted signal is greater than the threshold voltage it will be treat as logic 1 if it s less than the threshold voltage it will be treat as logic 0 Figure 1 3 shows a comparison on the gathering result between logic analyzer and oscilloscope CP AMT SORAAGAAAAASRARRUAEA 0 EESE TN ARR Figure 1 3 The result compar
144. es or peaks that lasts one clock duration and the level two filter can filter high frequency pulse or peaks that lasts no more than two clock durations The effects of filtering are shown as Figure 13 1 All Buses PeOCS1 CAH H CAH L Figure 13 1 The original signal before filtering All Buses PaOCS1 CAH H CAH L Figure 13 2 Level one filter result From the original signals we can find that the CAN L signal is mixed with a high frequency noise or interference After applying the Level one digital filter the interference is greatly reduced and now the waveforms are much better than the Original one 13 2 Loading a saved file 1 Load a binary file The LA series logic analyzer software can save the waveform in binary format in addition to its own format To save the waveform in binary format just select the File gt Export option in the menu bar as Figure 13 3 shows 192 Please visit our Website www embedtools com File Y Hew re Open Close Save Ly Save All Save Backup as Saye as Import Export Chapter 13 Special Functions Ctrlt H Ctrlto Ctrlts Export To CSY File Print Print Preview Print Setup D zla ODEUS zla F zla 5 M C Sol rla 1 i a 4 Exit CtrltF Figure 13 3 Export to binary file At this time a dialogue will appear and ask user to specify the path and the file name after doing th
145. esult waveform the default color is green Start bit color Setup the displaying color for the start bit within the decoding result waveform the default color is yellow Response color Setup the displaying color for the ACK and NAK bit within the decoding result waveform the default color is red Stop bit color Setup the displaying color for the Stop bit within the decoding result waveform the default color is white Address Classification For the convenience on observation classify the displaying of the decoded data based on different slave address and display them separately Read Write Classification For the convenience on observation classify the displaying of the decoded data based on operation types for read operation or write operation and display them separately OK Confirm the settings and dismiss the dialogue Cancel Cancel the settings and dismiss the dialogue 9 4 2 Detailed descriptions 1 Select the Tool gt Plug in Manager option to open the plug in manager dialogue Then select the IIC Bus Analysis within the plug in list and click the Setting button to open the I C Bus Analysis Setup dialogue 106 Please visit our Website www embedtools com Bus Signel Sampling Trigger Chapter 9 Bus analysis plug ins Plug in Hanarer Hame ASD Conversion A CF Card Analysis IIC Bus Analysis Manchester Codin Modified Miler C MODBUS Protocol
146. etup 1 C Program Files 450 rla 2 C Program Files SPI rla 3 manchester zla 4 MODBUS zla Exit Figure 5 2 The File menu 40 Please visit our Website www embedtools com New Open Close Save Save All Save Backup as Save as Export Export as CVS file Print Print Preview Print Setup E logic new zlglog2 Exit Chapter 5 Menu descriptions Create a new blank file Open a saved file Close current editing file Save current editing file to disk Save all opened file to disk Save a copy of current file the file name of the current file will not change after saving it Save the current editing file in other name or format the name of the current editing file will change to the new one after the saving action Export data from the current editing file and save it as a binary file for reanalyze Export data and save in CVS format so that you may use The Microsoft Excel to reanalyze the data Print out the current displayed screen Preview the printing results on your PC Setup the Printer The recent files multiple Exit the zlglogic software 5 3 The Record menu Re cord Setup Analyser T nra Figure 5 3 The Record window Run Activate the device once the triggering conditions are satisfied the recording starts The recording will stop when the storage for the data is full then
147. ext to the DATO bus as the red box area in Figure 4 19 shows La logic demo zla were wrerers 3 35036000s 33505 7000s aera wrerere erures rears ereres urerers 3 3506 1009s anae aAa G Leo LED 0 T LED 1 T LED 2 T LED 3 i LED 4 0 LED 5 0 LED 6 Lf LeD 7 ces clk OUT Dato Figure 4 19 SPI data analysis result The OUT bus presents the result of SPI transmission analysis as the red box area in Figure 4 19 shows the data transferred on SPI bus is OxFD which is exactly the same with the expected value at 74HC164 the analysis works as intended So with the analysis plug ins it s very convenient for user to analyze the data being transmitted on specific buses it greatly simplifies the analysis work for engineers since the plug in handles most of the calculations in bitwise based on protocol or bus specifications 34 Please visit our Website www embedtools com Chapter 4 Quick start tutorial 4 6 Trigger settings Trigger is a useful tool that can help us focus to specific locations or segments of a signal such as disturbance abnormal controls and transmission errors The logic analyzer will start the recording when the trigger conditions are satisfied Since the sampling data is massive and increasing rapidly without stop even faster when using higher sampling frequency but the recordable size of logic analyzer is limited so usually
148. find that the IIC Bus Analysis option has been added under the Plug in Trigger option Select this item then the I C Trigger setup interface will appear as Figure 10 6 shows The default trigger condition is the start bit signal of I7C a EE Trigger Edge e IC Trigger Setup H Pus triggers Data value Data Queue x ZEL E Synthesis triggers Data value and riz SDA Data value and fal I Time related triggers DATA Hold time Data arrival and Tata passed and de i 7 Occurrence counting ngger ype oO E Flugi igge Start Condition TIC Bus Analysi Wil Response i WTRE Stop Condition SFI Bus Analysis Specified Address Sol Bus Analysis UART Bus Analysis Advanee Trigger Figure 10 6 Select the IIC Bus analysis trigger setup 3 Select the trigger types If you select the start bit or stop bit as a trigger condition there are not further options to specify so just click on the trigger setup dialogue to confirm you settings But if you selected the specific address trigger option you must further specify the address data direction response type as Figure 10 7 shows IIC Trigger Setup sev soa DATA Trigger Type Start Condition address Address 70 E Wil Response Stop Condition O Read ACK Specified Address Owite NACK Figure 10 7 Specific address trigger type 4 After all settings are done left click the button to confirm yo
149. gnal lines 9 4 1 I C Bus Analysis setup options IIC Setup IIC Bus Property SCL Signal Sci SDA Signal IIC Analysis Result Setup Color Setup Result Name DATA Data Response Data Type Number Char P lz Displaying Format C Ascii Hex Stop Bit Classification Start Bit Location Before SDA We bi E Figure 9 12 I C Bus Analysis setup interface SCL Signal Specifies the SCL clock signal of the IC Bus All single channel signals are available within its dropdown menu list SDA Signal Specifies the SDA data signal of the I C Bus All single channel signals are available within it dropdown menu list 105 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Result Name Specifies a name for the result of decoding The default name is Data Location Select the location to put the result of decoding Two options are available put it on top of the SDA signal or under the SDA signal Data type Select the original data type of the measuring signal Number for numeric type Char for character type Displaying format Select a way to display the data It s a data value if the Data type is Number then Decimal and Hexadecimal are available in this option Its a character if the data mode is Char then ASCII and Hexadecimal are available in this option Data color Setup the displaying color for the data bit within the decoding r
150. gnal triggers Bus triggers v MyBus0 v va Trigger Type Rising edge oe S ee lt r Falling dege No Actic Dont care cou Don t care timr w And Goto step 2 Edge Se eae aetna ae J Bus triggers No Actic Don t care cou Don t care timr 3 4nd Soto Step Data value I 1 M n CeT Data Queue Synthesis triggers Data value and rising E i T al a a and a f Gl Bus triogers E veusa E pTi Sie triggers Mo Actic Don t care cou v Don t care tin x 4nd Goto Step 2 Hold time O lu O u ee Coe Data arrival and dela a a ree Si icine TS No Actii v Don t care cou Don t care timr And Goto Step 0 Tata passed and dela n aa i p al Oeeurrence counting Plug in Trigger Advance Trigger Anytime ov g e Figure 7 24 Advanced Trigger setup for a single bus with different comparisons 6 But if the relationship between two conditions is AND and both comparing mechanism is then each of two conditions can be set to a bus or a signal For example if you want to trigger with MyBus0 5 and MyBus1 8 you can set the first condition to find out whether MyBusO equals to 5 and the second condition to find out whether MyBus1 equals to 8 if yes start th
151. gnals as Figure 4 16 shows La logic demo rla scale teria eae arenes i elie SS alia ara altro i SASDRUUUUS SADURA yy IMa yyy he hh O G E E e G eE E Leo a4 LED O T LED 1 a LED 2 T LED 2 A LED 4 i LED S A LED _ LEDET a a wl ee ee ee ee G E a S a es cur cate Figure 4 16 SPI transmission From the measurement results we can find out how DATO outputs are translated to LED control signals at the rising edge of the CLK signal 32 Please visit our Website www embedtools com Chapter 4 Quick start tutorial 4 5 SPI data analysis Generally when we want to analyze the SPI transmission data we need to compare each rising edge of the CLK signal with the outputs manually then calculate the data value by counting bits It s definitely a boring job are there any ways to simplify it The answer is YES but with the LA2532 logic analyzer we have a much quicker way to perform this kind of jobs that is use the SPI Bus analysis plug in provided by LA2532 Step Select the Tool gt Plug in Manager to bring up the plug in manager dialogue as Figure 4 17 shows Plug in Hanager Name Version Manchester Codin 1 01 Modified Miler C 1 01 MODBUS Protocol 2 01 1 WLRE Bus Analysis Z U3 SI Card Analysis 2 U1 SFI Bus Analysis ool Bus Analysis O1 UART Bus Analysis O1 WOOO oS ki r Descnption The SPI Bus analys
152. h and parity type settings should matches with their actual properties of the UART transmission If they are not matched the decoding result will be wrong Data Length tion Setup TSD Signal E nia p Source Signal a Data length b Stop bit length c Prarity bit setup Figure 9 51 Set the data bit stop bit and parity mode 134 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 4 Select TXD and RXD signal for decoding The UART serial port use two wires to transfer data they re RXD and TXD User can decode both two signals together But sometimes user may only need to measure one wire of signal such as only measure RXD for the analysis on received data or only TXD for the analysis on data transmission The UART Bus analysis plug in can perform decoding on a single signal TXD or RXD Figure 9 52 shows an example that does not decode the RXD signal But user need to notice that the plug in will not distinguish the RXD and TXD signal that is to say you can put a signal on either TXD or RXD place to perform the decoding and both get the correct result if it s a UART transmission signal Senal UART Communication Setup AD Signal TsO Signal Source Signal Enable Source Signal H Figure 9 52 UART Analysis for TXD signal only 5 RXD signal and TXD signal setup The RXD and TXD settings are roughly the same Take the TXD as an example the most important setting is the Source Signal
153. he marker should be placed 6 7 Finding markers After sampling the signal zooming in or moving the viewer screen could make a marker out of the displaying area How to find a marker quickly You can use the marker finder dialogue 6 7 1 Quick guides on finding markers Step 1 Click the button within the tool bar or select Analyser gt Go to marker option to bring up the marker finder dialogue Go To Specific Marker Position 40 FU Ad Figure 6 21 The marker finder dialogue 65 Please visit our Website www embedtools com Chapter 6 Function Descriptions Step 2 Within the marker finder dialogue it will list out all markers with names and positions including the new markers defined by user click the marker you want to view and then click to shift screen center of the waveform viewer to the position of selected marker 6 7 2 Dialogue options Name List out all available markers Position The position of the marker OK Click to locate the selected marker Help bring up the help information Press F1 6 7 3 Details on finding a marker 1 Name list out all available markers including new markers that defined by user for example if you defined a new marker LABEL then it should be on the list as Figure 6 21 shows 2 Position The positions of the markers are displayed in sampling points for example if M1 was placed at the 40th sampling points if the sampling frequency
154. in settings Their states are corresponding to the use option within the plug in setup dialogue if a Signal is disabled in the plug in setup dialogue its corresponding state in the plug in trigger setup interface will be disabled too vice versa Data value enter a data value and set it as a trigger When this value appears on SPI bus the logic analyzer will be trigger to start the recording OK Confirm the settings Cancel Cancel the settings 10 6 2 Detailed descriptions 1 Complete the SPI Bus Analysis plug in setup by following the steps described in section 9 6 1 2 Select the Setup gt Trigger Option from the menu bar to bring up the trigger setup dialogue you will find that the SPI Bus Analysis option has been added under the Plug in Trigger option Select this item then the IC Trigger setup interface will appear on the right side of the window as Figure 10 18 b shows You may notice that in Figure 10 18 a the MOSI signal are enabled and the MISO signal are disabled this is because that the MOSI signal are enabled in the SPI Bus Analysis plug in setup dialogue but the MISO signal are disabled in it as Figure 10 18 b shows 159 Please visit our Website www embedtools com Chapter 10 Plug in Triggers Re mey panikis Trigger Immediate a SPI Trigger Setup Signal triggers B Rising edge Falling dege Edee scr Bus triggers SSEL Data value n Tata Queue MOSMISO E
155. int will be remained automatically For high frequency signals you can used the Cymometer to obtain the frequency value without falling into complicated calculations on using the waveforms this will save your time and increase the efficiency of the analysis The applicable range of the Cymometer is 10HZ 50MHz For the convenience on observations you can even drag out the Cymometer as a separated window The steps are simple just point your cursor to the dot on the left side of the Cymometer tool bar as Figure 13 13 shows File Record Setup Analyzer View Window Tool Language Help x 2 HH b 0i G oa p Eg jal EA AAA Figure 13 13 Move to the tool bar 6093 Then left click and hold down you mouse button when the cursor change to a shape you can drag out the Cymometer window in this mode the numbers are in much bigger fonts so that you can observe it from distance as Figure 13 14 shows serous PA Aa a aad an 1 Cymometer Figure 13 14 Undock the Cymometer window for better views 198 Please visit our Website www embedtools com Chapter 13 Special Functions 13 5 Automatic upgrades The zlgLogic software will find out updates automatically through the network every time you launch it During this time a small icon will appear on the task bar to indicate this procedure as Figure 13 15 shows Update zlzbLogic CH Ea a r i 16 06 Figure 13 15 Icon on the task bar during updates If
156. ion this greatly improve the maximum time period of sampling For example when using a 1000 KHz sampling rate to sample a 100 KHz signal the original recording time without compression will be 32 seconds but the recording time with data compression can be over 80 seconds this is more than twice of the recording time without compression The data compression adopts a non linear method and the compression rate can be adjusted to a best value automatically to meet different situations but the lowest compression rate will not lower than 1 This means that the recorded sample points is more than or equal to the original 32Kbits without compression The following figures show that an example on external bus data recording for an 8051 processor When using the traditional recording method without data compression the recorded time is less than 400us but with the data compression method the recorded time can be extended over 4ms so the recordable time is 10 times longer than using the traditional method Comparing two figures you can find that the precision of the record does not change when using data compressions Before data compression l compreassl zla unt cpress rla 200 00us 250 00us i i i i l Li 1 i 1 i i i i Figure 2 4 Before data compression 15 Please visit our Website www embedtools com Chapter 2 Hardware introductions After data compression coma preze rla e
157. is click the button to save the file Tean O f em SAIME xAnalyser Driver FA OW 23 v PRPS SBI Ge bin hd KEDE Figure 13 4 Dialogue about saving the waveforms to binary file 193 Please visit our Website www embedtools com Chapter 13 Special Functions The structure of a binary file is quite simple it just combines the states of all 32 channels to a DWORD and save it For a clear view you can open the example 8051 timing file provided along with the software then set a full channel bus named ALL as Figure 13 4 shows then save to a binary file Use a binary editor to open the file then you may compare the data with the data listed in ALL waveform You can found that the first value of ALL bus is OxFFF61E0C and the first four data in the binary file is OxOC Ox1E OxF6 and OxFF they are matched but placed in a reverse order Understanding the saving format of the binary file it should not be hard for you to load data from this type of files in your own analysis programs E Addr ALE sTAL eo wr Po P2 Figure 13 5 The data value of the full 32 channel Signal ALL in waveform viewer oooooo00n fc 1 F6 FF OC 1E F6 FF OC 1E F6 FF OC 1E F6 FF HOBOS Oe ILE FE Sr OC IE F6 FPE ott C LETERI EET HOODOO ie TIE FF ER OC IESE FEF OC IETF FFE OCSIEIFE TEE HO0OMOSOM OC ATE FE TEE OCS TE SFO F I I SEES FEZO C CITE FIS EF HOGS MS Or S IESPA ER OCA TE EaI EE OC DE FI
158. is different then the sampling time of it is different For example in Figure 6 22 the sampling frequency is 100MHz so the time period for each sampling point is 10ns Bus Signal Sampling Trigger Sampling Frequency Threshold setting W Frequency MA MHz POD AQpside L CMOS 1 70 ad Cycle 1Ons a Digital Filter one 1 Oe Aequi sition 32K V Compress Trigger Position 32k a 10 Save to files when sampling repetitively Directory Figure 6 22 Sampling setting dialogue 66 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 8 Add auto measurements There is an auto measurement bar under the waveform viewer showing the instant results on several types of calculation between two markers the default measurements are time intervals between M1 and M2 which will be M1 M2 and frequency which will be 1 M1 M2 if they are located at one cycle period of the signal User can also add new auto measurements into this bar based on their requirements these instant results can save their time on doing such kind of calculations allowing user to get a first glimpse on the aspect of signals 6 8 1 Quick guides on adding a new auto measurement Step 1 Click the 4 button within the toolbar or select Analyser gt New Measurement within the menu bar to open the add measurement dialogue Add Measure Choose To L
159. is plug in can decode the acquired data based on SPI Bus specifications t supports four transmission modes of SPI Bus and the variant length SFI data tramezalso allows user to decode the MISO and Figure 4 17 The plug in manager window Step 2 Select the SPI bus analysis plug in and click button to bring up the SPI decoding setup dialogue Then set CLK for Clock Signal item CS for SSEL Chip Select item MSB for LSBF item 8 for Frame Length item and CPOL 0 CPHA 0 for SPI Mode item clear the Enable option of MOSI bus blank and tick the Enable option of MISO bus then select DATO in Source Signal of MISO leave other setting to default as Figure 4 18 shows 33 Please visit our Website www embedtools com Chapter 4 Quick start tutorial SPI Setup SFI Bus Property Clock Signal SCK C5 Signa C5 s LSBF MSB Frame Lenath 8 ps SPI Mode CPOL 0 CPHA 0 v SFI Analsis Result Setup MOSI MISO l Enable l Source Signal Source Signal DATO Enable Result Hame e Result Mame OUT Location Location Before DATO v Coin E Cor E Data Type O Number Char Displaying Format Ascii Hes Figure 4 18 SPI analysis settings Step 3 click to confirm your setting and back to the plug in manager then click again to confirm Then a bus named OUT will appear n
160. ison between oscilloscope and logic analyzer 1 2 3 Advantages on using logic analyzers Though some types of oscilloscope also have the ability to view digital signals but normally they only have 2 to 4 channels they cannot satisfy the analysis requirements for 5 or more channels especially for microprocessor buses Normally a logic analyzer will have 16 or more channels even over 300 channels for some high end product types Comparing to oscilloscopes the logic analyzer has these advantages 1 Monitors multiple channels at a same time 2 With good and various triggers 3 Powerful analysis functions 1 2 4 Four application fields of logic analyzer There are four application fields for a logic analyzer 1 Oscilloscope Observe the waveform to find out if there re burrs or interferes or check if there s errors on frequency 2 Timing measurements Measure the timing of signals to find out conflicts or timing problems 4 Please visit our Website www embedtools com Je eon 4228 T 020 22644372 F 020 38601859 ssistance on analysis 2007 Guangzhou ZHIYUAN Electronics CO LTD All rights reserved Provide additional analysis to bus signals or protocols to simplify the development cycle 4 Bug finder With its strong trigger ability a logic analyzer can be used for error tracing or finding hidden bugs within the system this advantage improves the stability and reliability of the product under developme
161. it s not possible to record all sampled data So setting a good trigger allows you to save your resources and focus more on interested fields also allow you to find out problems quickly and precisely The following is the steps to setup a trigger for the abovementioned SPI bus analysis example Step 1 Click the Setup gt Trigger to open the trigger setting window to setup the trigger conditions For this example if we need to set a trigger at the beginning of the SPI transmission we can set a falling edge trigger and use the falling edge of CS as trigger conditions as Figure 4 20 shows Bus Signal Sampling Trigger Trigger Type Immediate Falling edge trigger Signal triggers Rising edze Edze H Pus triggers Data value Data ueue E Synthesis triggers Data value and ri Data value and fal Time related triggers Target signal E5 E Hold time Data arrival and Triggered by a falling edge appeared on the selected signal T Data passed and de Qeeurrence counting Plug in Trigger S SPI Bus Analysis Advance Trigger B Figure 4 20 Setting a falling edge trigger Step 2 Click the button then click the Run l run once icon within the toolbar then the measurement result displays as Figure 4 21 shows 35 Please visit our Website www embedtools com Chapter 4 Quick start tutorial Trigger point ana RARE s ares eres P aia A ii Mame ere are
162. it before or after the original signal as Figure 9 31 shows for the convenience you can just use the default settings for location and displaying color SPI Analysis Result Setup MISO Enable Enable Source Signal MISd we enable Result Hame MOSI Source Signal Result Hame e Figure 9 31 Enable the measuring on MISO or MOSI within the SPI analysis setup Source Signal Result Name Location 5 Fod B Fod A 11 10 9 T 6 5 j4 3 2 1 O 15 14 13 12 11 10 9 3 T e S 4 3 2 1 JO OOOBOORDRBOORAABAOOABOADADDAaAaHRDWAaGOo FRO GO GO ere GGG G G G er G G G G a Gai G a LG L L L rirfriririririrfriririrErirErErEririrEririrfriririririr G G G G G G G G G GG G G GG G G G GO GOG G G Ga G G L Figure a Signals defined in Bus Signal Setup dialogue 15 14 13 12 O GO O gO J LJ LI Ld Ld Ld Ld Lid O O O O a p s Enable Figure b Signals available in Source signal option Figure 9 32 Select a SPI data signal to perform the analysis Setup the Data type and Displaying The Data type is the actual data type transferring on the SPI bus such as 0x55 for data value and A for character It has two types one for data value and one for character if you select the data value in this option the Displaying will have two options available Decimal or hexadecimal Hex otherwise for the character type Char the Displaying options will change to ASCII and Hexadecimal
163. itable for those low frequency signal analysis Figure 13 8 shows the aspect of the logic pen File Record Setup Analyzer View Window Tool Language Help I2 HH b amp 0 iI G O aBa Axe LE BO Ay Ay A Logic pen Figure 13 8 Logic pen function From High to Low the representing channel states are PODB CH15 PODB CH 0 PODA CH15 PODA CHO When you move the cursor to a bit on logic pen it will show up the corresponding channel name as Figure 13 9 shows ce Fi F RO JC 3C WU b3 ka ES kd cd eee Cre Figure 13 9 Displaying the name of the channel on the Logic pen interface To remove the fluctuation on connection the logic pen samples the data in a certain frequency There are three status of the logic pen i Represents a high voltage level Represents a low voltage level 196 Please visit our Website www embedtools com Chapter 13 Special Functions I Represents a fluctuation on signal The voltage level are judged by the threshold voltage user can change this threshold voltage based on their requirement just click Setup gt Sampling to configure this parameter as Figure 13 10 shows _Bus Signal sampling Trigger Sampling Frequency Threshold setting Rveqeencra 100 00 POD A Upside LYCMOS 1 T0 w Cycle l ns FOD E Downside eel 1 TOVE LVCMOS 1 TOV 2 00 Digital Filter Hone 1 Or i0 9647 1 ITV Acquisition V Compress 1 TOV 1 65V tz 00
164. ithin the Bus Signal setup dialogue are available for this option as Figure 9 66 shows you should select the one corresponding to the actual signal to be measured Bus Signal Sampling Tri ezer L Fod E Fod A 15 14 13 12 11 10 3 8 T 16 5 4 3 J2 1 O 15 14 13 12 11 10 9 8 T 1B 5 j4 3 Z 1 0 oocnonononnnoncnononnnnnncnnononnonnik IW ae eae eee ae aa ae UOU Ue Ue UU O ba ba ba ba ba a a Figure a Signals defined in Bus Signal Setup dialogue MyBusil 7 Moditied Miler Coding Properties Idle State High s Byte Length 8 Figure b Signals avaialbe in Source Signal option Source Signal bod Signal Bit Time RET Figure 9 66 Select a signal to perform the Modified Miller coding analysis 3 Setup the Idle state Select the Idle stat for the signal This option is used to confirm the starting state of the signal According to the Modified Miller coding specification these two states Low and High will lead to two completely inverse results so this setting is extremely important for the analysis since it affects the result of analysis completely user should set it based on the actual signal states 148 Please visit our Website www embedtools com 4 5 6 7 8 9 Chapter 9 Bus analysis plug ins Setup the Start Bit or First Bit for the signal data If the coding of user data contains a Start Bit of transmission then the first bit of data will consider
165. k the Setting button to open the A D Conversion Analysis Setup dialogue Plug in Manager Using Hame ASD Conversion Analysis CF Card Analysis TIC Bus Analysis Manchester Coding Analysis Modified Miler Coding Analysis MODBUS Protocol Analysis 1 WIRE Bus Analysis SI Card Analysis ki LJ Description The 4 0 Conversion Analysis plug in can analyze the analogue value of the analogue output then display the analogue value with a smooth curve on the waveform VIEWEr Figure 9 6 Activate and configure the A D conversion plug in 2 Select the A D Conversion output bus The output of the A D conversion has multiple channels so only buses are available in this option All multi channel buses within the Bus Signal Setup dialogue are available within the dropdown menu As Figure 9 7 shows 102 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Bus Signal PEENTE Te Zger 15 14 13 12 11 109 j T 6 5 4 3 z 1 ao 15 14 13 12 11 10 9 68 T 6 5 4 z Z i 0 ooOOCOOOOOOOOCOOCOOCOCOCOCOOCOCOOCOOCOBBAMM MoT 4 Boonen nn nnn ee cs DOOGOOOOGOOOOOODOGOO000000008o00000b0Qn EN 1 SR PRR m m m m m m m m e ma m m m a a Hame Bor Figure a Buses defined in Bus Signal Setup Dialogue A T Setup Eg Rase Setup AD Chatput ADOUTI ADOUT Enable AGOUTI Figure b A D Conversion output Figure 9 7 Selecting the A D conversion Outp
166. lect the Set it to trigger option to set this segment of signal as a trigger condition 204 Please visit our Website www embedtools com Chapter 13 Special Functions 6 Quick search on waveforms You can also set the selected waveform as a searching condition Right click and hold down the mouse button and then drag a box to select a segment of waveform when you release the key the waveform selection menu will appear just select the Find next option to set the selected waveform as a search condition 7 Zooming the waveform You can zoom in or zoom out the waveforms horizontally or vertically There are three kinds of zooming operations in horizontal direction They are global zooming area zooming and point zooming The differences between them are the position of the central line The central line of Zooming is a position that remains the same after any horizontal zooming actions on the waveform viewer screen The position of the central line for global zooming is the centre of the waveform viewer screen for area zooming is the centre of the zooming area and for point zooming is point location on the waveform viewer 1 Zooming the waveform vertically TAL i ae E Addr 4 P2 E Po Figure 13 27 Waveform before zooming E Addr Figure 13 28 Cursor shape for zooming As Figure 13 27 shows if we want to zoom out the ALE waveform vertically just move the cursor to its border to
167. lick Cancel to reboot later we recommend you to click OK and reboot the computer since the new files are only usable after the update applies Update zl glogic A For the updates to be applied you aurt reboot the system Click OK to reboot now or click Cancel to reboot later Figure 13 19 Reboot after update or not After the reboot the old version of software will be updated to the new one To launch the update separately you can also open the start menu of Windows then select All programs gt Zhiyuan Logic Analyser3 0 gt Update as Figure 13 20 shows then the update window will appear as Figure 13 21 shows 200 Please visit our Website www embedtools com Chapter 13 Special Functions fe Demo fin Help i Uninstall zlgLogic tlemeu Logic Analyser z fa gt Up d A t Welcome to the zlgLogic Update Wizard This wizard will check available updates for zlzLogic Click Next to continue or Cancel to exit upd Click here to configure the proxy Cancel Figure 13 21 Update guide If you are using a proxy network please click the Proxy setup to bring up the proxy configuration dialogue as Figure 13 22 shows 192 168 0 56 Figure 13 22 Proxy setup 201 Please visit our Website www embedtools com Chapter 13 Special Functions Fill in the Host IP and port if you re not sure about these please contact your network super
168. lish View in English 45 Please visit our Website www embedtools com Chapter 5 Menu descriptions 5 10 The Help menu Help i Help Topic Update About zlgLogic Figure 5 10 The Help menu Help topic View the online helping file Updates Check for updates About zlgLogic Information about the zlgLogic software 5 11 The Toolbar customization menu Move your cursor to the Tool menu within the menu bar then it will show up its submenus as Figure 5 11 shows within this menu you may view hide the standard toolbar Logic pen tool and Cymometer tool so that you can select Customize to customize the tool bar components detail about this will be described in the introductions to user toolbar customize window A A Ab v Standard EE Cymometer Mi Customize m m m i oo Figure 5 11 The submenu of Tool bar 46 Please visit our Website www embedtools com Chapter 5 Menu descriptions 5 12 The waveform viewer assistant menus 5 12 1 Waveform viewer right click drop down menu Right click on the waveform viewer then a drop down menu appears as Figure 5 12 shows Zoom In Zoom Ont Zoom Out Full Flaced Ml Flaced Mz Insert Marker To Ml To Me To Trigger Point To The Beginning To The End Property Figure 5 12 Drop down menu for waveform recorder Zoom In Zoom Out Zoom Out Full Place M1 Place M2
169. location is shown in Figure 4 1 In normal situations the internal RC circuit will initiate the oscillation through the logic pen and Cymometer function of LA2532 logic analyzer we can observe the frequency and the state of this signal as Figure 4 2 shows The CHO bit within the logic pen has a sigh showing that there are fluctuating waves within this channel and the Cymometer shows that the signal frequency of CHO signal is 3 773MHz which is nearly the half of the internal oscillating frequency of P89LPC813 the RC oscillator is not precise enough and the result showing that the oscillator is running normally Notice that if the logic pen is directly used to measure an oscillation output pin the threshold voltage should be configured details on setting the threshold voltage can be found in Chapter 13 zlgLogic 3 00 2 10 Jogic_demo zla MAIR ERD BG Sira GEO BOW LAW Langage FEN 12Hi D gt Olt eM GRA Aare ET Sli 44 A Figure 4 3 The results on measuring the crystal oscillator 25 Please visit our Website www embedtools com Chapter 4 Quick start tutorial Step 2 Select the Setup gt Bus Signal option with the menu bar to bring up the Bus Signal setup dialogue delete MyBusO bus and rename Mybus1 signal to XTAL as Figure 4 4 shows Sams sit lbt Si AR Fod E Fod A IS idl ializliilioia 8 T 6 5 14 3 2 i liSlialiali2liiligS e T BIS 4043 2 1 l ma PETE eee eee eee az j Ra
170. logue options Bus signal Bus Signal clip click to bring up the Bus Signal setup dialogue Sampling Sampling clip click to bring up the Sampling setup dialogue Trigger Trigger clip click to bring up the trigger setup dialogue OK Confirm the settings and dismiss the setup window Cancel Cancel the setting on trigger conditions Help Bring up the help information Press F1 Tips Multiple trigger method is one of the advantages of LA series logic analyzer We will spread a whole chapter to describe the trigger setup in details 58 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 4 3 Details on trigger setup The ZlgLogic software supports 12 types of conditional trigger methods also supports plug in trigger and advanced triggers all these powerful triggers are designed to control the recording of LA2532 The details on trigger settings are listed as below Trigger immediately Immediate trigger Triggered immediately after the sampling starts T Figure 6 6 Immediate Trigger Signal triggers Rising edge trigger Triggered by a rising edge appeared on the selected signal Usually it s used to detect the change of a single signal such as read write signals Figure 6 7 Rising edge trigger Falling edge trigger Triggered by a falling edge appeared on the selected signal Usually it s used to detect the change of a single signal such as read writ
171. low figure shows the general procedure to run one or more plug ins Open the plug in manager Select one or more plug ins One by one configure the selected plug ins Confirm your settings Run the plug in to decode the acquired data Figure 8 3 Steps to run one or more plug ins 8 6 Notice on using plug ins 1 The decoding of the plug in is based on bus signal names Sometimes user will modify or delete a signal bus names that already used by the plug in Once this happens there will be two situations If the required bus signal names are modified or erased then the plug in will not do the decoding job For example user had set a signal named SCL as the SCL signal within the IC bus analysis setup dialogue to analyze the I C data but later changed its name to CLK Then on the next running the plug in will be halt and no analysis will be performed since it cannot find a signal named SCL within all signal bus If you change the measuring channels within the specified signal or bus but do not change the name the analysis will perform but those no signal channels will get a blank result 2 The ZLGLogic software will save the current setting and results of plug ins automatically on its exit On the next time you launch the software you can see the previous analysis results on your waveform viewer And the plug in settings are also loaded and remain the last states you ve set to 96 Please visit our
172. ltage level to a low voltage level it will trigger the software to start the recording 7 1 4 Edge trigger Similar with the rising or falling edge trigger the difference is that when the selected signal jumps whatever form high to low or form low to high it will trigger the software to record the data 7 1 5 Data value trigger As Figure 7 4 shows in this trigger setup dialogue there s are three setup items the first one specifies the target bus all buses and signals are available for selection The second on specifies the mathematical relationships with six available options which are gt lt lt gt and respectively The last one is an input box for the data value If the data value has a Ox prefix then it will be regard as a hexadecimal number otherwise it will be regarded as a decimal number For example set all parameters as Figure 7 4 shows then start the running when MyBusO equals to OxFFFC the software will be triggered and start the recording The recorded waveform around the trigger point is shown in Figure 7 5 Bus Signal Sampling Trigger Trigger Type Immediate Signal triggers Rising edge Falling deze Edze Bus triggers Tata value Data Quene Synthesis triggers Data value and risin Data value and fallir Time related triggers Hold time Data arrival and del Tata passed and dela Oeeurrence counting Flugin Trigger Advan
173. lysis plug in setup and trigger setup 3 Select the trigger type For a Start Bit trigger just tick its option and press OK directly For a data value trigger you should further specify the data value which can be a decimal value or hexadecimal value with a prefix 0x and the precision on sampling each data bits the default precision is 80 UART Trigger Setup T RxDYTHD DATA Trigger Signal AXD O TxD Trigger Type Start Precision Figure 10 29 UART Bus Analysis plug in trigger setup 4 After all settings are done just click the button to confirm your settings 166 Please visit our Website www embedtools com Chapter 10 Plug in Triggers 5 Result of the trigger setting Figure 10 30 shows the result of an example UART Bus Analysis plug in trigger the trigger type is data value trigger the data value is 4 wa Ea 421 70000ms 421 80000ms 421 IM RxD Figure 10 30 Result of UART Bus Analysis plug in data trigger 10 10 UART Bus Analysis plug in trigger experiment 10 10 1 Goal of the experiment This experiment is the same experiment as described in Chapter 9 10 the goal of this experiment and source codes are listed in Section 9 10 1 and Section 9 10 2 so the first thing you need to do is just follow the steps listed in Section 9 10 3 to setup the SPI Bus Analysis plug in After all the settings are done then it s ready for the plug in trigger setup 10 10 2 Detail desc
174. m the appearance of specific data on the selected bus and these waveforms may not be observable by using only data value trigger due to the buffer size limit for example the bus operations 1 second after an error occurs delay time 3 7 432 1 2 e31436 976541235364 Recorded content of data arrival and delay trigger Arrival of a data value Figure 7 12 Data arrival trigger schema 7 1 11 Data passed and delay trigger If a specific data value appears on the selected bus when it disappears the software will start to delay then triggered on the expiration of this specified delay period For example set the comparing value to 1 then the triggering will start when at the end of signal value 1 as Figure 7 13 shows the recording is delayed for the period of time Delay time 110324363743 21P535697 65412353646 The end of holding Recorded content of of a data value data passed and delay trigger Figure 7 13 Data passed delay trigger 7 1 12 Data occurrence trigger This kind of trigger is similar to data value trigger But within the trigger setup window it has a counter value setting If the counter value is set to 1 then this may become a condition data value trigger When user press the run button when the occurrence of specified data value on the specified bus reached the required value Usually this trigger is used to detect some specific exceptions such as
175. m to 74HC595 through the SPI Bus You can verify them with the decoding results here only shows the MOSI the signal from SPI Host to 74HC595 and the result figure in segments as Figure 9 40 shows 126 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Os 200 002 SOO 00s 00 002 200 Duz l I I l l L l I l l I l I l l I I I I I I I I l l I I I l l I I I l l l I l l I l I I scr a D 3 0 cs IN e me a F S OxB0 most miso Figure a Analysis result Part 1 600 00us 700 00us 800 00us 300 00us 1 00000ms Figure b Analysis result Part 2 1 10000ms 1 20000ms 1 30000ms 1 40000ms 1 500001 D50 e 0x30 Figure c Analysis result Part 3 1 60000ms 1 70000ms 1 60000ms 1 90000ms 2 0000 i DBE 0s Figure d Analysis result Part 4 Figure 9 40 The SPI analysis results on SPI data transmissions From the result of analysis we can see that the analysis to LPC2131 processor SPI interface transmissions is all the same with the expected data to send out within the source codes also the digital LED driven by 74HC595 chip also shows the correct characters one by one in a cycle 127 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 8 SSI Bus Analysis plug in The SSI bus is a data frame format issued by Texas Instruments Corp SSI is a 4 wire synchronous
176. n is corresponding to the MOSI pin of the SPI Bus which is used by master device to initiate queries and data to SD card DataOut is corresponding to the MISO pin of the SPI Bus which is used by SD card devices to initiate response and data to master device The available options for these signals are all signal channel signals defined in the Bus Signal Setup dialogue as Figure 11 22 shows Notice that the source signal selected for the Dataln DataOut should be the sampled signal on corresponding SPI pins Bus Signal Sampling Trigger H Fod B Fod A ame E 15 14 15 1 11 10 9 5 T 6 S j4 3 2 1 O 15 14 13 12 11 10 9 T 6 5 4 O O UOU O O O GO UO GO GO GO GO GO GO GO GO GOGG GG GG G G G G L A GO GO GO G ER G G G G ER G G ER ER ER ER ER ER ER ER ER ER G A A A L OUH PRP er ere ere UUO GOUD UUU GOGO UGU GOGO GOO GOU GO O L WwW WOWWeeed eee eae GOGODOGO UGUO GO GOGO GO GO GO L MyPus0 13 T OOOO UOUUNUGOUUOULGOUUOUDGOUUDGDDGODGO DO b w bw w w e a e a is a e Figure a Signals defined in Bus Signal Setup dialogue CS MOSI i gk Size Bytes SCK MISO iel F nahle i Fable Figure b Signals available in Clock signal and SSEL signal options for SD card setup SPI Bus Setup Clock Signal SPI Mode Datall Setup Figure 11 22 SD card Dataln DataOut Signal setup 4 Set up the block size the default setting is 512bytes The read write operation is performed in block mode For example if the block size is 5
177. nalysis setup and then perform the analysis Check the results and compare them to your experiment records 1 Find out the operation type The first step of the experiment program is to write 8 bytes to CAT24WCO02 which starts from the internal address 0x00 To write a data follows the start bit there should be a slave address read write direction acknowledge bit of the device then data content and stop bit as Figure 9 21 shows 113 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 5 T S BUS ACTIVITY A SLAVE BYTE T MASTER a ADDRESS ADDRESS n DATA n DATA nei DATA meP a i _ 3 F e pe L a SDA LINE p P ao 0 aA At ACI Figure 9 21 Write sequence to CAT24WC02 Comparing to the result of analysis we can found that the write operation started from the internal address 0x0 Figure 9 22 a is the global view of this Figure 9 22 b shows the start bit of the I C communication And Figure 9 22 c shows that the salve address is OxAO and it is a write operation to the CAT24WCO02 chip Then Figure 9 22 d shows that the destination of the first byte is address 0x0 of CAT24WCO02 A 131 08000m 131 10000ms 131 12000m ST sev DATA spa es i 117 2 4200ms del Figure b Start bit sooms 117 29000m lt 117 29500m lt Figure c Destination address and operation type 114 Please visit our W
178. ne is displayed in frame stream You can configure the Data Format option to specify the displaying of frame stream result three options are available Decimal for decimal values Hex for hexadecimal values and ASCII for characters At last in the color setting options you can select different colors for the start bit data bit and parity bit 8 After all settings are done click to confirm the setting and run the analysis 9 The result of analysis Figure 9 63 shows a analysis performed on an example signal in this example the settings are Low for the Idle State 1 for Start Bit Odd for Parity mode 9 44us for Bit Time and 0 5 for Error tolerance 90 00u 230 00us TOO 00us i FADI Manchester Bit ManSignal Figure a Global View SOR BOus S20 OMS SERME Manchester Bit ManSignal Figure b Zoom in view for Start bit P i alain sila ia Manchester Bit ManSignal Figure c Zoom in view for Parity bit Figure 9 63 The result of Manchester coding analysis 145 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 9 12 Modified Miller coding analysis plug in The Modified Miller coding analysis plug in can interpret and decode the acquired data base on the standard Modified Miller coding It allows user to define the bit time signal idle state starter bit parity mode frame length and error tolerance level It will analysis the data based on thes
179. next is the SD card protocol decoding in the SPI mode Every plug in has its setup interface The setup must be done before the usage of plug ins The settings are corresponding to the specific buses or protocols user should set it based on practical situations and specifications or the analysis may not finish with a correct result 94 Please visit our Website www embedtools com Chapter 8 Plug in Analysis 8 4 Adding a new plug in It s quite simple to add a new plug in What you need to do is just copy the new plug in file the one with an extension name plu into the plug directory under the installation directory of the ZLGLogic software as Figure 8 1 shows Then select the Tool Plug in Manager option within the menu bar to bring up the plug in manager dialogue at first the plug in manager will start to search usable plug ins and then list out competent plug ins as Figure 8 2 shows C Program FilesizlgmeuizlzLogiciplug Sol plu CF plu Tel plu Modbus plu z Plug in Manager Name Version CF Card Analyse 2 U1 TIC Bus Analyse 2 03 Manchester Codin 1 01 Modified Miler C 1 01 MODBUS Protocol 2 01 I WIRE Bus Analyse 2 01 SI Card Analyse 2 01 SPI Bus Analyse 2 U1 U E E LJ Descriptors Figure 8 2 The plug in manager dialogue 95 Please visit our Website www embedtools com Chapter 8 Plug in Analysis 8 5 General steps to use a plug in The fol
180. ng dialogue Step 2 Enter the bus signal name you want to search and the location to start the searching usually it will be a marker Step 3 Specify the data values you want to search the searching range can be a set to included excluded equal bigger than gt smaller than lt and not equal just fill in the values to specify it You can select different searching methods depending on what you needed Step 4 Specify the action after searching default action is to places a Find marker on the result Step 5 Click to find another match data based on your settings 68 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 9 2 Dialogue options Bus Signal Name Start from Search Min Max When find Previous Next Exit Help The bus signal name to search The starting position of the search The conditions of the search This option only available for buses it specifies the minimum value of the finding target or the starting value of a range This option only available for buses it specifies the maximum value of the finding target or the ending value of a range Specify the actions after finding out the result such as place marker M1 M2 or a new marker named Find Find the previous point that satisfies the conditions Find the next point that satisfies the conditions Exit the finding and dismiss the dialogue Bring up the help info
181. no new updates the automatic update procedure will complete and this icon will then disappear If there are updates a dialogue will pop up to ask whether to update instantly Update zlgLogic i Update wizard found update s for zlgLogic do you want to wtf Update row Figure 13 16 Confirm updates Select No to ignore the update procedure Yes to bring up the update dialogue as Figure 13 17 shows Update zlgLogic Downloading files pgogeap di Figure 13 17 Automatic update window 199 Please visit our Website www embedtools com Chapter 13 Special Functions When a file is downloaded and updated the dialogue will place a tick in front of it After all updates are complete without problem click Next to launch the main program of the software If the updated file is being used then a dialogue will pop up to remind you to reboot your computer to apply the new updates Update zlgLogic Thank you for using the zlgLogic Update Wizard You have successfully completed the update process To apply all updates you must reboot the s3 Show report Figure 13 18 Update finished and reboot is needed Click the Finish button to close the update dialogue then another dialogue will pop up to ask you whether to reboot you computer as Figure 13 19 shows select OK to reboot you computer after closing the dialogue if you don t want to reboot just c
182. nt 1 3 Application example of logic analyzer 1 3 1 Multi channel measuring Usually an oscilloscope only has two channel inputs so it s incapable for most of the multi channel input measurements such as SPI SSI Microwire and etc but for a logic analyzer since it has over 16 channels it can handle this kind of measurements easily For example the SPI communication has 4 signals CS SCK SI and SO It s a popular interface supported by many types of chips such as EEPROM I O Extension reset chip USB devices and etc also it was widely applied in the electronic devices field Figure 1 4 shows an example signal transmitted on SPI bus recorded by a logic analyzer 3 000uE rept iriri rate aren 20 000us iret are most sex w a ua gp pp pO ee m miso Bn Cf Figure 1 4 SPI measurement results As Figure 1 4 shows by using the logic analyzer the SPI communications and the relationship between data transferring and chip select signal are clear to observe 5 Please visit our Website www embedtools com 7 Be A BR ZS sH ER T 020 22644372 F 020 38601859 1 812 Buo frequency measurements LTD All rights reserved Most of the practical projects or designs may require peripherals such as RAM FLASH and USB interfacing chips to extend the functionalities of the processor Actually for higher performance a microprocessor should run at a higher clock frequency however as the clock frequency
183. nt menus 5 13 1 Waveform file right click drop down menu Right click on the file name on top of the waveform viewer to bring up a drop down menu as Figure 5 14 shows 48 Please visit our Website www embedtools com Chapter 5 Menu descriptions Ctrlts cave Hackup As Expert Expert as CSV file Figure 5 14 File operation drop down menu Close Save Save Backup as Export Export as CSV file Close the file Save the file Save a backup with different name Export the data portion of the file for secondary analysis Export the data portion of the file to CSV format file that can be edited by Microsoft Excel 5 13 2 Bus Signal right click drop down menu Right click on the bus signal name on the left side of the waveform viewer such as MyBus0O a drop down menu will appear as Figure 5 15 shows Manchester Insert Before Insert After Delete Property Figure 5 15 Bus Signal drop down menu Insert Before Insert After Delete Properties Add a bus signal before the selected bus signal Add a bus signal after the selected bus signal Delete the selected bus signal Configure the selected bus signal 49 Please visit our Website www embedtools com Chapter 6 Function Descriptions Chapter 6 Function Descriptions 6 1 Bus Signal Setups The sampling and recording actions of the LA series logic analyzer can only be
184. nts Please visit our Website www embedtools com EMBER TARA W T 020 22644972 Contents a 2 07 upedshed 4escHanbreectronics CO LTD All rights reserved n 143 9 12 Modified Miller Coding analysis PIUQ IN cccecccseecceeeeeeeeeeeeseeeseeeeeeeeseeees 146 9 12 1 Modified Miller Coding Analysis setup OPTIONS 1cccccseeessseeeeeeneeesenes 146 9 12 2 Detailed functions ANA NOTICE ON USAGE 2 c1scccceneeeceeeeeeaeseecanenesenenes 147 Chapter 10 Plug in TriQQerS cccccesseesesseeceeseeseseeeesseeeenseseeneeseees 150 10 1 Plug in trigger OVErVICW ccccc cece eecceecceece seca cece eeseeeseeeeeeseeeseeseeeseeeseeeneeeaeees 150 10 2 General steps to USE a plug in trigger ec eee ceeccceccceeceeeeeeeeeeeeaeeseeeseeeeaees 151 10 3 1 Wire Bus Analysis plug in Trigger cccccccecceeeeeeeeeeeeeeseeeeeeeeeeseeseeeaeees 151 10 3 1 The Trigger setup for 1 Wir BUS cccccccccseeeeeneeenaseeenansessanenesaneneees 151 10 3 2 Detailed CCSCIIDTIONS 1 ccccccccsseeccssesccssescensuscecsuseensesensuesessaneessaneessans 152 10 4 I 7C Bus Analysis Plug in trigQer cccccccsccsecsessereessersersersersesvereessersesserseeserees 153 10 4 1 FC Bus Analysis plug in trigger setup interface oo ceeceeseseeetsetetteees 153 10 4 2 Detailed COSCIIDTIONS cccccccccsseeccsneeccssesccnsuseccsuseessuesessaeeessansessanesssags 153 10 5 IC Plug in trigger Experiment 0 cccececc
185. ocation to place the decoded result before the original signal or after the original signal Data color Specify the color of the result data Data type The actual data format transferring on the bus available options are Number for data value and Char for character Displaying Select a way to display the data It s a data value if the data type is Number then Decimal and Hexadecimal are available in this option It s a character if the data mode is Char then ASCII and Hexadecimal are available in this option Start bit color Select a color for the displaying of the start bit Stop bit color Select a color for the displaying of the stop bit Parity bit color Select a color for the displaying of the parity bit OK Confirm the settings and dismiss the dialogue Cancel Cancel the settings and dismiss the dialogue 9 9 2 Detailed descriptions 1 Select the Tool gt Plug in Manager to bring up the plug in manager dialogue as Figure 9 48 shows Then select the UART BUS analysis within the listed plug ins to bring up the UART setup dialogue as Figure 9 49 shows Plug in Manager Name Version Manchester Codin 1 01 Modified Miler C 1 01 MOUBUS Protocol 2 01 1 WIRE Bus Analysis 2 05 SU Card Analysis 2 0l SFI Bus Analysis 2 01 Sol Bus Analysis Z UART Bus Analysis Mine E E E E E E 5 EI Description The Seral UAAT Bus analysis plug in can decode th
186. omplete analyzer should have the following triggers 7 Please visit our Website www embedtools com a ES eve th oe able 1 2 Common triggers of sH Etg T 020 22644372 F 020 38601859 a logic analyzer Edge trigger State trigger Edge amp state trigger Pulse trigger Counter trigger Sequential trigger Duration trigger When a transition takes place on the selected input signal rising edge following edge or double edge trigger and start the recording When the selected input signal or pattern matches a given state trigger and start the recording When the state of the selected input signal and the transition of the signal satisfy certain conditions trigger and start the recording When pulses with a specified width on a signal last for a specific duration trigger and start the recording When the occurrence counting of a specific data value on a signal reach a specified number trigger and start the recording When the specified data sequence appears on the selected input signal trigger and start the recording When a specific state appear on the selected input signal delay a specified duration of time and then trigger and start recording Generally use this way to trigger at the change of a signal such as read write signals Often use it to trigger at the appearance of a specific data value such as output signal states Often use it to trigger at the appearance of a sp
187. option which specifies the actual signal to be measured all single channel signals are available in this option as Figure 9 53 shows Then the input Result Name and the Location to put the result at last specifies the displaying colors for them you can leave them as default unless you want to change them Eus Signal Sampling Trigger Fod E Fod A 15 14 13 12 11 10 9 8 T 168 15 4 3 12 1 O 15 14 13 12 11 10 9 8 T 6 15 j4 13 Je i ia RD SHUR GRUAGUGR Eee Goes Guus ancaedea Hame re oe TH l Ld La LA La LA LA La La La LA LA LA LA La La LA LA La LA La La La Ld LA LA La La LA La Ldi bd Ld MyBust 16 HGH g 0OUGO0UGOGOOGUOOGOOGO O O O O i k w Hee Be He eee eee ee Figure a Signals defined in Bus Signal Setup dialogue AD Signal TD Signal Enable Source Signal L Result Name l rm ahan Ie 2 m ef Figure b Available Signals in Source Signal option Figure 9 53 Signal Name for the analysis and result settings 135 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 6 Setup the Data type Displaying and colors for signal flags The Data type option specifies the actual data format transferring on the UART bus such as Ox55 as a data value and A as a character There are two data types as said before one is data value the other is character if you select data value the Displaying options are Decimal or Hex Hexadecimal otherwise as Figure 9 54 a shows the
188. option to itself and select record as the action for both then and else Maximum 2 conditions for a step You cannot use the counter and timer together within a single step you need two steps to achieve that For example if you want to set a trigger with a condition that the counter no less than 5 and Timer no less than 6 you should implement it in two steps The first one measures the counter value if condition satisfied proceed to next step else go back to itself then in the next step it will measures the timer value if the conditions are satisfy then starts the recording or else go back to the counter comparison step Figure 7 21 and Figure 7 22 show the flow chart and settings for this example 84 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides Start to record Figure 7 21 Advanced Trigger setup with both counter and timer requirements Bus Sienal Sampling Trigger Trigger Type Immediate Signal triggers hr Rising edge Counter j j5 Falling dege ES Edge No Arctic Don t care cou w Don t care tint And Gota G Bus triggers e a a Tata value No Arctic Don t care cou W Don t care timr 4nd Gato Tata Queue Synthesis triggers Data value and risinj z L Data value and fallir Timmer w
189. ore here because the OE and CE are output simultaneously in ARM structure Figure 1 6 shows the actual timing of the LPC22xx to read in data from a external Flash memory With a logic analyzer it s quite easy to measure and find out whether the time sequencing of the read operation from the microcontroller matches the flash device requirements As we can see the Tcr read cycle duration is 130 ns it s bigger than the minimum time required which is 90ns The Tcyz Tonz is 40ns which also satisfies the flash requirements Since all major requirements are matched the reliability of the flash reading operation should be guaranteed Also form this measurement you may find that the Flash reading operation can be configured to a bit faster to improve the system performance T3 300u3 i 3 40008 T3 Spy Figure 1 6 FLASH read timing sequence of a PHLIPS ARM7 processor The cooperating issue of the timing sequence is especially important when using the bus extension mode to connect with functional devices this makes the logic analyzer even more important on the time sequencing analysis for a bus also makes it a strong assurance to the healthy running of the system 1 3 3 Trigger ability Another great advantage of a logic analyzer is its versatile trigger setups Comparing to oscilloscopes which only have two triggering method the level and edge trigger the logic analyzer has much more options available on triggers Generally a c
190. out the string through serial port DelayNS 10 while 1 return 0 9 10 3 Steps for recording 1 Bus Signal setups Download the source codes to LPC2131 and then connect the probes of LA2532 to the TXD signal pin of the UARTO port of LP2131 In this example we connect Pod A_2 to this pin and named it with TXD as Figure 9 56 shows 139 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Bus Signal Sampling Trigger DoE e E eee 1415 14 13 12 11 1019 ja J7 J J5 4 B j2 1 Jo Jisjiti3ji2 ii tola ja 7 e 5 Ja 3 2 i j DOOOGOROOOBRDOOOOBOOAOODBOOOBDBOODBGOABOOAOGeEOoOo Figure 9 56 Bus Signal setup for UART experiment 2 When Bus Signal setup is completed the next step is the Trigger Setup in this experiment we set the falling edge of TXD as a trigger condition as Figure 9 57 shows een Sannin Trigger Trigger Type gt Immediate Signal triggers Rising edge Railing deg Triggered by a falling edge appeared on the selected signal Edge y Bus triggers Data value Tata Queue Synthesis triggers i ata value and riz Falling edge trigger Data value and fal _ Time related triggers Target Signal Tal Hold time Data arrival and Data passed and de gt Oeeurrence counting Plug in Trigger i UART Bus Analysis n Advance Trigger Figure 9 57 Falling edge trigger on T
191. p the grid color of the waveform viewer window Display horizontal lines on the waveform viewer Display vertical lines on the waveform viewer Confirm the setting and dismiss the dialogue Cancel the setting and dismiss the dialogue 6 10 3 Details on setting the waveform viewer 1 Background color User can define the background color of the waveform viewer window by setting this option 2 Grid color The horizontal lines and the vertical lines form up the grids this option specifies their color 3 Horizontal lines User can tick this option to display horizontal lines only if both this option and the vertical lines option are ticked they will be displayed together 71 Please visit our Website www embedtools com Chapter 6 Function Descriptions 4 Vertical lines User can tick this option to display vertical lines only if both this option and the horizontal lines option are ticked they will be displayed together 6 11 Toolbar customization User can select View gt Toolbar gt Customize form the menu or just right click on the tool bar and select Customize option to customize the toolbar with different shortcut buttons 6 11 1 Quick guide on toolbar customization Step 1 User can just tick or clear the list options to show or hide the related toolbars or features as Figure 6 26 shows Customize Toolbars Commands Options Toolbar v Standard v Logic Fen e Cymometer
192. p when the power is on USB LED This green LED lights up when data is transferring through the USB bus RUN LED This yellow LED lights up when the analyzer is working normally RST Button Press it to reset the logic analyzer 13 Please visit our Website www embedtools com Chapter 2 Hardware introductions 2 3 The hardware connections of the logic analyzer Take out the USB cables accompanied with the logic analyzer connect the B type a Square shape port side of the USB cable to the USB port of the LA2532 and then connect the other side of the USB cable a rectangle shape port to the PC s USB a type slot Keep the power in OFF state during this procedure Figure 2 3 The connections of the hardware 14 Please visit our Website www embedtools com Chapter 2 Hardware introductions 2 4 Data compression algorism LA2532 has an extraordinary data compression algorism that can perform real time compression to the recording data without lowering the performance or reducing the number of sampling channels It really achieves the real time and complete data compression and can be activated simply by selecting the Compress option within the Sampling clip of the Setup window The data compression algorism adopted by LA2532 is highly effective under the maximum compress rate the sampling data depth after compression can reach 2G 2 times greater than the original data depth without compress
193. pe easy to carry With its dynamic hardware upgrade mechanism you can keep your measurement technique up to date anytime And its replaceable analog front end design allows the upgrading of the hardware and enhances your analyzer with stronger functions All these make your investments more valuable and worth the price 1 1 Why using a Logic analyzer The most frequently used device in our electronics development are oscilloscopes but as the microprocessor develops more and more engineers find that the original 2 or 4 channel oscilloscopes no longer satisfy their analysis requirements in the development procedure To meet the requirements the multi channel handler logic analyzer is invented It not only solves the lack of channel problem but also provides a powerful triggering and analysis abilities no doubt it s a good testing and analyzer tool for digital devices developments 2 Please visit our Website www embedtools com P Bit AF BR ZS 4228 T 020 22644372 F 020 38601859 1 2 Logic anatyzerionoseilloscope ail rights reserved 1 2 1 Differences between logic analyzers and oscilloscopes The oscilloscope is a popular tool for electronic engineers the major function of a oscilloscope is to display the analogue characteristics voltage scope and the spurious interference of a signal But a logic analyzer is designed for digital circuits because of the inherence characteristics of the digital circuit the logic analyz
194. r Data Tick this option to clear the useless bits that cannot form up a frame This will increase the convenience on observing the data in frame mode Result Name Specify a name for the analysis result The default name is Bit Location Select the displaying location of the result You can select to place it before the original data or after the original data Color Specify a color for the displaying of the result The default color is yellow Data format Select the data format displayed on the result Three formats are available Decimal Hexadecimal and ASCII character Start bit color The displaying color for the start bit of the analysis result Parity bit color The displaying color for the parity bit of the analysis result OK Confirm the settings and dismiss the dialogue Cancel Cancel the settings and dismiss the dialogue 9 11 2 Detailed descriptions 1 Select the Tool gt Plug in manager option to bring up the plug in manager dialogue Then select the Manchester coding analysis plug in within the option lists as Figure 9 61 shows click Settings button to bring up the Manchester Coding Analysis setup dialogue Plug in EE Hame A I Conversion Analysis CF Card Analysis TIC Bus Analysis Manchester Coding Analysis Modified Miler Coding Analysis MODBUS Protocol Analysis I WIRE Bus Analysis SU Card Analysis Description The Manchester coding analysis plug in can decode the acquired data base on
195. r frequency than LED so it s hard to observe them together for the convenience in observing the LED bus you need to delete the XTAL signal and observe the LED signal alone this action is similar to the deletion of MyBusO Because LA2532 has data compression ability so for low frequency signals the recordable time for 32K is too long So for quicker measurements just click the icon within the tool bar and set the Acquisition option to 2K as Figure 4 10 shows Bus Signal Sampling Trigzer sampling Frequency Threshold setting Frequency ME m v POD A psidey LYCMOS 1 70V v Grale 1Ons POD B Qownside LYCMOS 1 T0 Digital Filter Hone 01 Oe Acquisition 5E w v Compress Trigger Fosition oR A 10 Save to files when sampling repetitively Directory Figure 4 10 Change data acquisition Step 4 Click the run Cae run once within the tool bar to record the LED signal once An example result is shown as Figure 4 11 This time you will see the complete waveform of the flow light operation Since all LED signal are active low due to their common positive connections so as the waveform shows when the signal turns to 0 the LED lights up a logic_demo zla raw ewes ANNS awwe wewe i cowe we re a eee AANA i ewe wewe i 12 500 e ea ey OO eas eee eee i G LED a LED 0 7 LED 1 T LED 2 0 LED 3 E LED 4 0 LED 5 7 LED 6 L vept7i Figure
196. r to select the target signal as Figure 13 24 shows 202 Please visit our Website www embedtools com Chapter 13 Special Functions Add Neasure Ed Choose TT ME Fr Figure 13 24 Select the target signal for duty ratio calculations After clicking to confirm the setting a new automatic measurement is added as Figure 13 25 shows The example measurement in Figure 13 25 calculates the duty ratio of the specified signal between M1 and M2 Auto Heasure Mi M2 300ns 1 M1 M2 3 33MHz Figure 13 25 Duty ratio between M1 and M2 13 7 Tips on using the logic analyzer 1 Quickly setting a bus with continuous channel of signals When setting a bus with many signals a frequently situation is that the measuring channels are continuous such as setting the address bus that using all the lower 16 bit of the signal channels It s a little bit boring while you should click 16 times to tick every channel you wanted here is a better way using this way you just need to click once That is right click the signal channel at the left end A right click will perform two actions first action is to reverse the selection state of the target channel second action is to copy this reversed state to all channels on the right side of it If the continuous channels are not started from the lowest bit on the right side you can first right click on the channel at the left end of the wanted channels to activate it and all ch
197. r to trace and display the important data more efficiently and directly Only the Bus type plug in supports the plug in trigger the protocol type plug ins does no support the plug in triggers UART Bus Analysis plug in C Bus Analysis plug in SPI Bus Analysis plug in SSI Bus Analysis plug in and 1 wire Bus Analysis plug in both support the plug in triggers Here is a guideline on using the plug in triggers 150 Please visit our Website www embedtools com Chapter 10 Plug in Triggers 1 General steps to use a plug in trigger 2 The Trigger setup for 1 Wire Bus 3 IC Bus Analysis Plug in trigger 4 SPI Bus Analysis plug in trigger 5 SSI Bus Analysis plug in trigger 6 UART Bus Analysis plug in trigger 10 2 General steps to use a plug in trigger Complete the settings on Bus Signals Sampling frequency Open the Plug in Manager Select one or multiple analysis plug ins Setup the decoding parameters for each plug in Confirm your settings Open the trigger setup dialogue Select the Plug in trigger option it will list out the selected plug ins Select the corresponding plug in trigger and configure the trigger conditions Confirm the settings Figure 10 1 General steps to use plug in triggers 10 3 1 Wire Bus Analysis plug in Trigger 10 3 1 The Trigger setup for 1 Wire Bus 151 Please visit our Website www embedtools com q w ire Trigger Setup Reset CO write 1 Response Type
198. rd bit clock in 9 44us Byte length Specify the length of a byte The default setting is 8 bits 146 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Parity mode Select the parity mode available options are Odd Even and None Error Tolerance Specify the error tolerance level The decoding is based on the timing of each bit the time period of a bit is not a certain value when considering the errors in practical situations to overcome this the Error tolerance is defined to improve the data recognitions and reduce the errors the calculations are assume that the error tolerance value is 0 2 20 then the acceptable time period for a bit of data will be 140 2 Bit Time within this range the current bit of data will be accepted out of this range it will be abandoned Filter Data Tick this option to cut down the useless bits that cannot form up a frame This will increase the convenience on observing the data in frame mode Name Specify a name for the analysis result The default name is bit Location Select the displaying location of the result You can select to place it before the original data or after the original data Color Specify a color for the displaying of the result The default color is yellow Data format Select the data format displayed on the result Three formats are available Decimal Hexadecimal and ASCII character Start bit color The
199. re 4 24 shows the trigger result of this example p logic_demo zrla LEC Jes elk cate m 7 areal a ac eee ee NO hie fina arr A MOGs E MOGs aera rie are inns P ee ee T i FO a a a S a eh a a a a 1 Figure 4 24 Plug in trigger result In Figure 4 24 we can see that when SPI bus transmits a OxFD value the logic analyzer is triggered and start the recording on data This completely meets the requ irements 37 Please visit our Website www embedtools com Chapter 4 Quick start tutorial The plug in trigger is a characteristic of LA series logic analyzer with this function use can quickly setup a complex trigger based on bus signals it greatly improves the development efficiency 38 Please visit our Website www embedtools com Chapter 5 Menu descriptions Chapter 5 Menu descriptions 5 1 Operation window E zlgLogi ic IIC zla File Record Setup Analyser View Window elbW b ORM SORES j h amp S GB Tool Language Help Lt MODBUS zla Lj IIC zla gii mad i ESERE i a 1 a 1 0 1 0 1 0 1 0 1 0 110 1 0 1 2 18912000s 2 18915000s 2 18916000s sen 1 ofa ofa lofi lofi lofi lofi loji lofi DATACORAO Ready DAT ACOH Write soa Auto Heasure Mi Me 300ns 1 M1 M2 3 33MHz2 BLES Frequency 100 OOMH z Hot Trigger Figure 5 1 Main interface of the application software Menu bar Contains
200. refix Ox as a trigger condition After the setup completes right click the OK button to confirm it 4 The result of the trigger setup As Figure 10 26 shows the trigger data is set to OxF8 and when this data appeared on the SSI Bus the logic analyzer was triggered and record the bus data i T b a r LeuguUms l PfOeooms LE LOYD FOYT OYTO LOLOL OL OL 1 nia oy oy Fo i La or IX ox Figure 10 26 Result of an example for SSI Bus Analysis plug in trigger 10 9 UART Bus Analysis plug in trigger 164 Please visit our Website www embedtools com Chapter 10 Plug in Triggers 10 9 1 UART Bus Analysis plug in trigger setup UART Trigger Setup R DAT D DATA Trigger Signal AD Trigger Type Start Frecisior opz w Figure 10 27 UART Bus Analysis plug in Trigger Trigger signal Select the signal for trigger setup from RXD or TXD They are corresponding to the RXD and TXD signal within the UART Bus Setup plug in setup dialogue Start Bit trigger Select the Start option to set the start bit of the signal as a trigger condition When a start bit appears on the UART Bus the logic analyzer will be triggered to start the recording Data trigger Select the Data option to specify a data value as a trigger condition When the data value specified in the Data box appears on the UART Bus the logic analyzer will be triggered to start the recording The Precision parameter specifies
201. rere an i arene ars FE T 7 FD 1 0 1 0 Figure 4 21 Result of falling edge trigger The mark within the figure shows that the position of trigger as the figure shows the trigger point is at the falling edge of CS which matched with the settings Since the LA series Logic analyzer has the trigger position adjustment ability and the trigger position is using its default setting 10 so the pre trigger parts of the signal is also visual for user This trigger position adjustment ability allows user to observe the data before and after the trigger this function is very useful for debugging If a trigger is set to observe an error the logic analyzer with the trigger position adjustment ability can record the data before and after the trigger so that user can analyze the data and find out why this error occurred and how the system handled it 4 7 Plug in trigger Several types of LA series logic analyzers also have a plug in trigger function Plug in trigger is a trigger base on the result of a plug in bus analyzer algorism The Trigger condition shown in Figure 4 21 is the falling edge of CS signal and we found that the transmitting data for this falling edge is OxFD So a question may come out can we use this OxFD as a trigger condition and only trigger when the SPI bus is transmitting a OxFD and not trigger for other SPI data As Figure 4 22 shows the SPI bus initiate multiple actions on CS CLK and DA
202. riptions Complete the sampling on the UART Bus activities and setup the plug in now you may use the UART Bus Analysis plug in triggers Select the Setup Trigger in the menu bar or click the 2 button in the toolbar to bring up the Trigger Setup dialogue you will find that the UART Bus Analysis option has been added under the Plug in trigger types select it to bring up the plug in setup interface on the right side of the dialogue 1 Setup a trigger on Start bit When a start bit appears on the UART Bus the logic analyzer will be triggered As Figure 10 31 shows only the TXD option are activated within the trigger setup interface the reason for this is that only TXD was enabled within the plug in setup dialogue 167 Please visit our Website www embedtools com Chapter 10 Plug in Triggers UART Trigger Setup T RxD THD DATA Trigger Signal TxD Trigger Type Start Oda Figure 10 31 Setting the UART start bit trigger Figure 10 32 shows the result of this trigger 600m 39 4 3800ms 435 46000 Figure 10 32 The result of the UART start bit trigger 2 Setup a UART data trigger Setting a data value as a trigger of the experiment means that when a specific value appears on the UART Bus the logic analyzer will be triggered to record the data The ASCII code for H is 0x48 so when 0x48 appears the logic analyzer will be triggered User can also configure the precision
203. rm printing Supported system 2 1 2 Feature 2 Bus analyzer UART Bus analysis C Bus analysis SPI Bus analysis SSI Bus analysis 1 Wire Bus analysis A D Conversion analysis Manchester coding analysis Modified Miller Coding analysis 2 1 3 Feature 3 Protocol analyzer Modbus protocol analysis CF Card protocol analysis SD MMC card protocol analysis 2 1 4 Feature 4 Cymometer Measuring range 2 1 5 Feature 5 Logic pen Sampling period 12 Chapter 2 Hardware introductions Supported Supported Supported Windows 2000 Windows XP Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported 10HZ 50MHz ims Please visit our Website www embedtools com Chapter 2 Hardware introductions 2 2 Aspect of the LA2532 logic analyzer LA2532 has a white and beautiful aluminous metal shell the aspect of it is shown as Figure 2 1 Logic Analyzer LA 2532 Figure 2 1 Aspect of the LA2532 logic analyzer The left side of the logic analyzer is shown as Figure 2 2 r E aae kd seis O s53 Use Figure 2 2 The left side of the LA2532 logic analyzer POWER 5v power source inputs Usually the LA2532 supports the USB powered so it may not need this power input normally USB The USB2 0 port for communications with PC and power source POW LED This red LED lights u
204. rmation Press F1 6 9 3 Details on data searching 1 Bus Signal name Click to bring up the drop down menu find your target bus or signal within the Bus Signal name list all default and new buses or signals are listed here 2 Start from Click to bring up the drop down menu and select an option form The beginning of data Start the searching from the beginning of the data The end of data Current position Trigger point M1 M2 Previous Next Start the searching from the end of last data record Start the searching from current viewing area Start the searching from the trigger point Start the searching from M1 marker Start the searching from M2 marker The previous point that satisfied the conditions The next point that satisfied the conditions 69 Please visit our Website www embedtools com Chapter 6 Function Descriptions X Start the searching from a user defined marker 3 Find Click to bring up the drop down menu and select a option When searching a signal you can choose rising edge falling edge high voltage level low voltage level When searching a bus you can choose the included excluded equal to bigger than smaller than and not equal to option also you should specify the minimum value or starting value and the maximum value or ending value to the data range derived from a bus 4 Minimum value Only available to buses the starting value of a range in a
205. s Step 1 click the button within the toolbar or select Setup gt Sampling option within the menu bar to bring up the sampling setup dialogue as Figure 6 4 shows Busi gnal Sampling Trigger _ sampling Frequency Threshold setting eta d Se me i Frequency M me e O POD AGlpside LvoHos Tov Cycle 10ns POD B lownside LYCMOS 1 70 w sa Digital Filter Hone 1 D2 Acquisition 32E v H Compress Trigger Fosition 32k xX 10 Save to files when sampling repetitively lirectory Figure 6 4 Sampling setup Step 2 Set up the sampling frequency The default setting is 100MHz this frequency can satisfy most situations Lower frequency may have longer record time Left click on can confirm the settings and dismiss this dialogue 6 3 2 Dialogue Options Bus Signal The Bus Signal clip single click on it to bring up the Bus Signal setup dialogue Sampling Sampling clip click it to bring up the Sampling setup dialogue Trigger Trigger clip click it to bring up the trigger setup dialogue Frequency Set your sampling frequency here you can fill in a specific value within this item and select the unit of frequency as Hz KHz or MHz 55 Please visit our Website www embedtools com Chapter 6 Function Descriptions Threshold Setting Set the signal threshold voltage You can select a value within 7
206. s The plug in trigger provides a far more efficient way for user to find out specific data based on protocols it greatly reduce the time spent on data analysis based on protocols it also saves engineers and developers from bit by bit analysis to original data and diminishes the difficulties on setting triggers manually based on protocol information 91 Please visit our Website www embedtools com Chapter 8 Plug in Analysis There are two types of plug ins bus analysis plug ins and protocol analysis plug ins Different groups of plug ins are provided in different version of products in the whole series of products Generally available Bus type plug ins are Serial UART Bus Analysis plug in C Bus Analysis plug in SPI Bus Analysis plug in SSI Bus Analysis plug in and 1 Wire Bus analysis plug in available protocol type plug ins are SD MMC card SPI Bus analysis plug in CF card TruelDE mode analysis plug in and Modbus protocol analysis plug in 8 2 The meaning and classification of plug in ZLGLogic software generally displays the measuring data in square waveforms more comprehensive way is to show out the data value that the waveform represents to achieve this you may need to interpret or decode the data to recover the original data value This is exactly what a plug in do for you a plug in can interpret and decode the data based on the standard specification of a protocol and recover the original data then display the results
207. s specifications lt supports four transmission modes of SPI Bus and the varant length SFI data tramesalso allows user to decode the MISO and Figure 9 28 Activate and configure the SPI Bus Analysis Plug in 118 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 2 Select the SPI clock signal and chip select signal Select the clock source signal SCK for SPI bus then select the chip select CS signal SSEL within their options All single channel signals defined in the Bus Signal Setup dialogue are available to select as Figure 9 29 shows 2S E Bus Signal Sampling Trigger Fod E Fod A 15 14 13 12 11 10 3 amp T 6 5 4 3 2 1 JO 15 14 13 12 11 10 9 a T je 5 J4 3 2 1 a G G G G G G G G GG GG GG GG G GGG G G G G G G a G G G a G G G G G G G G GG GGG G G GGG GG GGG G G a G G G GG OHOOBGOGEGEG0GG000 0000000000080 00gGR0L U G G GO G G G G GGG GGG G G GGG er GGG ere G GGG G O O O O OGOOGO OGOOGO O fd kd kd bi bd kd kdi Ei Ei Ed ed Ed ei Ed Ed Ee nal Setup Dialogue Figure a Signals defined in Bus Sig Clock Signal CS Signal SCK Frame Length MOSI MISO P Pl Analysis Ref nc Figure b Available signals in SPI Bus property options Figure 9 29 Select the clock signal and chip select signal 3 Specifying the Bit order SPI mode and frame length The bit order specifies the bit order of each frame transferring on the SPI
208. ser can specify different colors for different tokens Adjustable token colors are Command token default is red data token default is gray data error token default is yellow response token default is blue CRC data default is pink and delay signal default is purple OK Confirm the settings Cancel Discard the settings 11 4 2 Detailed descriptions 1 Select the Tool gt Plug in manager option in the menu bar to bring up the Plug in Manager dialogue then as Figure 11 21 shows select the SD Card analysis option and press Setting button to bring up the SD card protocol analysis setup dialogue as Figure 11 20 shows Plug in Manager Name Version Manchester Codin 1 01 Modified Miler C 1 01 MODBUS Protocol 2 01 1 WLRE Bus Analysis Z 03 SI Card Analysis SFI Bus Analysis O1 SSI Bus Analysis O1 UART Bus Analysis O1 Description The SOMME card SPI mode analysis plug in ts a 5D card protocol analyzer under SPI Bus mode also supports the compatible MMC cards The plug in is based on SPI bus analysis but further extended to the SD card Figure 11 21 Plug in Manager SD Card Analysis plug in 184 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in 2 Setup the SPI Bus conditions including the serial clock chip select signal and SPI mode All this settings are the same with the SPI Bus Analysis plug in setup 3 Dataln DataOut Setup Datal
209. specified marker APPENDIX i Zoom out waveform Ctrl right click Zoom out to full screen mode E Display previous page of waveform Display next page of waveform Find specific data in the current file ba Find next data el Sampling setup ul Show horizontal lines gt Add a new marker A Add a new auto measurement Click this arrow to add or delete shortcut icon buttons 211 Please visit our Website www embedtools com Hotkey CTRL mouse left click CTRL mouse right click CTRL F CTRL N CTRL O CTRL P CTRL S PageDown PageUp Home End Up Down F1 F5 F6 F7 Left Right APPENDIX Appendix Il Hotkey lists Description Within the waveform viewer zoom in the waveform at the cursor position Within the waveform viewer zoom out the waveform at the cursor position Bring up the search dialogue Analyze gt Find Create a new waveform file File gt New Open a waveform file File gt Open Print out the displaying screen of the waveforms File gt Print Save current waveform to file File gt Save Scroll to next page of the waveform Scroll back to previous page of the waveform Scroll to the beginning of the waveforms Scroll to the end of the waveform Scroll upwards scroll downwards Bring up the help system Run for once Run repetitive Stop running zoom out the waveform Analyze gt
210. st one is Port2 and Port1 outputs a 16 bit address the second one is PSEN should be set to low level For the convenient on observations we combine port2 and port1 to a single bus named ADDR then describe these two conditions within advanced trigger setup dialogue as Figure 7 28 shows 88 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides Bus Sienal Sampling Trigger Trigger Type Immediate Signal triggers i i Rising edge Bus triggers ADDR gt Ox3SFFF Falling dege Smee z i Edge No Acti Ww Don t care cou Don t care timr 4 And Goto Step 1 Bus triggers te Data value Mo Acti Dont care cou Dorrt care tin And Goto Sten o leta Backs EREE i PAD E __ P Synthesis triggers Data value and rising E i l a Data value and fallir Signal w PSEN w goes low ae f Time related triggers ay Hold time No Actic Dont care cou Dont care tine 4nd Goto Sten 2 Data passed and delay No Actic w Don t care cou Don t care time 4nd Goto Oeecurrence counting a H Puei e eee Advance Trigger C4 ma kiram t Figure 7 28 Advanced trigger setup for fetch error detecting The settings for this example are ADDR gt 0x3FFF and PSEN has a falling edge So the logic analyzer can be triggered to start the recording when program run away error occurs Figure 7 29 shows a practical result
211. t In this situation there will be no decoded data on the result signal 9 7 Example on using SPI Bus Analysis plug in 9 7 1 Goal of the experiment This experiment uses the SPI interface of the PHILIPS LPC2131 as a host to send data to 74HC595 chip Then data value is display by 7 Segment digital LEDs At the same time the SPI Host will receive back the shifting output by 74HC595 which will be the previous data send to the shifter chip The schematic for this experiment is shown as Figure 9 35 VDD3 3 Philips LPC21351 Figure 9 35 Use the SPI interface to control the 74HC595 chip 9 7 2 Program list The source code of this experiment is show in Program List 9 2 122 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Program List 9 2 SPI application experiment source code define HC595_CS 1 lt lt 29 The P0 29 port is the chip select signal for 74HC595 AP ARE E a E Ea Eo E Eo Eo E E E Bea ga aS aaa A aaa aa a oa a casa eae a astra aceasta aan a acoso aa as BAE Ea haters X Name DelayNS Q Function Long period delay Imported parameter dly the time factor of the delay bigger value for longer delay KK KKK K KKK K K K K K K K KK K K K K K K K K K K KK K K KK OK K K K K K K OK K K K K K K K K K K K K KK K K KKK K KK K K K OK K K K K OK K OK K OK K K K K OK K K K K K K OK K XK void DelayNS uint32 dly uint32 1 for dly gt 0 dly for i 0 1 lt 500 i
212. t the expiration of the specified delay period started from the changed end of lasting of the specified value on the selected bus The time unit is one sampling period For example if the sampling frequency is 100MHz then the time unit is 10ns Figure 6 16 Data passed and delay trigger Occurrence counting trigger Occurrence counting trigger Trigger by the occurrence counting of a specified value on the selected bus pattern If the inputted value has a prefix Ox it will be treated as a hexadecimal number otherwise it will be treated as a decimal number Usually it s used to find out specific error conditions such as program error outputs T repees Figure 6 17 Occurrence counting trigger Plug in triggers C Bus analysis Trigger 1 Wire Bus Analysis Trigger SPI Bus Analysis Trigger SSI Bus Analysis Trigger Serial UART Bus Analysis Trigger Advanced Triggers Advance Triggers This trigger mode is combined by a sequence of steps each step has three parts conditions operations to perform when conditions are satisfied and the operations to perform when conditions are not satisfied 62 Please visit our Website www embedtools com Chapter 6 Function Descriptions 6 5 Run and Stop When the sampling frequency threshold voltage trigger position and other settings are all completed you can start the running of your logic analyzer to record and observe the signal waveforms
213. t to at least 100 KHz By doing so it can remove the error interferences on hardware and achieve a better result 9 10 UART Bus analysis example 9 10 1 Goal of the experiment In this experiment we use the UARTO port of PHLIPS LPC2131 to send out a string Hello World the LA series Logic analyzer will sample the data sent out by UARTO and perform the analysis based on its UART Bus analysis plug in and recover the Hello world on its waveform viewer as results 9 10 2 Program lists The source codes for this experiment are listed in Program List 9 3 Program List 9 3 The source code of the experiment define UART_BPS 115200 Serial port communication Baud rate BAe hs Ae hs she he AG as he Ea Eo ae chs ele he hs hs he rhs he eh rhs che Ea E chs Eo he chs edict cbs ots le ois vhs oh els ote obs ote che shoe che els ote obs E ote otc Ea cht rhs otc vis che cts ott vis chs bs ote Ea Ea te ete ris ott is EE a te at Name DelayNS Q Function Long software delays Imported parameter dly the factor of delay bigger value for longer delays aaa a Ea EE Ea he Eia a carte 0 chs Ea E Eia aa Ea E eh chs Ea Eaei a eects ch chs eh he Ea a eh tech a Eai a Ea EE Gaa aa aea a de siete a E te che chet fetes ety fs Gai aa aa oa che cs void DelayNS uint32 dly 137 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins uint32 i for dly gt 0 dly for i 0 i lt 50000 i EE E E
214. ta help user to locate their concerning waveforms and improve the efficiency on development and learning Using a logic analyzer and with the assistance of trigger user can just set the error state as a condition then the analyzer will start and record the error whenever it happens even in a massive of data this function greatly improve the efficiency on verifications and debugging LA series Logic analyzer provides following powerful triggers m 12 fast trigger types m Visual triggers m Plug in triggers m Advanced triggers All these triggers make it become a powerful tool on handling difficult situations and finding even the slightest errors on massive data flows 7 1 12 types of fast triggers 7 1 1 Trigger Immediately This trigger is set to start the recording once user presses the run button to start the recording When the data buffer is full it will stop recording and display the recorded data on screen Usually this trigger is used to observe the bus status Figure 7 1 shows how this trigger works the red T within it indicates the trigger point and the square box area indicates the record buffer zone The recording starts from the beginning and ends at the place where the buffer fills then the buffer data will be displayed 14 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides 234567890144345 Figure 7 1 Immediate trigger schema 7 1 2 Rising edge trigger As Figure 7 2 shows
215. tents Please visit our Website www embedtools com CMBR TARA W T 020 22644972 Contents a 8 Airea TRAN uT YAN Electronics CO LTD All rights reserved anann 95 8 5 General steps tO USE a plug in ccccecce secs eece ees eeeeeteeeteeeeeeeeeteeesseeaeeeseteeeeas 96 8 6 Notice ON USING PIUG INS cccccecceecceecceeceeeseeecaeecseecuecasecueesaeeeueseeesaesseeseeesas 96 Chapter 9 BUS analysis plug ins cscscceceseeseeseeseeneesenseesenseeseneessonnees 98 9 1 Overview ON BUS ANALYSIS ccccceeccceccceeceeeeeee cece eeceeceseeseeesneeseeeseeeesueeseeeseaes 98 9 2 The 1 Wire bus analysis PIUQ IN cccccccceecceecceeeeeeeeeeceeeseeeseeeeeeseeeseeeeeeseeees 98 9 2 1 1 Wire BUS Analysis setup OPTIONS ccccccceeecseeenneeensusesausesssesausessneesens 99 9 2 2 Detailed OCSCH ON OMS a rrncectccedadntnnesenrest dan dcecctercssdeceed anscaceescotaseeanteus te 99 9 3 A D Conversion Analysis plug in cccccccceecceeeeceeeeeeeeae cece eeseeesseeeeeeteneeaaeess 101 9 3 1 A D Conversion setup OPTIONS ccsccccccsseeecccsesecesauesecesseeeessaeeeeessaeeses 101 9 3 2 Detailed ACSCIIDTIONS ccccccccssececcsneeccsneeeesneseesaeeessuseessnsessaneessanesesanenes 102 CRS eee NOCO ON USAG Renee mn ee ene ne ee er ener ree een ea ene emer ee ne eee 104 9 4 I7C Bus analysis plug in ccceccecceccecsesceccceceeececceeceseerersarsarsrsesersnsserseesersessens 105 9 4 1 FC Bus
216. ter 6 Function Descriptions ssssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnn 50 6 1 EBUS SIGN Al GUS iirin penr eea 50 6 1 1 Quick guide on bus signal setup ccccccceeeeeeeccceeecesseeeesececesssesaeeeeeecesenseas 50 6 1 2 Dialogue 4 0 0 4 en nn eee a ee een eee eee eee eee ee 51 6 1 3 Details ON setting a Bus Signal scccccseeccceeeecsensecsnsessasessaenessesessaeneess 52 6 2 Setup BUS Signal PrOpertieS ccceccseccseeeeeeteeceeeeeeeeeeeseeeseeeeseessetseeeseeeeeteeeees 52 6 2 1 Quick guide ON bus signal properties setup cccccccceeeecceeeceneeseceeeseeessees 53 6 2 2 Dialogue ON ONG cranes secre eee ence 33 6 2 3 Details on sampling Setups ccsccccsecccceecsesecceeecneesecsusensusessusenansenusens 54 6 3 Samping SetUP osisssa EEEE ae lidedeadihinedewesloedimennmecends 54 6 3 1 Quick guide on sampling Setups ccccccseeeeeccccececnsseeessececeesssaseeeeecesseseas 55 6 3 2 Dialogue ODPHONS gear em ena ee ee ree et eee re ere ee ee 55 6 3 3 Details ON sampling Setups cccceccsecccseeecsesccceeecneusecausensusessusensnsssansess 56 oA WIG TSG WU es ecore cette secs eoncecte dens E E E 57 6 4 1 Quick guides on trigger S6lUp seernes nnn ede 57 BAZ Dialogue Options asesxcecicscnceeaeetaten sees niesicettannscbenserbei wade anrea ra SEARE EE n 58 6 4 3 Details on trigger setup ccccsscccnseccnesccausensusccceccausessesecceussuensesausenausens 59 6 9 RUN aNd SIOD sisira EE E aa
217. the actual signal states 4 Setup the Start Bit or First Bit for the signal data If the coding of user data contains a Start Bit of transmission then the first bit of data will consider as a separate bit Start Bit from data value and the first bit option will not appear if there are no Start Bit exist within the target signal user should specify a first bit either O or 1 as the beginning of the decoding The First Bit is counted into the data value these options are necessary for the precision on aligning of frames 5 Setup the error tolerance Setup the Error Tolerance The decoding sequence is based on the synchronous clock signal of the Manchester coding But the time period for each bit in the actual signal is not a certain value since there are errors The error tolerance value provides a range limit for data recognitions Assume the error range is 0 2 then if the duration of a bit does not exceed the limit which is range from 0 8 Bit Time to 1 2 Bit Time it will be accepted as a legal bit otherwise it will be abandoned 6 Other parameters The setting of other parameters such as bit time frame length parity mode and data filter are quite simple user can just set it based on the actual situations and requirements 144 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins 7 Setting for analysis results There are two result signals one is displayed in bit stream and the other o
218. the device is deactivated 41 Please visit our Website www embedtools com Chapter 5 Menu descriptions Run repetitive Activate the device once the triggering conditions are satisfied the recording starts The recording will pause when the storage for the data is full then it will continue when the triggering conditions are satisfied again These actions will repeat till the Stop option within the sampling menu is selected Stop Stop the recording and deactivate the device and then display the newly sampled data on the screen 5 4 Setup menu Setup Analyser View Z Bus Signal Sampling 3 Trigger Figure 5 4 The Setup menu Bus Signal Setting the Buses and Signals User may divide the signals into groups and then give each group a name The group names of the bus will be displayed in waveform views and trigger setups options if you are not setting this option PodAO PodA15 will be grouped into a default Bus named MyBus0O PodAO also belongs to a default Signal named MyBus1 Sampling Setting the sampling rate threshold voltage digital filtering and trigger positions Trigger Setting the triggering conditions this may reduce the sampling on useless data and it supports up to 12 types of triggering conditions such as plug in triggering high level triggering and etc Tips LA2532 can combined multiple signal channel into one Bus and any signal channel can also be defin
219. the precision on sampling for each bit when recording the data ranged from 70 to 95 OK Confirm your settings Cancel Cancel your settings 10 9 2 Detailed descriptions 1 2 Complete the UART Bus Analysis plug in setup by following the steps described in Section 9 9 Select the Setup gt Trigger option in the menu bar to bring up the Trigger Setup dialogue You will fin that the UART Bus Analysis option has been added under the plug in option as Figure 10 28 a shows Since the TXD signal is disabled in the plug in setup dialogue as Figure 10 28 b shows the TXD option is deactivated in the trigger setup interface 165 Please visit our Website www embedtools com Chapter 10 Plug in Triggers eee Sampling Trigger Immediate USAT Trigger Setup E Signal triggers T Rising edge Falling dege Edze RxD TED E Bus triggers DATA Data value Data Queue Synthesis triggers Tata value and ris Data value and fal E Time related triggers Hold time Tata arrival and Tata passed and de Qeeurrence counting Plug in Trigger UART Bus Analysis Advance Trigger Trigger Signal lt 7 a ted signal in plug in trigger setup Figure a Acti Seral UART Communication Setup AsO Signal Source Signal Enab _ Enable Result Hame Result Hame our Figure b Enabled signal in decode setup dialogue TD Signal Source Signal Figure 10 28 UART Bus Ana
220. the settings are done then it s ready for the plug in trigger setup 10 7 2 Steps for trigger setup 1 Select the Setup gt Trigger option within the menu bar or click the Bj button on the tool bar to bring up the trigger setup dialogue Then select the Plug in Trigger gt SPI Bus Analysis option within the trigger lists Figure 10 20 shows that there are two options on trigger signals MOSI and MISO they are activated based on the settings in the SPI Bus Analysis plug in setup dialogue Pus Signal Sampling Trigger Trigger Type Immediate f Sigmal triggers Rising edge Falling dege Edze Bus triggers Tata value Data Queue E Synthesis triggers Tata value and ris Tata value and fal Time related triggers Hold time Tata arrival and Tata passed and de Qeeurrence counting scx mostmiso SPI Trigger Setup ssev DATA Trigger Signal mMiso baa Figure 10 20 Select the SPI Bus Analysis plug in trigger 2 Set a data value trigger for SPI on 0x99 The SPI sends out the data mainly through the MOSI signal So select the MOSI within the trigger signal option fill in a 0x99 within the data value box Ox prefix means that the data is a hexadecimal number 161 Please visit our Website www embedtools com Chapter 10 Plug in Triggers SFI Trigger Setup T scr sseL mosi miso DATA Trigger Signal mos Omisa Data Figure 1
221. the signal Two options high voltage level or low voltage level This option is used to determine the initial state of the transmission Start bit Specify start bit value of the signal Available options are 1 0 and none None is used for a signal without start bit you need to further specify the first bit of the signal to 1 or O and this value is used for the aligning of bytes First bit this option appears when user selected None in Start bit options it s used for the aligning of bytes Bit Time User can specify the time period for each bit in us the default setting is the standard bit clock in 9 44us Byte length Specify the length of a byte The default setting is 8 bits Parity mode Select the parity mode the available options are Odd Even and None Error Tolerance Specify the error tolerance level The decoding is based on the timing of each bit the time period of a bit is not a certain value when considering the errors in practical situations to overcome this the Error tolerance is defined to improve the data recognitions and reduce the error chances the calculations are assume that the error tolerance value is 0 2 20 then the acceptable time period for a bit of data will be 140 2 Bit Time within this range the current bit of data will be accepted out of this range it will be abandoned 142 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Filte
222. to Address gt Ox3fff and PSEN has a falling edge then when the processor is fetching an instruction out of the 0x0000 0x3fff limit the logic analyzer will be triggered to record the error states 10 Please visit our Website www embedtools com Chapter 2 Hardware introductions Chapter 2 Hardware introductions 2 1 Features of LA2532 Logic analyzer 2 1 1 Feature 1 Logic analyzer Maximum sample rate 200MHz Real time waveform viewer Supported Maximum storage depth 1M Sampling points Channel Data compression abilities Supported Input impedance IMQ Threshold voltage 4 4V two channel adjustable Input signal voltage range 5V 5V USB protocol support USB 2 0 High speed Full speed Free Trigger position configuration Supported e Fast trigger configuration Supports 12 types of fast triggers Immediately trigger positive edge trigger negative edge trigger edge trigger specific value trigger data queue trigger specific value and positive edge trigger specific value and negative edge trigger data width trigger arrival delay trigger pass over delay trigger and data occurrence counting trigger respectively Visual triggering Supported Plug in triggering Supported User defined advance triggering Supported Automatic upgrades Supported 17 Please visit our Website www embedtools com Multilanguage support Multi documentation structure Wavefo
223. tools com Chapter 7 Detailed trigger guides Every step can have two constrain conditions the relationship between these two conditions can be set to AND or OR You can click the button to bring up the second condition If you don t need the second condition click the L button to close it Figure 7 20 shows a two condition step after clicking the button Bus Signal Sampling Trigger Trigger Type Bus triggers Synthesis triggers Inmedi ate Step 0 Signal triggers rm uv Rising edge to a Sigal Mi High Falling dege q i aai Edze ANC Counter i Then a pal T l And Goto Data value Mo Actie Countert 1 Clear timmer Step 1 Did Queni eens Ra enna pr Elze Mo Actie Do t care co Don t care tim 4 And Goto StepO Data value and risin Data value and fallir Time related triggers Hold time Data arrival and del Data passed and dela Qeeurrence counting Fluz in Trigger Advance Trigger Figure 7 20 Advanced Trigger Setup with two conditions There are 5 available options for trigger condition they are Bus trigger Signal Counter Timer and Anytime 7 4 2 Notice on usage 1 2 No more than 255 steps If more than one step are set and if you want to continue the recording without a break you can set your last step to a self looping step for example set the next step
224. transmitted in a continuous stream Coding System Eight bit binary hexadecimal 0 9 A F Two hexadecimal characters contained in each eight bit field of the message Bits per Byte 1 start bit 8 data bits least significant bit sent first 1 bit for even odd parity no bit for no parity 1 stop bit if parity is used 2 bits if no parity Error Check Field Cyclical Redundancy Check CRC ASCII Mode When controllers are setup to communicate on a Modbus network using ASCII American Standard Code for Information Interchange mode each eight bit byte in a message is sent as two ASCII characters The main advantage of this mode is that it allows time intervals of up to one second to occur between characters without causing an error Coding System Hexadecimal ASCII characters 0 9 A F One hexadecimal character contained in each ASCII character of the message Bits per Byte 1 start bit 7 data bits least significant bit sent first 1 bit for even odd parity no bit for no parity 1 stop bit if parity is used 2 bits if no parity Error Check Field Longitudinal Redundancy Check LRC Physical layer Enable the displaying of the decoding on physical layer Data link layer Enable the displaying of the decoding on Data link layer Modbus application layer Enable the displaying of the decoding on Modbus application layer Color setup Select the displaying color for each field under the data
225. ts Can be select to place the result before or after the original signal Color Select the displaying color for the results The default settings are green for address bus result and yellow for data bus result Register value Show register value on the result Read Write Register Show read write commands to the registers on the result Timing diagram Show the timing of the address bus on the result 170 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in ATA Command Show ATA commands on the result Data value Show data values on the result Color setup The default color for ATA commands is red for ATA commands to registers is gray for read write operations to sectors is light blue and for timing sequence is pink OK Confirm the settings Cancel Cancel the settings 11 2 2 Detailed descriptions 1 Select the Tool gt Plug in Manager option in the menu bar to bring up the plug in manager Then select the CF card analysis option within the list and click to bring up the CF Card decoding setup dialogue as Figure 11 2 shows Plug in Manager ASD Conversion Analysis CF Card Analysis TIC Bus Analysis Manchester Coding Analysis Modified Miler Coding Analysis MODBUS Protocol Analysis I WIRE Bus Analysis SU Card Analysis Descnpton CF card True IDE mode analysis plug in can perform detailed timing analysis to the CF card data under the True IDE mode finding out the read
226. u settings 5 Figure 10 8 shows the different result for different settings 154 Please visit our Website www embedtools com Chapter 10 Plug in Triggers b d 422 62500ms 422 62600ms se DATA spa Figure a Trigger for start bit 2i B 20000mes i 8 20200ms 4 sev DATA spa Figure b Trigger for stop bit 350 44000ms 350 44500ms 3 seL DATA soa Figure c Trigger for address OxA0 Read operation with ACK response Figure 10 8 Results on different settings of I C Bus Analysis plug in trigger 10 5 C Plug in trigger experiment 10 5 1 Goal of the experiment This experiment is the same experiment as described in Chapter 9 5 the goal of this experiment and source codes are listed in Section 9 5 1 and Section 9 5 2 so the first thing you need to do is just follow the steps listed in Section 9 5 3 to setup the I C Bus Analysis plug in After all the settings are done then it s ready for the plug in trigger setup 155 Please visit our Website www embedtools com Chapter 10 Plug in Triggers 10 5 2 Steps for trigger setup Select the Setup gt Trigger option within the menu bar or click the Bj button on the toolbar to bring up the trigger setup dialogue Then select the Plug in Trigger gt IIC Bus Analysis option within the trigger lists 1 Set the trigger condition to trigger on the Start Bit of the I C Bus data
227. ut bus 3 Select the Enable condition of the analysis Always means that the analysis is always enable Since the enable signal states such as high voltage level low voltage level rising edge or falling edge is used as an enable condition so it should be a single channel signal so all signal channel signals that defined within the Bus Signal Setup dialogue are available as options within this drop down menu as Figure 9 8 shows E Pod 5 Fod A 15 14 13 12 11 10 9 8 7 6 5 j4 3 2 1 O 15 14 13 12 11 10 9 S T 6 5 4 3 2 1 aor 4 PBOOOOOGBOGOGOGBRBBBRBRBRR7R000000000HRkEE ort BOOOORDRPARAROBOBOOOODAAAAOOOOReeseooAae 1 aoononnononaonnaonnannannnnnonnnnmannnna0p l C3 C3 CI C3 C3 C3 C3 CA C3 C3 C3 C3 C3 C3 C3 C3 C3 C3 CI C3 Ci Cl Ed CI Ci C Ci Ci Cl Ci C C Figure a Signals defined in Bus Trigger Setup Dialogue Base Setup 4 D Output cs Figure b Signals available for Enable signal Figure 9 8 Select the Enable Signal for the A D Conversion analysis 103 Please visit our Website www embedtools com Chapter 9 Bus analysis plug ins Figure 9 9 shows that the available Enable condition after selecting a signal Base Setup A D Dutput ADOUTT En fH Loversion Result Setup Result Name Analog Location After ADOUT w Color Ti Figure 9 9 The Enable conditions 4 Leave other settings to its default value Cli
228. ved 214 Please visit our Website www embedtools com
229. visors to get it Click JOK to confirm your proxy settings then back to the update dialogue click Next to proceed to next step Then next dialogue will pop up as Figure 13 23 shows The rest of the procedures are just the same with the abovementioned automatic updates no more introducing here Notes After updating the software please press the reset button to reset the logic analyzer hardware 13 6 Automatic measurements The zlgLogic software provides automatic measurement functions on frequently used calculations between two markers such as time interval frequency duty ratio and transitions Time interval The time interval between two markers Frequency The reciprocal of the time interval Duty ratio The duty ratio of the signal between two markers Transitions Counting the number of transitions between two markers Select the Analyzer gt New measurement option to bring up the auto measurement setup dialogue as Figure 13 23 shows Add Measure Choose i Figure 13 23 Add a new automatic measurements Select two markers within the Choose marker option which specifies a range of signal in Figure 13 23 the T marker represents the trigger point and M1 is marker 1 Then specify a calculation for this measurement four options are available they are time interval frequency duty ratio and transition counter For duty ratio and transition counter options there is an additional option asking use
230. with reset sequence with ACK signal trigger condition 152 Please visit our Website www embedtools com Chapter 10 Plug in Triggers a aan ai i aes i Data 1 wire Figure 10 4 1 Wire Bus Analysis plug in trigger example 10 4 I C Bus Analysis Plug in trigger 10 4 1 I C Bus Analysis plug in trigger setup interface IIC Trigger Setup T seL sca DATA Start Conditi tse bea wH Response Stop Condition Specified Address Figure 10 5 I C Bus Analysis plug in trigger setup interface Start Condition Select this to set the start bit as a trigger condition The logic analyzer will start the recording once it encounters a start bit Stop Condition Select this to set the start bit as a trigger condition The logic analyzer will start the recording once it encounters a stop bit Specified Address When this is selected you can further specify the address data direction read write and response ACK NACK as trigger conditions OK Confirm user settings Cancel Cancel the settings 10 4 2 Detailed descriptions 1 Start bit trigger Select this to set the start bit as a trigger condition the logic analyzer will start the recording once it encounters a start bit 2 Select the Setup gt Trigger option from the menu bar to bring up the trigger 153 Please visit our Website www embedtools com Chapter 10 Plug in Triggers setup dialogue you will
231. write operations to the device register the 47 4 commands and their Figure 11 2 Plug in manager CF Card Analysis plug in 2 Set up the read write control signals The read write control signals are required when distinguishing the read write operations performed to registers All single channel signals are available for selection in these two options as Figure 11 3 shows 171 Please visit our Website www embedtools com Chapter 11 Protocol Analysis plug in Bus Si gal aoaaa Trigger B Pod E Pod A 15 14 13 12 11 10 9 8 T 6 5 j4 3 J2 1 j 15 14 13 12 11 10 9 Js T e 5 j4 3 J2 1 j BTA OOOOOROOOORDOOORDOORReR eee eee ee eee eB ADDR 5 DOBOBOAOABABAAOOAOHHHEeTEHEOOBAAABRAAODOOBABAAALBG IORD 1 O OOOO O OOOO uHuEGO OOCOCOO OCO OOOCOO OGOO0O COO gGO0Oog0g0g0OgO Wk 1 oo0000000 OoOH00000000000000o0o00o00n ee Figure a Signals defined in Bus Signal setup CF Card Decode Setup Hame Basic Setup IOR ah IOWA Data Bus Seth pill easly IORD Signal IRD v IOWR Signal IOWA v WORD Figure b Signals avaiable in ORD IOWR signal option Figure 11 3 The CF card Read Write control signal setup 3 Set up the address bus and data bus Under the CF Card TruelDE mode the width of the address bus is 5 bits which means that it will have 5 address wires the width of the data bus is 16 bits which means that it will have 16 data wires So both options are targeted for multi
232. www embedtools com Chapter 7 Detailed trigger guides Es ii ii Par E appr E Po P2 i Jeo Find Hext Find Previous we cave To BMP Figure 7 16 Set a visual trigger Once the visual trigger is set the next step is to start the sampling just click the Run button to start the recording Figure 7 17 shows the trigger result of this example ave m appr Po P2 RE wr Figure 7 17 Trigger result of the visual trigger example 7 3 Plug in trigger setup The plug in trigger is a special trigger based on plug ins it enables user to analyze data based on protocols and buses specifications and then set triggers for those bus or protocol related flags or signals 7 4 Advanced trigger setup If the abovementioned triggers did not satisfy your requirements you can try the advanced triggers Click the Advanced trigger within the trigger type list 82 Please visit our Website www embedtools com Chapter 7 Detailed trigger guides Bus Sienel Sampling Trigger Trigger Type Tied ake Step D Me e cigs f E Bus triggers mysu ov f o E uu Then occ Dont care cou i Dont care time w And Goto stepo w Eo a No Acti Don t care cou i Dont care timr v And Goto stepo w ata Queue Synthesis triggers i Data value and risinj Data value and fallir a Time related triggers Hold time i Data arrival and del gt

Download Pdf Manuals

image

Related Search

Related Contents

Transcend 2GB DDR2-800/PC6400 200-pin SO-DIMM 5-5-5 - 128Mx8 JetRam  Samsung SGH-X450 Manual de Usuario  Speck CorePack Fly 15"  M3A Operators manual  Manual do Usuário ELETROCARDIÓGRAFO  Nokia 2180 User's Manual    Groene lijn  La notion de besoin terminologique et la naissance de lexiques  

Copyright © All rights reserved.
Failed to retrieve file