Re: how to read time and set timer in PIC 16F7X microcontrol
Hi,
Before i answer, i want to say that im very happy that people are using my line with the help me button...
To your question, i would sugest you read how to use the TMR ( timers ) function. it will do exacly what you want, and it will work in the background so it want load your main program. to start the time, you just enable to clock, and it will start counting. to see what value it is, you can either stop it and read, or you can just read the TMR register. to start over, you just clear the register and start over.
You can do lots of things with the timers in the PIC so it all depands what you want to masure and how long it is, micro, mili or seconds. Each type needs a diffrent way of thinking...
Here is the link to microchip web site App Note for the timers. Have a look there, im usre you will gain much from reading one of the files...
**broken link removed**
And here is the original line:
If you found my answer useful, click on the button that says Helped me. ( NO points will be taken from you! )
Good luck.