~/talk

When PWM Meets the Common Clock Framework: How To Write a (not So)...

links:none on file
slides:none on file

Covers converting nanosecond-range period/duty requests into real hardware regs using the new PWM waveform internal API, then applies that to an Allwinner H616 PWM with six paired channels, per-pair and per-channel prescalers, and two input clocks (24 MHz and 100 MHz). Uses the Common Clock Framework to iterate clock rates (fastest→slowest), pick the divisor that maximizes period without exceeding the request, and keep enough duty steps; shows handling of the PWM bypass as a clock provider for exact-frequency consumers. Works but leaves rounding uncertainties and no direct access to clock-calculated divisors.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 1:05What is PWM
  3. 3:10Period and duty parameters
  4. 8:35Simple kernel implementation
  5. 15:51Real-world example with Allwinner
  6. 23:55PWM as clock provider
  7. 30:19Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.