How amiruddinsiddiqui/digital_oscilloscope works
This is an STM32F401RE digital oscilloscope: button input selects a channel, timer-triggered ADC and DMA capture a 240-sample frame, and the application sends that frame to a PC over UART and draws it on an ILI9341 display. The graph also shows debounce timing, status LEDs, and the Python visualization client. Application orchestration and display/SPI calls are visible in excerpts; acquisition, UART, timer, LED, and Python implementation details are represented from the README and source index, not inferred beyond their documented roles.
Main entry points: app.c Oscilloscope app · adc.c ADC channel · exti.c Button events · dma.c DMA capture
Components 17
Application and controls
- Firmware entry
Core/Src/main.c - Oscilloscope app
Core/App/app.c
Signal acquisition
- ADC channel
Core/Custom_Drivers/adc.c - Sampling timer
Core/Custom_Drivers/timer.c - DMA capture
Core/Custom_Drivers/dma.c - 240-sample frame
Core/Custom_Drivers/dma.c
Frame outputs
- UART transmitter
Core/Custom_Drivers/uart.c - PC waveform viewer
utils/waveform.py - ILI9341 waveform
Core/Custom_Drivers/ili9341.c
Peripheral drivers
- Button events
Core/Custom_Drivers/exti.c - Debounce tick
Core/Custom_Drivers/timer.c - Status LEDs
Core/App/led.c - SPI2 driver
Core/Custom_Drivers/spi.c
Other components
- Button operator
- Analog signal
- ILI9341 TFT
- PC
Connections 21
- Firmware entry → Oscilloscope app: starts
Core/Src/main.c - Oscilloscope app → Button events: reads events
Core/App/app.c - Button events → Oscilloscope app: sets button event
Core/Custom_Drivers/exti.c - Oscilloscope app → Sampling timer: initializes
Core/App/app.c - Oscilloscope app → Debounce tick: initializes
Core/App/app.c - Oscilloscope app → ADC channel: selects channel
Core/App/app.c - Oscilloscope app → DMA capture: starts and stops
Core/App/app.c - Oscilloscope app → Status LEDs: updates indicators
Core/App/app.c - Debounce tick → Button events: provides debounce time
readme.md - Sampling timer → ADC channel: triggers conversions
readme.md - Analog signal → ADC channel: supplies input
readme.md - ADC channel → DMA capture: feeds conversions
readme.md - DMA capture → 240-sample frame: writes samples
readme.md - Oscilloscope app → 240-sample frame: reads completed frame
Core/App/app.c - Oscilloscope app → UART transmitter: sends frame
Core/App/app.c - Oscilloscope app → ILI9341 waveform: draws waveform
Core/App/app.c - ILI9341 waveform → SPI2 driver: sends display bytes
Core/Custom_Drivers/ili9341.c - SPI2 driver → ILI9341 TFT: communicates
readme.md - UART transmitter → PC: transmits samples
readme.md - PC → PC waveform viewer: visualizes waveform
readme.md - Button operator → Button events: presses buttons
readme.md