# HJS-Workbench: a digital debug workbench that tests itself
## The problem
Good bench logic analyzers are expensive and locked down. Cheap USB dongles are
capture-only: to verify a generator or a decoder you still need a second
instrument, and you cannot inspect or modify their software. I wanted one small,
open device that could generate a signal, capture it, and decode it on its own.
## The idea: one closed loop
HJS-Workbench combines three tools in a single shared core:
- logic analysis on 8 channels, up to 1 MHz
- signal generation: software-UART, square wave, PWM, burst, fixed levels, and GUI Pattern Playback of six-channel level sequences
- real-time measurement: frequency, period, pulse width, duty, and jitter
The generator pin (PA15) wires straight back to an input (PD0). The board emits
a signal, captures it, and decodes it without any second instrument - a
self-contained closed loop. In the demo it generates a serial frame and decodes
its own "Hello CH3