Random PWM generation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Random PWM generation

635件の閲覧回数
oakie_doke
Contributor III

Hi,

I use Code Warrior 10.6 with Processor Expert and MCF51MM256CLK mcu. I use TimerInt component to measure 10ms impulse on some pin and after this time in interrupt i want to generate one period of pwm on another pin. I use PWM component with setted 20ms period, 19ms starting pulse width and low initial polarity. Problem is on scope I see that time between impulses is random, not 19ms, almost always is shorter. I think here is problem with pwm. Could you propose some solution of this problem?

0 件の賞賛
返信
1 返信

499件の閲覧回数
marek_neuzil
NXP Employee
NXP Employee

Hello Sebastian,

Could you provide me the project you are using, please? There are many possibilities how to cerate the application. The TimerInt and PWM support several devices that can be used for the application. Please, provide the description of the configuration at least.

There can be also problem of unstable clock source (e.g. unadjusted internal oscillator). Do you use external crystal as clock source for the PWM device?

Best Regards,

Marek Neuzil

0 件の賞賛
返信