Agent skill · software engineering · mohitmishra786
adc-dac-baremetal
Bare-metal ADC and DAC skill. Use when configuring analog sampling, DMA-driven ADC, calibration, or DAC output on MCUs. Activates on queries about ADC bare-metal, sampling time, DMA ADC, or DAC channel setup.
Why this skill is useful
Adds executable scripts for configuring ADC and DAC on STM32 microcontrollers, including DMA setup and calibration sequences that are not commonly found in public documentation.
What it needs
About 1k tokens when loaded. Last updated 2026-06-27. 156 stars on the source repository.
What this skill does
ADC and DAC (Bare-Metal) Purpose Configure ADC and DAC peripherals: channel selection, sampling times, calibration sequences, DMA circular buffers, and DAC static/dynamic output. When to Use Reading analog sensors (temperature, voltage) Audio or control voltage output via DAC Continuous sampling with DMA Post-reset ADC calibration on STM32 Workflow 1. STM32 ADC single conversion Run ADCCalibration() / ADCCR2RSTCAL/CAL per RM on F1/F4 families. 2. DMA circular ADC Half-transfer / transfer-complete IRQs for double buffering. 3. DAC output (STM32) 4. Agent usage Common Problems Symptom Cause Fix --------- ------- ----- Noisy readings Short sample time Increase SMP bits Stuck EOC Clock not enabled RCC ADC enable Wrong voltage Vref not 3.3V Measure VDDA; calibrate DMA corrupt Buffer alignment Use uint16t aligned buffer Related Skills skills/baremetal/dma-baremetal — ADC DMA streams skills/baremetal/timers-pwm-baremetal — ADC external trigger skills/baremetal/gpio-baremetal — analog pin mode
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills mohitmishra786/adc-dac-baremetal