Buffered PWM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Buffered PWM

2,332 Views
RChapman
Contributor I
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    
 
Hi All,

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.

Thanks
Regards
 
Posted: Mon Sep 05, 2005 1:39 pm 
 
Hi,

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.

Cheers,
Labels (1)
0 Kudos
0 Replies