/datasheet-and-refmanual-reading
Datasheet and reference manual reading skill for embedded engineers. Use when extracting pinouts, electrical limits, register maps, clock trees, or timing from MCU documentation. Activates on queries about reading STM32 RM, extracting register bits, finding errata, or navigating
$ npx -y skills add mohitmishra786/low-level-dev-skills --skill datasheet-and-refmanual-reading --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/datasheet-and-refmanual-reading
Context preview
The summary Claude sees to decide when to auto-load this skill.
Datasheet and reference manual reading skill for embedded engineers. Use when extracting pinouts, electrical limits, register maps, clock trees, or timing from MCU documentation. Activates on queries about reading STM32 RM, extracting register bits, finding errata, or navigating
SKILL.md
datasheet-and-refmanual-reading.SKILL.mdname: datasheet-and-refmanual-reading
description: Datasheet and reference manual reading skill for embedded engineers. Use when extracting pinouts, electrical limits, register maps, clock trees, or timing from MCU documentation. Activates on queries about reading STM32 RM, extracting register bits, finding errata, or navigating reference manual sections.
Datasheet and Reference Manual Reading
Purpose
Teach agents a systematic methodology for reading MCU datasheets and reference manuals: which sections matter for firmware, how to cross-reference pin tables with register maps, and how to avoid documentation pitfalls (errata, footnotes, conditional fields). **Not merged** with `skills/baremetal/peripherals-from-datasheet` — this skill covers **how to read docs**; that skill covers **how to write drivers** from them.
When to Use
- Starting driver work on unfamiliar silicon
- Resolving ambiguous register bit behavior
- Verifying electrical and timing constraints before PCB/firmware sign-off
- Complementing `skills/baremetal/peripherals-from-datasheet` (implementation focus)
- Answering "where in the RM do I find X?"
Workflow
1. Document types
| Document | Primary use | |----------|-------------| | Datasheet | Pinout, max ratings, package, brief features | | Reference Manual (RM) | Register maps, bit fields, clock trees, peripheral behavior | | Programming Manual (PM) | Cortex-M core, NVIC, MPU, debug (ARM doc) | | Errata sheet | Silicon bugs that affect firmware workarounds |
Read the datasheet for **what exists**; read the RM for **how to program it**.
2. First-pass reading order (RM)
1. Memory and bus architecture (address map)
2. Reset and clock control (RCC / CGU)
3. GPIO / pin multiplexing
4. Target peripheral chapter (e.g. USART, SPI, DMA)
5. NVIC / EXTI interrupt mapping table
6. Electrical characteristics (only if timing-critical)
7. Errata — search peripheral name
3. Register map extraction checklist
For each register:
- Offset from peripheral base (verify against memory map table)
- Reset value (affects read-modify-write defaults)
- Read-only / write-only / write-1-to-clear bits
- Fields that depend on mode (check "Notes" under table)
- Side effects: clearing flags, auto-clear bits, reserved must-write-0
/* Good — named constants from RM bit table */
#define USART_CR1_UE (1U << 13)
#define USART_CR1_TE (1U << 3)
/* Bad — magic numbers without RM citation */
*(volatile uint32_t *)0x40011000 = 0x2000;
4. Pin / signal cross-reference
Schematic net → Datasheet pin table (AF number)
→ RM GPIO chapter (MODER, AFR)
→ Peripheral chapter (USART_TX on PA2 = AF7)Always confirm **default state after reset** (analog mode, pull, JTAG pins).
5. Timing and electrical traps
- Setup/hold for external bus modes (FSMC, SDIO)
- ADC sampling time vs source impedance (datasheet graph)
- Maximum GPIO toggle rate vs load capacitance
- Boot mode pins sampled only at reset
6. Errata workflow
Symptom matches errata?
├── Yes → apply documented workaround in driver
└── No → verify silicon revision (DBGMCU_IDCODE / UID)
7. Agent usage
/datasheet-and-refmanual-reading Find STM32F4 USART baud rate formula and required clock source
Common Problems
| Symptom | Cause | Fix | |---------|-------|-----| | Wrong register behavior | Read wrong silicon rev errata | Check ERRATA sheet first | | AF does not work | Confused DS pin name with RM AF table | Cross-check both tables | | Intermittent DMA | Missed footnote on buffer alignment | RM DMA chapter notes | | Clock mismatch | Used max frequency from DS banner, not voltage range table | Use operating conditions table |
Related Skills
- `skills/baremetal/peripherals-from-datasheet` — driver implementation workflow
- `skills/baremetal/mmio-and-bit-manipulation` — safe register access
- `skills/baremetal/gpio-baremetal` — pin mux from RM tables
- `skills/kernel-dev/device-tree` — bindings mirror RM capabilities for Linux
Read more
name: datasheet-and-refmanual-reading description: Datasheet and reference manual reading skill for embedded engineers. Use when extracting pinouts, electrical limits, register maps, clock trees, or timing from MCU documentation. Activates on queries about reading STM32 RM, extracting register bits, finding errata, or navigating reference manual sections.
Datasheet and Reference Manual Reading
Purpose
Teach agents a systematic methodology for reading MCU datasheets and reference manuals: which sections matter for firmware, how to cross-reference pin tables with register maps, and how to avoid documentation pitfalls (errata, footnotes, conditional fields). **Not merged** with `skills/baremetal/peripherals-from-datasheet` — this skill covers **how to read docs**; that skill covers **how to write drivers** from them.
When to Use
- Starting driver work on unfamiliar silicon
- Resolving ambiguous register bit behavior
- Verifying electrical and timing constraints before PCB/firmware sign-off
- Complementing `skills/baremetal/peripherals-from-datasheet` (implementation focus)
- Answering "where in the RM do I find X?"
Workflow
1. Document types
| Document | Primary use | |----------|-------------| | Datasheet | Pinout, max ratings, package, brief features | | Reference Manual (RM) | Register maps, bit fields, clock trees, peripheral behavior | | Programming Manual (PM) | Cortex-M core, NVIC, MPU, debug (ARM doc) | | Errata sheet | Silicon bugs that affect firmware workarounds |
Read the datasheet for **what exists**; read the RM for **how to program it**.
2. First-pass reading order (RM)
1. Memory and bus architecture (address map) 2. Reset and clock control (RCC / CGU) 3. GPIO / pin multiplexing 4. Target peripheral chapter (e.g. USART, SPI, DMA) 5. NVIC / EXTI interrupt mapping table 6. Electrical characteristics (only if timing-critical) 7. Errata — search peripheral name
3. Register map extraction checklist
For each register:
- Offset from peripheral base (verify against memory map table)
- Reset value (affects read-modify-write defaults)
- Read-only / write-only / write-1-to-clear bits
- Fields that depend on mode (check "Notes" under table)
- Side effects: clearing flags, auto-clear bits, reserved must-write-0
/* Good — named constants from RM bit table */ #define USART_CR1_UE (1U << 13) #define USART_CR1_TE (1U << 3) /* Bad — magic numbers without RM citation */ *(volatile uint32_t *)0x40011000 = 0x2000;
4. Pin / signal cross-reference
Schematic net → Datasheet pin table (AF number)
→ RM GPIO chapter (MODER, AFR)
→ Peripheral chapter (USART_TX on PA2 = AF7)Always confirm **default state after reset** (analog mode, pull, JTAG pins).
5. Timing and electrical traps
- Setup/hold for external bus modes (FSMC, SDIO)
- ADC sampling time vs source impedance (datasheet graph)
- Maximum GPIO toggle rate vs load capacitance
- Boot mode pins sampled only at reset
6. Errata workflow
Symptom matches errata? ├── Yes → apply documented workaround in driver └── No → verify silicon revision (DBGMCU_IDCODE / UID)
7. Agent usage
/datasheet-and-refmanual-reading Find STM32F4 USART baud rate formula and required clock source
Common Problems
| Symptom | Cause | Fix | |---------|-------|-----| | Wrong register behavior | Read wrong silicon rev errata | Check ERRATA sheet first | | AF does not work | Confused DS pin name with RM AF table | Cross-check both tables | | Intermittent DMA | Missed footnote on buffer alignment | RM DMA chapter notes | | Clock mismatch | Used max frequency from DS banner, not voltage range table | Use operating conditions table |
Related Skills
- `skills/baremetal/peripherals-from-datasheet` — driver implementation workflow
- `skills/baremetal/mmio-and-bit-manipulation` — safe register access
- `skills/baremetal/gpio-baremetal` — pin mux from RM tables
- `skills/kernel-dev/device-tree` — bindings mirror RM capabilities for Linux
A curated suite of AI agent skills for systems and low-level programming — C/C++, Rust, Zig, GPU, bare-metal firmware, Linux kernel/driver development, computer architecture, compiler internals, HPC, and more.
Repo: mohitmishra786/low-level-dev-skills
Other skills on low-level-dev-skills.
- /custom-allocators
Custom allocator skill for memory allocation strategies. Use when implementing pool/slab/arena allocators, tuning jemalloc/mimalloc, writing Rust GlobalAlloc, or benchmarking allocator performance. Activates on queries about jemalloc, mimalloc, tcmalloc, arena allocator,
Open skill - /numa-programming
NUMA programming skill for multi-socket memory locality. Use when detecting NUMA topology, binding processes with numactl, using libnuma API, building NUMA-aware data structures, or measuring remote access penalties. Activates on queries about numactl, libnuma, NUMA topology,
Open skill - /af-xdp
AF_XDP skill for high-performance XDP sockets. Use when creating AF_XDP sockets, configuring UMEM and XSK rings, XDP_REDIRECT programs, copy vs zero-copy mode, or comparing with DPDK. Activates on queries about AF_XDP, xsk_umem, XDP_REDIRECT, libbpf xsk, or zero-copy XDP.
Open skill - /dpdk
DPDK skill for userspace packet I/O. Use when initializing EAL, configuring PMD drivers, using mbuf pools and rte_ring, setting up huge pages, RSS, or testpmd validation. Activates on queries about DPDK, EAL, rte_eth_rx_burst, hugepages, PMD, or testpmd.
Open skill - /io-uring
io_uring skill for Linux async I/O. Use when building high-performance servers with liburing, multi-shot operations, provided buffers, fixed files, zero-copy send, or tokio-uring. Activates on queries about io_uring, SQE/CQE, liburing, IORING_OP_PROVIDE_BUFFERS, or io_uring vs
Open skill - /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.
Open skill

