Skip to main content
mb_it
Associate
November 24, 2003
Question

Wrong PWM

  • November 24, 2003
  • 2 replies
  • 794 views
Posted on November 24, 2003 at 10:56

Wrong PWM

This topic has been closed for replies.

2 replies

mb_it
mb_itAuthor
Associate
November 14, 2003
Posted on November 14, 2003 at 09:48

Dear all,

The PWM generator of the ST7LITE09 seems to have some problems at hight frequencies (e.g. period: 30usec). Infact by changing the duty cycle close to the ends of the period, the signal is completely wrong!!(FYI I'm using an external clock 16MHz and autoreload timer).

Thanks for your help.

jatin
Visitor II
November 24, 2003
Posted on November 24, 2003 at 10:56

There is a caution given in the lite0 datsheet-

Caution: At each OVF event, the DCRx value is

written in a shadow register, even if the DCR0L

value has not yet been written (in this case, the

shadow register will contain the new DCR0H value

and the old DCR0L value).

So, if you are not able to write DCR0L before OVF event, you will be getting the wrong frequency.