Skip to main content

Logic Analyzer

These commands are available three ways — in the FREE-WILi GUI app, in a serial terminal, and on the device itself. See Connecting it to a computer for how to reach them.

configure

Configures a digital logic capture on a contiguous range of GPIO pins, with an optional edge trigger and auto-rearm.

Trigger Types

  • 0 — Falling edge on triggerPin
  • 1 — Rising edge on triggerPin
  • 2 — None (one-shot, fires immediately on start)
  • 3 — Continuous (free-running capture)

Example

Capture 4096 samples on GPIO 0–7 at 1 µs/sample, triggering on a rising edge of GPIO 2, with auto-rearm enabled:

c 1000 4096 0 7 2 1 1

Notes

  • Issue s (start) after configuring to begin capture, and e (stop) to halt.
  • For analog capture, configure separately with a.

How to use it — press c. At the prompt, enter: SampleRate (ns) SampleCount PinStart PinStop TriggerPin TriggerType (0=falling,1-rising,2-none,3-Continuous) Rearm (0/1).

What you entersample_rate_ns, sample_count, pin_start, pin_stop, trigger_pin, trigger_type, rearm.

configure analog

Configures the analog capture inputs.

How to use it — press a. At the prompt, enter: AnalogMask (bit0=GPIO43..bit3=GPIO46, 0=off) AnalogRateNs AnalogRes(8/16).

What you enteranalog_mask, analog_rate_ns, analog_res.

start

Starts logic analyzer capture.

How to use it — press s.

stop

Stops logic analyzer capture.

How to use it — press e.

trigger

Manually triggers the logic analyzer.

How to use it — press t. At the prompt, enter: trigger type (0=falling, 1=rising, 2=none, 3=continuous).

What you entertrigger_type.