Regarding Timer value calculation

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

Regarding Timer value calculation

1,035件の閲覧回数
maharajsankaran
Contributor I

Hi All,

We are using Freescale MPC5534.

we nedd to configure the timer for 2ms.

crystal value=16Mhz.we didn't get that formula.

Please share us, if any one known.

Thanks in advance.

ラベル(1)
0 件の賞賛
返信
1 返信

883件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hi,

the general formula is next:  comparation value = (oscilator_frequency / prescaler) * time.

In your case it could be for example:  (16 000 000 / 256)*0.002 = 125 = 7DH.

Martin

0 件の賞賛
返信