Period measurement

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Period measurement

683 Views
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

Labels (1)
0 Kudos
2 Replies

476 Views
Anand_Raju
Contributor I

Thanks Visu.

0 Kudos

476 Views
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 Kudos