adc-dac-baremetal

adc-dac-baremetal is a skill for Claude Code, Codex from OutlineDriven/outline-driven-development. It costs 43 tokens per session (1,627 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 Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also 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: Claude Code, 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,627 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.01627
Opus 5.5 $0.00017 $0.00651
Sonnet 5.5 $0.00009 $0.00325
Haiku 4.5 $0.00004 $0.00163

Measured 2mo ago against content hash 53ccb6395226, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 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 · 82 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. 2mo ago Changed · +1 lines 53ccb6395226
  2. 2mo 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 (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,627 once invoked, about $0.0002 per session on Opus 5.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

adc-dac-baremetal compared with skills from other repositories

adc-dac-baremetal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adc-dac-baremetalOutlineDriven/outline-driven-developmentSkill542mo agoApache-2.0A43Claude Code, Codex
automatic-cybernetic-flow-designOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A58Claude Code, Codex
pcbwayaklofas/kicad-happySkill1.8k6d agoMITA119Claude Code
akg-agentsXiaoLuoLYG/GODSkill1.3k5d agoApache-2.0A75Claude Code, Codex
bios-setup-variableslaurigates/claude-pluginsSkill60yesterdayMITA43Claude Code
phase1vibeic/vibe-icSkill32todayApache-2.0A156Claude Code
analyzing-malicious-pdfsmeltedinhex/analyst-ai-packSkill253d agoApache-2.0A73Claude Code, Codex