Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 31st October 2008, 08:57 PM   #1
Default cascade Timers on pic 16f877

Can any one tell me how to cascade the timers to form a minute or hour timer I know how to activate them. Can anyone please help............. THANKS
vheerdg is offline  
Old 31st October 2008, 10:10 PM   #2
Default

Just use a timer to create a regular interrupt (timer2 is probably the easiest), say every 10mS, then increment counters in software every interrupt.

It's a standard technique, and has been for decades.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 31st October 2008, 10:14 PM   #3
Default

Nigel i even forgot how to do it lol If i set a 10mS interrupt.. for 1 second i would have to

1000mS(1s) / 10mS Per Interrupt = 100 interrupts to count to 1 second right?
AtomSoft is online now  
Old 31st October 2008, 10:17 PM   #4
Default

Quote:
Originally Posted by AtomSoft View Post
Nigel i even forgot how to do it lol If i set a 10mS interrupt.. for 1 second i would have to

1000mS(1s) / 10mS Per Interrupt = 100 interrupts to count to 1 second right?
Yes, then at 1 second zero the 10mS counter and start counting up for the next second.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 31st October 2008, 10:20 PM   #5
Default

oh ok cool had to make sure its still locked in my head I seem to forget things when i dont use them.
AtomSoft is online now  
Reply

Tags
cascade, pic, timers

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Cascade Regulators or not? jnnewton Electronic Projects Design/Ideas/Reviews 5 25th October 2007 02:45 AM
bjt cascade amplifier mjz General Electronics Chat 1 5th February 2006 02:56 AM
Cascade /Cascode. lord loh. General Electronics Chat 1 25th April 2005 06:09 AM
Cascade 4026 ICs?, and what are grrr_arrghh General Electronics Chat 12 9th October 2003 10:31 PM
A CE-CC cascade amplifier ???!!! justme Electronic Projects Design/Ideas/Reviews 2 11th May 2003 12:45 AM



All times are GMT. The time now is 01:28 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker