⏱️
DevOpsJavaScript

Timers And Pwm

by mohitmishra786

Timers And Pwm is a DevOps skill for Claude Code, published by mohitmishra786 in low-level-dev-skills.

194 stars27 forkson mohitmishra786/low-level-dev-skillsAdded 2026/09/05+1% in starsRepository updated 2026/06/27
ai-agent-skillsbuild-systemsc-cpp-toolchaincompilerscross-compilationdebuggersembeddedlow-level-programminglow-level-programming-languageprofilersrustrust-langsystems-programmingzig
Install in seconds
Install Timers And Pwm
Copy Timers And Pwm into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/baremetal/timers-pwm-baremetal ~/.claude/skills/timers-pwm-baremetal

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/mohitmishra786/low-level-dev-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/baremetal/timers-pwm-baremetal/SKILL.md in mohitmishra786/low-level-dev-skills
Installs to
~/.claude/skills/timers-pwm-baremetal
Collection
One of 25 skills cataloged from this repository
Category
DevOps973 skills

What Timers And Pwm does

Timers And Pwm configures bare-metal MCU timers for PWM output, input capture, and periodic ticks without an RTOS. Use it when setting prescalers, ARR/CCR values, or SysTick for simple scheduling.

Timers And Pwm is cataloged under DevOps on DirSkills. Timers And Pwm comes from a repository tagged ai-agent-skills, build-systems, c-cpp-toolchain, compilers and cross-compilation.

Documentation

README

Timers and PWM (Bare-Metal)

Purpose

Configure MCU timers for PWM output, input capture, and periodic scheduling: prescaler/ARR setup, compare channels, and SysTick as a simple tick source.

When to Use

  • Motor/LED dimming via PWM
  • Measuring pulse width (input capture)
  • Bare-metal millis() without FreeRTOS
  • Hardware periodic sampling trigger

Workflow

1. PWM on TIM2 CH1 (STM32)

f_pwm = f_timer_clk / ((PSC+1) * (ARR+1))
duty = (CCR / (ARR+1)) * 100%
RCC->APB1ENR |= RCC_APB1ENR_TIM2EN;

TIM2->PSC  = 83;      /* 84MHz / 84 = 1 MHz tick */
TIM2->ARR  = 999;     /* 1 kHz PWM */
TIM2->CCR1 = 500;     /* 50% duty */
TIM2->CCMR1 |= (6U << TIM_CCMR1_OC1M_Pos);  /* PWM mode 1 */
TIM2->CCER  |= TIM_CCER_CC1E;
TIM2->CR1   |= TIM_CR1_CEN;

This is the opening of the README. Read the full README on GitHub.

Commands Timers And Pwm provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /timers-pwm-baremetal

Frequently asked about Timers And Pwm

  • What else does mohitmishra786 publish alongside Timers And Pwm?

    Timers And Pwm is one of 25 skills that DirSkills catalogs from mohitmishra786/low-level-dev-skills, the repository it ships in. Its siblings there include ADC And DAC Bare Metal, AF XDP and Bare-Metal Startup. Each one is a separate skill with its own page in this directory, installs the same way Timers And Pwm does, and is maintained by mohitmishra786 in that same repository. The rest of the collection is listed on the mohitmishra786/low-level-dev-skills page.

  • How does Timers And Pwm compare to other DevOps skills?

    Timers And Pwm ranks #901 by stars among the 973 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Timers And Pwm against them. Open each page to compare what they document and how they install.

More from mohitmishra786/low-level-dev-skills

Timers And Pwm is one of 25 skills cataloged on DirSkills from mohitmishra786/low-level-dev-skills.

See all 25 skills
48m ago

ADC And DAC Bare Metal

ADC And DAC Bare Metal configures ADC sampling, calibration, DMA circular buffers, and DAC output on microcontrollers. Use it for reading analog sensors, continuous sampling, or generating analog voltages.
DevOps
19427
🖧
48m ago

AF XDP

AF XDP guides setup of userspace packet I/O with UMEM, XSK rings, and XDP_REDIRECT programs. Use it when building fast network datapaths, choosing copy versus zero-copy mode, or comparing AF XDP with DPDK.
DevOps
19427
⚙️
48m ago

Bare-Metal Startup

Bare-Metal Startup guides reset-to-main bring-up for embedded targets. Use it for vector tables, .data/.bss initialization, stack setup, VTOR relocation, and crt0 startup code on Cortex-M or RISC-V.
DevOps
19427
🛠️
48m ago

Bazel

Bazel guides C/C++ build setup with BUILD files, cc_library and cc_binary rules, Bzlmod dependencies, toolchains, queries, remote execution, and sandbox debugging. Use it when creating or troubleshooting Bazel builds.
DevOps
19427
⚙️
48m ago

Build Acceleration

Build Acceleration helps reduce C/C++ compile and link times using ccache, sccache, distcc, unity builds, precompiled headers, split DWARF, and IWYU. Use it when builds are slow or you need to find the main bottleneck.
DevOps
19427
🧠
48m ago

Custom Allocators

Custom Allocators guides allocator design and tuning for pool, slab, arena, and general-purpose memory management. Use it when implementing custom allocators, adjusting jemalloc or mimalloc, or benchmarking fragmentation and throughput.
DevOps
19427