This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.
Posted: Sat Sep 03, 2005 9:50 am
I am using timer module for generating frequency by using channel 0 as a unbuffred PWM for this. If I dynamically chage the value for TMODH and TCH0H without stopping timer module for changing frequency it does not work fine.
Please help me to findout the possible mistake.
Posted: Mon Sep 05, 2005 1:39 pm
You MUST always write the lower part of the register AFTER you write the higher byte. There is an interlock mechanism which keep the old value in the High byte until the Lower byte is written. Even if the debugger seems to tell you that the register has the new value, it is not true until you write this lower byte.