Problem in understanding CCP1

Status
Not open for further replies.

Mohamed Slama

Member level 4
Joined
Nov 8, 2013
Messages
72
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Visit site
Activity points
443
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 .

when the timer stop ?

thank you
 

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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…