i cant understand precise the operation CCP1 in capture mode - i know if an event/signal ,say in rising edge is feed to RC2/CCP1 the timer will start and CCP1 capture value from Timer1 .
the thing that i cant understand is :
timer will start from what to what ? from 0 to 1! or from 1 !
the elapsed time equal to what ? the time between 0 and 1 in rising edge .
Basically, you read the selected timer on the first rising edge and save its value. Then, again you read the timer on second rising edge and save its value. Difference of the two values will tell you the time elapsed in between (depending on crystal frequency, timer mode and other settings)
Timer will start the up-count say from 0 to 255 in 8-bit mode and then roll over to 0 again.