> Then, when I try to hard code in new PR2/precale values for a 5 KHz, and > reactive the PWM, the frequency will still remain at 20 KHz regard of > all logical efforts to clear it. Now, I have also read carefully the > section on the timer 2 module. I am anywhere of how the timer2 module > operates also. Now, I have found this must out. If I only change the > value of PR2 to change frequency, then the frequency actually changes. > However, trying to change the timer2 prescale to change the PWM > frequency does not work at all. Hence I believe the problem lives with > the prescale double buffering. However, the datasheets does not mention > how to a situation like this. When I change my frequencies, I must not > only change the PR2 register, but also the prescale to achieve my newly > commanded frequency. > > Like I have mentioned, I have narrowed the problem down to the > prescaler. > > Any more input is welcomed. Yes, I have more to say, but as I said in the previous message (and you even copied): > First, please remove you REPLY address so that a default reply goes to > the > list, not just you. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body