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 Display Modes
Old 31st October 2008, 07:57 PM   #1 (permalink)
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, 09:10 PM   #2 (permalink)
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, 09:14 PM   #3 (permalink)
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, 09:17 PM   #4 (permalink)
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, 09:20 PM   #5 (permalink)
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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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



All times are GMT. The time now is 08:59 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker