Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
Bahman Mohammadhoseini
bobx

posted on 2011/09/28 08:44:01 AM CEST

Timers (Real time clock)

Time measuring with Timer1 of PIC 18F8722.

Hello.I want to active and ON a timer like TIMER1 of PIC 18F8722 in my main program and whenever I applied a positive going pulse input to pin RB2/INT2 of that PIC, then the TIMER1 turns off immidiately and calculate the time interval
passed between TIMER1turned ON and turned OFF in usec ,msec or sec. .The range of time is from 1usec up to 1 sec.
Would you please give me the above code?

Thanks,

USER Comments

Bahman Mohammadhoseini
bobx

posted on 2011/09/28 12:14:11 PM CEST

Hello.I forgot to write my PIC clock;I used a 20MHZ crystal;XTAL=20MHZ and
want to measure 1usec up to 1sec.

Thanks,

  • Rating:
0
No Abuse Reported

Do you want to report abuse comment ID: 118 in "Time measuring with Timer1 of PIC 18F8722." request.