MCF5213 external clock and PWM issue

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

MCF5213 external clock and PWM issue

1,184件の閲覧回数
pmrshudson
Contributor I
I'm using a MCF5213 with an external master clock. I'm also using one of the 5213 PWM outputs to drive a MOSFET to control the speed of a fan. If I stop the master clock, I notice that the PWM will continue to run. I'd like the PWM to stop when the master clocks stops. Why does the PWM continue to run, and how can I get it to stop when the master clock is halted?
ラベル(1)
0 件の賞賛
返信
1 返信

629件の閲覧回数
RichTestardi
Senior Contributor II

When you stop the external clock (or even before), can you examine SYNSR and see where the MCU thinks the clock is coming from?  Is EXTOSC always set, and OCOSC/CRYOSC clear?  There is loss of clock circuitry (SYNCR->LOCEN), to automatically switch clocks or reset the MCU, but the data sheet seems to imply is disabled when running off an external clock.  See Reference Manual section 6.8.4.8.

 

0 件の賞賛
返信