On Thu, 2004-10-28 at 11:32, Olin Lathrop wrote: > Herbert Graf wrote: > >> You need to read section 15, "Motor Control PWM" (if that's what you're > >> using) completely and thoroughly. Actually, I've found it's useful to > >> skim a section once to get the general flavor, then read it carefully > >> word for word. Only then are you ready to write code. > > > > Already did, wouldn't have posted my first message if I hadn't. > > I knew there was something about a factor of 2 in there, so this time I > looked myself. See the Figure 15-5 at the top of page 15-21. Note how bits > 14-0 of PTMR are compared against bits 15-1 of PDCx. BINGO! Thank you Olin, that's exactly what I was missing. Well, this is a nice surprise, I'll be able to get twice the resolution I was expecting, that means I can turn up my PWM freq! Woohoo. TTYL ----------------------------- Herbert's PIC Stuff: http://repatch.dyndns.org:8383/pic_stuff/ _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist