Upload
vlsipranati
View
215
Download
0
Embed Size (px)
Citation preview
7/28/2019 Chap 14Lesson03EmsysNewLabTools
1/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
1
Testing, Simulation and DebuggingTesting, Simulation and Debugging
Techniques and Tools :Techniques and Tools :
Lesson-3
Laboratory Tools
7/28/2019 Chap 14Lesson03EmsysNewLabTools
2/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
2
1. Hardware Diagnostic Laboratory Tools1. Hardware Diagnostic Laboratory Tools
7/28/2019 Chap 14Lesson03EmsysNewLabTools
3/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
3
Hardware Diagnostic Laboratory ToolsHardware Diagnostic Laboratory Tools
Volt-Ohm meteruseful for checking the
power supply voltage at source andvoltage levels at chips power input pins,
and port pins initial at start and final
voltage levels after the software run,
checking broken connections, improper
ground connections, and burnout
resistances and diodes.
7/28/2019 Chap 14Lesson03EmsysNewLabTools
4/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
4
Hardware Diagnostic Laboratory ToolsHardware Diagnostic Laboratory Tools
LED testuseful for testing port
outputs and when using portconditions 1 or 0 for debugging a
particular set of conditions
7/28/2019 Chap 14Lesson03EmsysNewLabTools
5/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
5
Hardware Diagnostic Laboratory ToolsHardware Diagnostic Laboratory Tools
Logic Probe
Oscilloscope
Logic Analyser
Bit Rate meter
ICE
System Monitor Codes
7/28/2019 Chap 14Lesson03EmsysNewLabTools
6/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
6
2.2.
Use of Logic ProbeUse of Logic Probe
7/28/2019 Chap 14Lesson03EmsysNewLabTools
7/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
7
Use of Logic ProbeUse of Logic Probe
Simplest hardware test device.
Handheld pen like device with LEDs Glows green for 1 and red for 0
Important tool when studying the long
port-delay effects (>1s). Delay program tests the presence of
system clock ticks
7/28/2019 Chap 14Lesson03EmsysNewLabTools
8/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
8
3.3.Use of OscilloscopeUse of Oscilloscope
7/28/2019 Chap 14Lesson03EmsysNewLabTools
9/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
9
Uses of OscilloscopeUses of Oscilloscope
Screen to display two signal voltagesas a function of time
Displays analog as well as digitalsignals as a function of time
Noise detection tool
Mal-function detection of a suddentransitions between '0' and '1' states
during a period.
7/28/2019 Chap 14Lesson03EmsysNewLabTools
10/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
10
4.4.Use of Logic AnalyzerUse of Logic Analyzer
7/28/2019 Chap 14Lesson03EmsysNewLabTools
11/22
2008 Chapter-14L03: "Embedded Systems - Architecture,Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
11
Uses of Logic AnalyserUses of Logic Analyser A powerful hardware tool for
checking multiple lines carrying
address, data and control bits, IObuses, ports, peripherals and clock.
Recognizes only discrete voltageconditions, '1' and '0'.
7/28/2019 Chap 14Lesson03EmsysNewLabTools
12/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
12
Logic Analyser Logic Analyser Collects, stores and tracks multiple
signals and bus transactions
simultaneously and successively.
Reads multiple input lines (24 or 48) and
later displays, using this tool, eachtransaction on each of these on computer
monitor (screen) observed
7/28/2019 Chap 14Lesson03EmsysNewLabTools
13/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
13
Logic Analyser Logic Analyser Also shows states on the horizontal
axis instead of time in its state mode
of display.
Displays the logic states of a
particular line as a function of 0 and1 on another line.
Catches intermittent bugs
7/28/2019 Chap 14Lesson03EmsysNewLabTools
14/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
14
Logic Analyser Logic Analyser Does not help on a program halt due
to a bug. Does not show processor register and
memory contents, if the processor
uses caches then a bus examination
alone may not help.
7/28/2019 Chap 14Lesson03EmsysNewLabTools
15/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
15
LogicLogic
AnalyserAnalyser
Cannot modify the memory contents
and input parameters and study theireffects [simulator needed as that
helps in studying these effects]
7/28/2019 Chap 14Lesson03EmsysNewLabTools
16/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
16
Logic Analyzer two modes of functioningLogic Analyzer two modes of functioning
One modeto show time on x-axis,
and logic states of the clock signal, bussignals and other signals on y axis.
Second modeto give address, data
bus and other signal states from atrigger point to examine illegal op-codes, access in protected addressspace and other states as a function of areference state.
7/28/2019 Chap 14Lesson03EmsysNewLabTools
17/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
17
5.5. Use of Bit rate meterUse of Bit rate meter
7/28/2019 Chap 14Lesson03EmsysNewLabTools
18/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
18
Use of Bit rate meterUse of Bit rate meter A measuring device that finds
numbers of 1s and 0 in the pre-
selected time spans. Measures throughput.
can estimate bits 1s and 0s in atest message and then use bit ratemeter to find whether that matches
with the message.
7/28/2019 Chap 14Lesson03EmsysNewLabTools
19/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
19
SummarySummary
7/28/2019 Chap 14Lesson03EmsysNewLabTools
20/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
20
We learntWe learnt
Volt Ohm meter
LED
Logic probe
Oscilloscope used to test the fast changing
signals, their wave forms, overshoots andundershoots at transitions.
7/28/2019 Chap 14Lesson03EmsysNewLabTools
21/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
21
We learntWe learnt
Logic analyser used to measure logic
states on many connections
simultaneously.
Bit rate meter to test by measuring number
of bit changes in given time span andexpected ones
7/28/2019 Chap 14Lesson03EmsysNewLabTools
22/22
2008Chapter-14L03: "Embedded Systems - Architecture,
Programming and Design" , Raj Kamal, Publs.: McGraw-Hill,
Inc.
22
End of Lesson-3 of chapter 14 onLaboratory Tools