How to use eMIOS OPWFMB mode?

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

How to use eMIOS OPWFMB mode?

2,458件の閲覧回数
atuldixit
Contributor I

I am using MPC5746C micro controller for my project development. I am referring MPC5746C reference manual and AN4830 application note. Please refer attached file for application note.

In section 2.9 various mode of eMIOS has been configured like MCB, OPWFMB, OPWMB, IPM, IPWM etc. 

I am not able understand how to counter value 2K comes? How to calculate register value of A and B can be configured as two time duty cycle is mentioned there?

タグ(1)
0 件の賞賛
返信
1 返信

2,050件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi Atul,

The basic description is wrong.

pastedImage_1.png

And does not correspond with a real implementation

 pastedImage_2.png

 pastedImage_3.png

 pastedImage_4.png

 

In OPWFMB mode B register is used to set the PWM frequency and A register to set duty cycle.

Thus for above code

Period = B * (UCPRE + 1) / channel clock = 200 * 1 / 1MHz = 200us ~ 5kHz

Pulse width = A * (UCPRE + 1) / channel clock = 20 us

BR, Petr

0 件の賞賛
返信