Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
If you're wanting just a simple 5 minute delay, it's easier to use a simple delay loop - and the PICList has a generator that will produce 16F type code for any delay you want. I'm not sure if you have to make any changes for the 18F series or not?.
If for some reason you want to use a timer?, timer2 is usually a better bet than timer0 (at least on the 16F series, again I can't comment on the 18F).
But regardless of which you might use, you can't get anywhere near 5 minutes from the timer alone. It's usual to use the timer to generate regular interrupts (every 1mS or 10mS perhaps?), then the interrupt routine keeps a count of the number of interrupts that have occurred.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.