[SOLVED] Timer contents then restarted after a stop.

Status
Not open for further replies.

shubham kumar

Member level 3
Joined
Sep 11, 2014
Messages
59
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Location
bangalore
Visit site
Activity points
511
Hi
I am using PIC18F452 and MikroC as compiler.

I have a question regarding timer.
That if the timer is started using command TMR1ON_bit=1; then if I stop the timer ( TMR1ON_bit=0) and again start the timer (TMR1ON_bit=1) then the timer will start from the value it contains at the time it was stopped or it will start from the default value which was assigned to TMRH and TMRL at the time of initialization.

PS: I tried to see the values on LCD but realized later that LCD (or any) commands itself take some time, so unable to watch via programming :bang: .
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…