High Frequency 16 bit PWM Dimming
Kerry email (remove spam text)
I guess I should have been more clear.
The leftmost 10 bits becomes the variable 10bit and the rightmost 6 bits
becomes the variable 6bit, as in:
16bit = 0x1234 = 0b0001 0010 0011 0100
10bit = 0b0001 0010 00 = 0x0048
6bit = 0b11 0100 = 0x34
If your 16bit value was 0x0001, then the 10bit would be 0 and the 6bit
would be 1.
The PWM output would be 0 for 63 cycles, the 1/1024 for 1 cycle.
If your 16bit value was 0x3000, then the 10bit would be 0x300 and the
6bit would be 0.
The PWM output would be 768/1024 for all cycles, so there would be no
dithering.Â But 768/1024 is exactly equal to 12288/65536, so no
dithering is needed.
Does that help?
On 9/7/2017 12:26 AM, Jim Ruxton wrote:
http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
In reply to: <email@example.com>
See also: www.piclist.com/techref/microchip/ios.htm?key=pwm
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the