Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
08.601 MBSD Module 2

08.601 MBSD Module 2

|Views: 161|Likes:
Published by Assini Hussain

More info:

Published by: Assini Hussain on Apr 17, 2012
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





08.601 Microcontroller Based System Design
Module 2Programming Timer /Counter
Two 16 bit timers
SFRs for programming timer/counter are:1.TCON2.TMOD3.T0 (as TH0 and TL0)4.T1 (as TH1 and TL1)TCON
To control timer/counter operation
Byte and Bit addressable, where 88H is byte address and 88H (TCON.0), 89H(TCON.1), 8AH (TCON.2), …….are bit address
Bit orientation:
Department of ECE, VKCETPage
08.601 Microcontroller Based System Design
Timer Mode control SFR 
8-bit register, byte address is 89H
Bit orientation:
Upper nibble for timer 1 and lower nibble for timer 08051 Timer modes:1. Mode 1 programming
16 bit timer/counter 
TLx hold lower byte of timer/count value (00H to FFH)
THx hold upper byte of timer/count value (00H to FFH)
Allows 0000H to FFFFH values
TLx acts as 8-bit prescaler 
Department of ECE, VKCETPage
08.601 Microcontroller Based System Design
Steps to program:1.Select timer by TMOD register 2.Load THx and TLx values3.Run timer by setting TRx bit in TCON4.Overflows occur TFx becomes high and monitoring it get the delay by timer or countvalue5.Stop the timer by TRx = 06.Clear the flag TFx = 07.For continuous operation repeat the process from loading values to THx and TLx
Department of ECE, VKCETPage

Activity (5)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Daniel Hashimoto liked this
Muhammad Sajeer liked this
Vikas Ravi liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->