![]() |
|
|||||||
| 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. |
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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? Last edited by Lanz; 02-13-2010 at 03:13 PM. |
|
#2
|
||||
|
||||
|
First, you have to post your circuit if someone will help you.
__________________
>> Troubleshooting is an art << http://www.youtube.com/watch?v=hC7KYbFBPHA http://www.youtube.com/watch?v=StNJlRTWs9k http://www.youtube.com/watch?v=j-4h3l9O4fc http://www.youtube.com/watch?v=E0jZJ...eature=related |
|
#3
|
||||
|
||||
|
Post your schematic.
|
|
#4
|
|||
|
|||
|
The circuit will work i think.
I just simply draw it. |
|
#5
|
|||
|
|||
|
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. |
|
| Bookmarks |
| Tags |
| at89s51, countdown, timer |
| Thread Tools | |
| Display Modes | |
|
|
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 |