Page 1 of 1

Capture on CCP1

Posted: Sun Jan 13, 2013 3:08 pm
by waligator
Hi all,

To begin to understand the function capture of the timer 1, I would at every rising edge on pin CCP1, my variable is incremented.

I will post the beginning of pragramme but never increment the counter.

Someone could help me.

Steve

Re: Capture on CCP1

Posted: Sun Jan 13, 2013 9:30 pm
by Enamul
Hi
I have tried couple of months back the capture function and can't mange to sort that. Not was quite sure why but will have a look again and let you know.

Re: Capture on CCP1

Posted: Mon Jan 14, 2013 11:28 am
by waligator
Yes, it must be a bad command. I can not find it. Precision, I use a 16F876A.

Steve

Re: Capture on CCP1

Posted: Mon Jan 14, 2013 5:51 pm
by waligator
It's good, it works. :D I made a syntax error when the macro "capture" is called. :oops:

The problem is fixed and it works well as a pulse counter.

Re: Capture on CCP1

Posted: Sun Mar 17, 2013 10:18 am
by ProtonLaser
Yes but hae you tried capturing the timer value???

Re: Capture on CCP1

Posted: Sun Mar 17, 2013 6:30 pm
by medelec35
ProtonLaser wrote:Yes but hae you tried capturing the timer value???
I have done that for you in this post:
http://www.matrixmultimedia.com/mmforum ... 052#p46225

Martin

Re: Capture on CCP1

Posted: Mon Mar 18, 2013 8:06 am
by ProtonLaser
Hi Martin,
Yes i tryed it and it did not capture the timers values.

**Tryed the version you proposed, worked great!!

Thank you again Martin for giving a solution!!

I will give the timer option again and come back.


Abel