COUNTER/TIMER PROGRAMMING IN THE 8051
#1

[attachment=11267]
Steps to program in mode 1
1.Load the TMOD value
2.Load registers TL and TH
3.Start the timer (SETB TR0 or SETB TR1)
4.Keep monitoring the timer flag (TF)
5.Stop the timer (CLR TR0 or CLR TR1)
6.Clear the TF flag
7.Go back to step 2
Mode 2 Programming
1.Loaded value into TH (8-bit timer)
2.”SETB TR0” for timer 0 ;”SETB TR1” for timer 1
3.If TF (timer flag) = high “CLR TR0” or “CLR TR1”
4.Reloaded TL value kept by TH
Steps to program in mode 2
1.Load the TMOD value
2.Load the TH registers
3.Start the timer
4.Keep monitoring the timer flag (TF)
5.Clear the TF flag
7.Go back to step
Finding values to be loaded into the timer
Assuming XTAL =11.0592MHz from Example 9-10
1.Divide the desired time delay by 1.085μs
2.Perform 65536-n, where n is the decimal value we got in
Step 1
3.Convert the result of Step 2 to hex, where yyxx is the
initial hex value to be loaded into the timer’s registers
4.Set TL = xx and TH = yy
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: programming of ultrasonic sensor with 8051, programming of clap counter using microcontroller project, programmable timer counter, timer counter programming in 8051 ppt, timer and counter programming, 8051 counter programming ppt, 8051 counter programming,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Dynamic programming language seminar projects crazy 2 3,200 03-01-2013, 12:31 PM
Last Post: seminar details
  SEMINAR ON MICROENGINE PROGRAMMING IN NWP computer girl 0 1,009 09-06-2012, 03:09 PM
Last Post: computer girl
  UAV DevBoard: Getting Started with PIC Programming computer girl 0 1,024 09-06-2012, 11:35 AM
Last Post: computer girl
  The 8051 Microcontroller and Embedded Systems Using Assembly and C computer girl 0 1,055 04-06-2012, 05:41 PM
Last Post: computer girl
Music D Programming Language Computer Science Clay 2 2,574 14-03-2012, 02:35 PM
Last Post: seminar paper
Thumbs Down Extreme Programming (XP) computer science crazy 2 2,082 14-03-2012, 11:57 AM
Last Post: seminar paper
Photo Genetic Programming (Download Full Report And Abstract) computer science crazy 3 3,896 29-02-2012, 09:35 AM
Last Post: seminar paper
  GENETIC PROGRAMMING A SEMINAR REPORT Computer Science Clay 3 4,378 29-02-2012, 09:35 AM
Last Post: seminar paper
  Introduction to the C Programming Language seminar class 1 6,587 14-02-2012, 01:43 PM
Last Post: seminar paper
Brick Categorization of Programming Languages computer science crazy 1 1,876 14-02-2012, 01:43 PM
Last Post: seminar paper

Forum Jump: