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 - PWM base frequency

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

PWM base frequency (by Ziggy)
Hello Room,

Been a while since I last looked at LDMicro.

Since then a whole bunch of changes took place.

I was wondering whether LDmicro has the capability to output a tone not unlike arduio tone() function or potentially output a PWM signal at a programmable base frequency? say 2.7KHz and 50% duty cycle.
Thu Nov 10 2016, 22:36:48
(no subject) (by Ihor Nehrutsa)
Available several fixed values of PWM base frequency , depending on the frequency of the processor Fclk and selected prescaler.
Fri Nov 11 2016, 04:13:31, download attachment pwm_8bit.JPG
(no subject) (by Ihor Nehrutsa)
LDmicro gets your target frequency,
calculates the prescaler,
then calculate the fact PWM frequency,
and if target and fact differ more 5%
send Message.
So with 16MHz oscillator you can select

65.2k, 7.8k, 976, 244 or 61 Hz PWM frequency only.
Fri Nov 11 2016, 04:29:52, download attachment pwm_freq.JPG
(no subject) (by Ihor Nehrutsa)
Other way of PWM described in

"AVR136 Application Note"

You can sponsor developing it. Contact to [email protected]
Fri Nov 11 2016, 04:40:39
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):