Return to Pattern Library
PWM
Generate a PWM signal
Requires the Temboo extension.
Platform

TI SimpleLink

Open in VS Code You can also find Device Loop Patterns in CCS. Search Temboo: Browse Device Loop Patterns in the command palette.
Generate a stable PWM output at a configurable frequency and duty cycle.
Applies when
Use for initial PWM bring-up, LED dimming, motor/servo control foundations, buzzers, or any TI SimpleLink feature that depends on a repeated pulse waveform.
Show pattern details
Hide pattern details
Intent
Inspect available PWM-capable outputs and existing project configuration, then generate a continuous PWM signal using the configured frequency and duty cycle on an appropriate output.
Expectation
The physical output produces a stable waveform whose measured frequency and duty cycle match the configured values within the selected tolerance.
Success criteria
The PWM waveform remains stable for the observation window, and measured frequency and duty cycle are both within the configured tolerance with no runtime errors or unexpected output interruptions.
How it is verified
Prefer an oscilloscope or logic analyzer to measure frequency and duty cycle. If the PWM drives a visible load such as an LED, use that as supplementary evidence but do not infer precise duty cycle from brightness alone.