adc-dac-baremetal

adc-dac-baremetal is a skill for Codex from OutlineDriven/outline-driven-development. It costs 43 tokens per session (1,619 once invoked), scanned A, original, Apache-2.0.

Guidance for configuring an MCU's ADC and DAC, hardware that converts between analog voltages and digital values. It covers sampling, calibration, DMA buffers, and output channels without relying on a vendor's hardware library.

In plain words
What is it for?
Use it to set up analog input sampling, continuous ADC capture into a DMA buffer, reset calibration, or DAC output on a bare-metal microcontroller.
Why use it?
It reduces mistakes in clocking, pin setup, sampling time, calibration, and data movement. It also helps match the configuration to the signal's rate and source impedance.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to set up analog input sampling, continuous ADC capture into a DMA buffer, reset calibration, or DAC output on a bare-metal microcontroller.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/adc-dac-baremetal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/outline-driven-development --skill adc-dac-baremetal
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adc-dac-baremetal

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/adc-dac-baremetal/github.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/adc-dac-baremetal)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/adc-dac-baremetal"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/adc-dac-baremetal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adc-dac-baremetal

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/adc-dac-baremetal"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/adc-dac-baremetal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,619 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01619
Opus 5 $0.00022 $0.00809
Sonnet 5 $0.00009 $0.00324
Haiku 4.5 $0.00004 $0.00162

Measured 3d ago against content hash a65be99d51e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

adc-dac-baremetal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.devin/skills/adc-dac-baremetal/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADC and DAC on bare metal

Contract

Field Bound contract
Trigger The task is to sample an analog input, run the ADC continuously into a DMA buffer, calibrate the ADC after reset, or drive a DAC channel on an MCU without a vendor HAL.
Authority Read-only: emits register sequences, formulas, and diagnostics to chat; the user pastes them into their firmware. Rollback is not needed because no file is written. No remote mutation.
Side effect Chat output only.
Done The guidance names the clock enable, pin mode, sampling time, calibration step, trigger, and readout for the target family, and every register bit is cited to the reference manual chapter it comes from.

Inputs

  • Target MCU family and part number (STM32F1, STM32F4, STM32G4, STM32L4, or another family with a reference manual at hand).
  • The analog pin and ADC channel, from the datasheet pin table.
  • Sample rate and source impedance of the signal.
  • Whether readout is polled, interrupt-driven, or DMA circular.
  • The ADC clock frequency after prescaling, from the clock tree.

Procedure

  1. Enable the ADC and GPIO clocks and put the pin in analog mode. The ADC reads nothing from a pin still in digital input mode. Done when: the RCC enable bit for the ADC bus and the GPIO port are set and MODER for the pin reads analog (11).

  2. Power the ADC on and wait the stabilization time the datasheet gives as tSTAB. On STM32F4 this is ADC_CR2_ADON followed by a short wait; the wait is a datasheet number, not a magic loop count. Done when: ADON is set and the wait matches the datasheet value for the ADC clock in use.

    RCC->APB2ENR |= RCC_APB2ENR_ADC1EN;
    ADC1->CR2 |= ADC_CR2_ADON;
    delay_us(ADC_TSTAB_US);   /* tSTAB from the datasheet, not a guessed loop */
    
  3. Calibrate where the family requires it. STM32F1 exposes ADC_CR2_RSTCAL then ADC_CR2_CAL in CR2 and the firmware polls each bit until hardware clears it. STM32L4 and STM32G4 expose ADCAL in ADC_CR with the ADC disabled. STM32F4 has no software calibration step; the part is factory calibrated. Done when: the family's calibration sequence has run, or the reference manual confirms the family has none.

  4. Set the sampling time from the datasheet graph of sampling time against source impedance. On STM32F4 SMPR2 field SMP0 value 100 (ADC_SMPR2_SMP0_2) selects 84 ADC clock cycles for channel 0; the other encodings are 3, 15, 28, 56, 112, 144, and 480 cycles. A high-impedance source needs the longer settings. Done when: the chosen sampling time covers the source impedance at the ADC clock in use.

  5. Select the channel sequence and start one conversion, then poll end-of-conversion and read the data register. Done when: a polled single conversion returns a plausible value for a known input (mid-rail or ground).

Read the full file on GitHub · 81 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 81 lines · 43 tokens per session scan A a65be99d51e2

Subscribe to this mod's changes

adc-dac-baremetal is a skill published in the GitHub repository OutlineDriven/outline-driven-development (52 stars, last pushed 3d ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,619 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

automatic-cybernetic-flow-design

Use when the user wants a cybernetic flow design document for an interactive system. Specifies sensors, actuators, feedback paths, delays, and oscillation risk, and writes the design to a named local file. Not for implementing or deploying the system.

OutlineDriven/odin-claude-plugin · 58 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

unifi-protect

How to manage UniFi Protect cameras and NVR — view cameras, smart detections, Find Anything detection search, recordings, snapshots, lights, sensors, Known Faces, license plates, and the Alarm Manager. Use this skill when the user mentions UniFi cameras, security cameras, NVR, recordings, motion detection, person…

sirkirby/unifi-mcp · 112 tokens

mi300-hip-vs-nvidia

MI300 HIP programming differences vs NVIDIA—wavefront vs warp, memory hierarchy, MFMA usage, occupancy, and profiling pitfalls.

AMD-AGI/Apex · 35 tokens

gpu-memory-model

GPU memory model skill for SIMT execution and memory hierarchy. Use when analyzing warp divergence, memory coalescing, shared memory bank conflicts, cache behavior, atomics, or occupancy tradeoffs. Activates on queries about SIMT, warp coalescing, bank conflicts, wavefront, GPU occupancy, or memory-bound kernels.

mohitmishra786/low-level-dev-skills · 70 tokens

ios-build-cleanup

Use when the user wants a clean Xcode rebuild by deleting DerivedData and build artifacts. Do not use for diagnosing a specific build error: use ios-build-fix.

OutlineDriven/odin-claude-plugin · 39 tokens