Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Writing a value to PWM

(you are viewing a thread; or go back to list of threads)

Writing a value to PWM (by Juan)
Hi Jonathan.

Is it possible that you could make the frequency changeable in the PWM coil.

E.g. so that you can write to the frequency via a move instruction.
Wed Jan 6 2010, 00:05:46
(no subject) (by Jonathan Westhues)
It would be possible. But the actual register that gets written is an integer divisor from the CPU clock, not a frequency; so it would again have to do a conversion behind your back (and might cause some confusion, because that conversion is non-linear so the resolution isn't constant), or expose that complexity to the user.

The AVR has an even coarser set of options, so the option would be even less useful there.
Thu Jan 7 2010, 03:40:07
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):