On Thu, Aug 27, 2015 at 12:17 PM, Dwayne Reid wrot= e: > Hi there, Josh. > > Thanks for mentioning Bit Angle Modulation - I was not aware of this > technique previously. > > I'm intrigued and I'd like to play with it for a bit. > > Because I'm a die-hard PIC Assembler kind of person, is there any > chance that I can play with your code if you are free to share? Hey Dwayne! I'd be happy to share...if I can find it. That was probably close to 10 years ago at this point! I'm traveling now, but if I can find my old code on a hard drive I've got back home I will send it along. That said, it might be easier to rewrite it to take advantage of the more modern PICs. The ISR wasn't too tricky, it just rotated the dimmer value register, determined if the output needed to be high or low for that cycle, set the output appropriately, then loaded the timer for the next interval. The trick is making the ISR as compact as possible, which is something I'm hoping to accomplish in my new version by creating a variable for each timeslice so all the ISR has to do is copy that to the output, then reload the timer. Josh --=20 A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .