PDA

View Full Version : 16F684 - Capture - Timing - Counting



chips123
- 4th September 2009, 00:53
I have done a bit with interrupts, but am new to the CCP feature. I am looking to use "capture" to measure a shaft revolution time. In addition, I need to count the shaft revolutions (1 pulse per rev) . Does the capture trigger an interrupt of some kind where I could increment a value to count the revolutions? I am looking for some direction. I intend to get the time capture going first, then add the counter if it is possible for both to be done. Thanks much for any input. Scott

duncan303
- 4th September 2009, 11:14
This application note from the microchip site will help you get started

http://ww1.microchip.com/downloads/en/AppNotes/00594B.PDF

and you must apply those notes with respect to the device you are using by referencing the specific datasheet.

have fun




...