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 10 bit?

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

pwm 10 bit? (by Olivier)
Hi i was wondering if it was possible to use the pwm as 0 to 1023 similar to ADC inputs (10 bit) instead of 0-100%, my application need more accuracy than 1%.
thanx for your support and your great software!
Mon Jul 13 2009, 10:12:45
(no subject) (by Jonathan Westhues)
The actual range of the PWM duty cycle register will depend on the programmed frequency. So to make the specified duty cycle independent of that, LDmicro automatically scales the specified duty cycle from percent to the appropriate units.

For that scale operation to work using 16-bit math, the max value specified can't exceed 255. So I arbitrarily chose a maximum of 100. So there's no good way to specify with finer resolution.
Tue Jul 14 2009, 01:45:37
GSM REMOTE CONTROL WITH ABOUT (by murat solak)
MOBILE PHONE WITH REMOTE CONTROL PROGRAM ON EMPLOYEE RELAY UP AS A FRIEND TO HELP ME I WILL CALL
Sat Apr 10 2010, 13:41:28
I do not know (by murat solak)
I opened my head to the main forum page here, I do not know how to come:)
Sat Apr 10 2010, 13:46:55
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):