Logic Analyzer
A logic analyzer records several digital signals at once and shows them on a shared time axis. In this lab it is the main measuring tool: your program raises a spare pin when something starts and lowers it when it ends, and the analyzer tells you how long that took, to a fraction of a microsecond.
The lab uses the common 8-channel, 24 MHz USB analyzer with the free PulseView software from the sigrok project.
Install PulseView
- Download PulseView from the sigrok downloads page and install it.
- Windows only: the analyzer needs the WinUSB driver once. Plug it in, run Zadig (installed with PulseView), pick the analyzer from the list (it may show as Unknown Device or fx2lafw), choose WinUSB and click Install Driver.
- Start PulseView. In the device list at the top, choose fx2lafw (generic driver for FX2 based LAs), then Scan for devices. The analyzer should appear as a Saleae Logic or a generic 8-channel device.
Connect it to the LaunchPad
- Connect the analyzer's GND to a GND pin on the LaunchPad first. Without a shared ground the readings are noise.
- Connect channels CH0, CH1, CH2… to the pins the experiment lists. In Experiment 1 these are PE1, PE2 and PE3.
- The LaunchPad's pins are 3.3 V, which the analyzer reads directly. Never connect it to anything above 5 V.
Capture and measure
- Set the sample rate to at least 4 MHz (24 MHz for the finest detail) and the sample count to 1 M or more.
- Click Run. PulseView records for the chosen time and shows each channel as a trace.
- Pulse width: zoom in on a pulse and hover over it. PulseView shows the width and the period of that pulse.
- Many pulses at once: add the Timing protocol decoder on a channel. It labels the time between every pair of edges, so you can scan for the shortest and longest.
Time resolution
At 24 MHz the analyzer samples every 41.7 ns, so any time it shows is accurate to about ±42 ns, or about 2 clock cycles of the 50 MHz LaunchPad.