Well this is the first time I wanna use them. The thing is that I wanna do something every hour in the pic...so every hour it has to stop and do another thing for instance light on a led and then do that again one hour after. Is there a way to do it using timers or do I have to use a counter or something like that ?
Thank you so much for the help! (And btw my english is not that good so I hope I made my point ;)
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
Posted: Wed Oct 19, 2011 8:37 am
hi,
Look at the compiler help section, search for set up timer
or search here in the forum how to set up a timer.
No timer will *time* for an hour... thats too long. However
you can set up a time for 0.5 Seconds (for example).
And then count how many times it overflows. When it overflows 7200(3600 seconds) times... an hour has passed.
You can set the PIC to sleep in between timer overflows and save power!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum