Have a look at this document
http://ww1.microchip.com/downloads/e...doc/41214a.pdf
Have a look at this document
http://ww1.microchip.com/downloads/e...doc/41214a.pdf
Last edited by mister_e; - 21st May 2011 at 11:21. Reason: Microchip's CCP Tips& Trick pdf
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Steve, thanks for that pointer. Things are very well explained indeed. Clarified some things, but am still not out of the woods yet.
Is my understanding correct here?
Slowest speed to be measured is 300 rpm. That is 5 Hz.
Maximum time to be measured between consecutive high going edges is therefore 200,000 us.
Therefore, T1, set to a prescaler of 1:4 should read 50,000 for a frequency of 5 Hz?
This is at clock frequency of 4 MHz, Capture configured to increment every rising edge.
Okay, finally got it working. Used the Melabs example at http://melabs.com/samples/LABX2-16F877A/ccpx2.htm and things are working precisely as expected.
Thanks, guys!
Bookmarks