Period measurement

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

Period measurement

1,413件の閲覧回数
Anand_Raju
Contributor I

Hi all,

 

I am new to Code warrior and DSC Microcontrollers. I want to to do period measurement using MC56F8367. Could anyone direct me where can I get some tutorials on using timers. any suggestions/directions  would be of great help.

 

Thanks,

Raju

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

1,206件の閲覧回数
Anand_Raju
Contributor I

Thanks Visu.

0 件の賞賛
返信

1,206件の閲覧回数
vishaka_maithil
Contributor I

Period measurement is an input signal parameter. So, the controller you are using will have an Enhanced capture timer (ECT) for input capture of a signal. Here you can initialise this timer for capturing the signal on either rising edges or falling edges. The difference between one ising edge and the next rising edge will give you the period. But this timer has a timer interrupt and an overflow interrupt. You can capture the signal on interrupt basis and handle the overflow for long events. I suggest you read the datasheet of the controller.

Good luck.

0 件の賞賛
返信