TIMER FOR PIC 16f877a using mikroC

MaxHeadRoom

Joined Jul 18, 2013
30,802
Most PIC's have a T1OSC input where you can connect a common 32.768Khz clock crystal, and use T1 timer to roll over at exactly every 1 sec.
Max.
 

ErnieM

Joined Apr 24, 2011
8,415
hi. I am a new user of PIC Micro-Controller.

My questions are:
Can we use timer of PIC for 5 Seconds?
Sure. No matter what kind of timer you actually pick, no matter what interval is it's max time you can always count timer intervals.

Example: if yor max interval is .1 second, count 50 of them for 5 seconds.

I've used a PIC to make a timer that can accurately (easily 2%) time 25 minutes; it could do more but that is all the customer required. That one uses a 1 mS timer as I recall.
 
Top