Period measurement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Visu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.