8051 timer selection

Status
Not open for further replies.

niranjan23

Member level 5
Joined
Jan 22, 2012
Messages
94
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,109
I want to know

which timer is selected when we Set TMOD=00H, that mean all the 8 bits are zero's?

And TMOD=00H at this condition which timer will take 8051 default?

And if I want to select Timer 1 in mode 0 or Timer 0 in mode 0 is that TMOD=00H is right??!! Or what will happen in this case while selection of timer in any mode??

& What 8051 CPU will take decision???
 

The TMOD or Timer Mode Special Function Register (SFR) simply determines the mode of either Timer0 or Timer1 when enabled/started.

The purpose of the TCON or Timer Control SFR is to enable/start or disable/stop either Timer0 or Timer1.

Therefore without enabling/starting Timer0 or Timer1 by setting either bits TR0 or TR1 respectfully in TCON SFR, the current value in TMOD SFR is irrelevant.

Concerning Timer Mode 0 operation:

Reference: **broken link removed**

Additional 8051 Timer Information:

Programming Timers on 8051

BigDog
 
Reactions: S.P.S

    S.P.S

    Points: 2
    Helpful Answer Positive Rating
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…