Chip's terminology is not the same as other suppliers, so that can make smart pins harder to follow.
I have not purchased a P2 yet, but after trying to read the data sheet,
I am not certain the P2 provides an easy way to perform Input Capture.
A simple tachometer that is capable of recording the time period of one
revolution and converts that to rpm is at the core of all my potential
A simple example is my ignition test stand spinning at the low speed of
2307 rpm. The period is 26ms, and because it is set up with a hall sensor
25ms is high, and 1ms is low.
Normally I count from falling edge to falling edge (26ms @2307rpm).
So many of the P2 pin states talk about accumulating clock cycles within
a hi or low state, or events within a period.
Pin State %10_000 looks promising, but there is no mention of falling
Is there an easy way to perform input capture?
Can input capture be done with an interrupt?
On some micro-controllers DMA seems to be helpful. Is a Streamer
helpful for input capture on the P2?
Can the clock speed be reduced to 1mhz on the input capture pin?