Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

calculate timer 1 mode 2

Status
Not open for further replies.

DaveMason

New Member
How do you calculate delay for Timer 1 Mode 2 for 5 seconds.
Machine cycle is 1.085 microsecond
Crystal Freq is 11.0592

thanks
 
I figure you are using a 8051 variant? The maximum delay produced by a single timer in 8051 is 71ms approx.Thats for mode 1. But you are using mode 2 which can have a maximum delay of approx .277 ms or something like that. You can use a counter to repeat this again and again but that would be too large. Other wise you get a 60 HZ clock pulse from a 555 timer. Program the counter in the 8051 to count 60 pulses(use autoreload mode) since you will repeat it for five seconds(counter). And then do what ever you want.If you want to ask anything else then ask away.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top