Period measurement

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Period measurement

1,328 次查看
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,121 次查看
Anand_Raju
Contributor I

Thanks Visu.

0 项奖励
回复

1,121 次查看
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 项奖励
回复