Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

SDK • Re: Clock PWM from USB (or other, non-CPU) clock?

$
0
0
PWM block is clocked by clk_sys, last I checked. There is no register or config in the hardware to shift it elsewhere. I guess using the PWM clock divider is expected to meet the needs of most users (waveform control for power or motors).

If your app doesn't need a lot of processor power, you can clock down clk_sys. E.g. for a 1 Hz LED blinker test progam I moved clk_sys to 12 MHz XOSC, set the PWM divider to 240, and PWM period to 50,000.

Statistics: Posted by katak255 — Sat Jan 03, 2026 2:37 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles