You are on page 1of 16

|   


 

O 




O
""#›  (" #›

›   


›  
  !

 "#$ %


&$   
$  '!

› % &$ 


   ((!"%&'
      )*)'
! |   

|    
    
      
 
ß    

ß    

 

         
     



 
ß    
|
 
   |  
  
BLOCK DIAGRAM

Ô 
"$ &

 
 @ 

@
 
@ 4 

p 


' '
m mm 
 m  m 

m 
"
 

m #

m  #

m $  

()*(''('#+#,()

     %   


    %%   & 


        '

''
%"  
 
"
  %     

(  %  


  

    

     % % 

 
      %   
"    %   %

 @ @ @  @ @  @

Microprocessors and microcontrollers are widely used


in embedded systems products.

p  
    .

A microcontroller has a CPU in addition to a fixed


amount of RAM, ROM, I/O ports and a timer
embedded all on a single chip.

The fixed amount of on-chip ROM, RAM and number


of I/O ports in microcontrollers makes them ideal for
many applications in which cost and space are critical.
@ @ | @


    

    %     





 |   - 

  @ | @

   ! ! !""#$


%&# %#'

%(! %#  !& )! # 


%%%""   * +% **  

!  !%  %,+ 


%*",!""'

-!!" " !


 %%!"#"
|@@@ | @

   ! ! !+% **%#'

 &# + %% @""'

! * ./0)/1/23% @ 


""
%  )! %  %4*"%""
!" "
Ô 
     
''
› 
V  V

V ] V

V V 
V
VVV V

@  @ 5

!4  *  %  "

 @ 

 @ 

 ".637 "./3@ 


TMOD Register:

TMOD is dedicated solely to the two timers (T0 & T1).

The timer mode SFR is used to configure the mode of operation of each of the two
timers.

Using this SFR your program may configure each timer to be a 16-bit timer, or 13
bit timer, 8-bit auto reload timer,
or two separate timers.

It can consider as two duplicate 4-bit registers, each of which controls the action of
one of the timers.
! " @ %* %"% *!+ 
+! !!&68/ + "4'

!  @+!!!*!+ "   


44%% *  % !! "!
*+%'%%  )" "%# %
  @'

!# %* !+ +! !!(


4*  %)+! !+!(
4'
# #  
-  ! 49+! 
44 *|"    "4 @ 0:0
!""  "% "#+4
%'

;  !%  $ !%*%#%  


 *"!4'

! 49 (4* *  ! ! 


 %  , "
! !  4"4"'