How davidclawson/openscope-2c53t works
OpenScope 2C53T is replacement firmware for the FNIRSI handheld oscilloscope, multimeter, and signal generator. The user operates it through physical buttons: input handling changes instrument state, the firmware acquires data from the FPGA, and the display renders the resulting scope or meter view. The product also documents live FFT, waveform mask testing, math channels, protocol decoders, settings, and firmware recovery. Edges follow the excerpts and README; some feature implementation details and unsampled call sites are not shown, so those links are documented at subsystem level rather than inferred as precise calls.
Main entry points: main.c Firmware runtime · scope_ui.c Scope display · input_handler.c Input handling · fpga.c FPGA acquisition
Components 18
Interaction and display
- Button scanning
firmware/src/drivers/button_scan.h - Input handling
firmware/src/tasks/input_handler.c - Firmware runtime
firmware/src/main.c - LCD rendering
firmware/src/drivers/lcd.h - Scope display
firmware/src/ui/scope_ui.c - Meter display
firmware/src/ui/meter_ui.c
Acquisition and analysis
- FPGA acquisition
firmware/src/drivers/fpga.c - Waveform mask
firmware/src/ui/scope_mask.h - FFT analysis
firmware/src/dsp/fft.c - DSP primitives
firmware/CMSIS-DSP/Source/TransformFunctions/arm_cfft_f32.c - Math channels
firmware/src/dsp/math_channel.c - Protocol decoders
firmware/src/decode/decoder.h
Instrument modes
- Multimeter mode
firmware/src/ui/meter_ui.c - Signal generator
firmware/src/dsp/signal_gen.c - Settings persistence
firmware/src/ui/persistence.h
Firmware recovery
- USB HID bootloader
firmware/bootloader/src/main.c
Other components
- Instrument operator
- USB host
Connections 19
- Instrument operator → Button scanning: presses
README.md - Button scanning → Input handling: dispatches buttons
firmware/src/drivers/button_scan.h - Input handling → Waveform mask: requests mask tests
firmware/src/tasks/input_handler.c - Input handling → Firmware runtime: queues display commands
- Firmware runtime → FPGA acquisition: configures acquisition
firmware/src/main.c - Firmware runtime → LCD rendering: draws instrument screens
firmware/src/main.c - Firmware runtime → Settings persistence: loads settings
firmware/src/main.c - FPGA acquisition → Scope display: supplies captures
README.md - Scope display → LCD rendering: renders waveforms
README.md - Waveform mask → Scope display: provides overlay
firmware/src/ui/scope_mask.h - FPGA acquisition → Waveform mask: tests committed records
firmware/src/ui/scope_mask.h - Scope display → FFT analysis: shows live FFT
README.md - FFT analysis → DSP primitives: uses transforms
- Firmware runtime → Multimeter mode: selects meter mode
firmware/src/main.c - Multimeter mode → LCD rendering: renders readings
README.md - Firmware runtime → Signal generator: initializes generator
firmware/src/main.c - Instrument operator → Protocol decoders: uses decoded protocols
- Scope display → Math channels: offers math views
- USB host → USB HID bootloader: sends firmware updates
firmware/bootloader/src/main.c