All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Embedded Systems and Microcontrollers

Notices

Embedded Systems and Microcontrollers Discussion forum for projects and working with embedded systems and microcontrollers (FPGAs, PICs, AVRs). Get help with hardware issues and embedded programming.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 02-12-2010, 04:57 PM
Lanz Lanz is offline
Senior Member
 
Join Date: Oct 2008
Location: Malaysia
Posts: 140
Default Countdown Timer using AT89S51

Hi guys.
Im new to assembly programming.
I want to do a countdown timer using AT89S51.
So,i need u guys help.

Here how the hardware goes:
1)Double 7 segment to show the countdown time.
2)A buzzer that will beep once a second from the countdown starts till ends.
3)A switch to start the timer and a switch to Reset the timer.
4)2 switch to set the duration(A switch for x10 increment and a switch for x1 increment)
5)A switch to select between minutes and seconds.
6)2 outputs to relays.
7)An indicator to show minutes or seconds(LED or 7 segment)

And if possible,i want the timer or the 7 segment to go to the sleep mode after the countdown ends.All switches is push button type.

I dont know how to write the program in ASM.So anyone can help me with the programming?


Attached Images
File Type: jpg TIMER.jpg (58.3 KB, 29 views)

Last edited by Lanz; 02-13-2010 at 03:13 PM.
Reply With Quote
  #2  
Old 02-12-2010, 05:01 PM
mik3's Avatar
mik3 mik3 is offline
Senior Member
 
Join Date: Feb 2008
Location: Cyprus, but now in UK (GMT+0)
Posts: 4,313
Blog Entries: 9
Default

First, you have to post your circuit if someone will help you.
Reply With Quote
  #3  
Old 02-12-2010, 05:02 PM
blueroomelectronics's Avatar
blueroomelectronics blueroomelectronics is offline
Senior Member
 
Join Date: Jul 2007
Location: Toronto, Canada
Posts: 718
Default

Post your schematic.
Reply With Quote
  #4  
Old 02-13-2010, 03:14 PM
Lanz Lanz is offline
Senior Member
 
Join Date: Oct 2008
Location: Malaysia
Posts: 140
Default

The circuit will work i think.
I just simply draw it.
Reply With Quote
  #5  
Old 02-17-2010, 01:12 PM
hspalm hspalm is offline
Junior Member
 
Join Date: Feb 2010
Location: Oslo, Norway
Posts: 44
Default

You have to refer to the at89s manual for timer functions, as the timer functions (especially programmed with assembly) is to difficult to learn by scratch trough a forum thread. By the way, your ULN transistor array is placed reversed? The digital/low current signal goes from left to right. Also, why use a an array of 8 darlington transistors, when you can use much cheaper 2x regular darlington transistors?

And I don't think your buzzer will buzz by digital signal alone, you should amplify it through one of the 6 free lines on the ULN.
Reply With Quote
Reply   Post New Thread

Bookmarks

Tags
, ,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PIC programming LCD countdown timer bluebrakes Embedded Systems and Microcontrollers 30 02-05-2010 03:44 AM
7-segment LED H:M:S Countdown Timer advice needed brianLED The Projects Forum 6 10-15-2009 03:11 PM
Two stage timer. Need advice. Airasolt The Projects Forum 2 09-10-2009 12:15 PM
Countdown Timer programming help (pic16f628) eng.aymanaly Programmer's Corner 2 08-22-2009 12:25 PM
Project: Generic Countdown Timer avtanski The Projects Collection 2 06-09-2009 06:18 AM


All times are GMT. The time now is 10:29 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License. Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.