|
Home | Gadget | Fuzzy | Lecturer | Power | Transceiver |
||||
|
|
||||
|
Find more type here... |
||||
|
Maybe for some readers Digital Clock is a very simple
or too general, but of the Digital Clock can be learned the basic principles
of control with a microcontroller, such as seven segment display system and
the use of timers.Digital Clock is a complete circuit shown in Figure 1,
equipped with 4 pieces 7 segment LED display to show time, consisting of the
numbers tens of hours, the unit of hours, tens of minutes and unit minutes.
SW1 and SW2
button is used to adjust the time display, when SW1 is pressed on the
display clock rate will increase every second, while SW2 is used to arrange
the display digit minutes in the same way. 12 MHz crystal and capacitors C1 and C2 form a series of working frequency generator oscilator AT89C2051, this series is a series of raw, meaning oscilator form of a series has always been like this for all circuits AT89C51, except for purposes other crystal values are probably different. The combination of capacitors C3 and R8 detainees is also a series of materials, components used to form a series of 'power on reset', which means a circuit which will automatically reset every time AT89C2051 AT89C2051 start receiving electrical power source. Looking at the circuit in Figure 1, it is inexplicable how this digital clock works, because the circuit was just part-timer button and the display of time, 'Hours' is actually a program that is stored in ROM in the IC AT89C2051.
To display the time used four 7 segment LED display units are formed with the IC2 and IC3 (each IC contains two digits display), thereby to display four digits of fruit needed 28 LEDs, if the LED 28 is lit extinguished in the normal way , we need 28 switches and circuit becomes very complicated. The commonly used way is seven segment display systems that are multiplex as apparent in Figure 1, while Figure 2 shows the details of this display system.
Each display digit LED is formed by seven pieces (Light Emitting Diode),
each diode segment is marked as 'a' through 'g', an anode of the seven LEDs
that have been linked together within the IC.
Cathode segment 'a' of tens of hours numbers associated with the cathode
segment 'a' from the number hours onwards.
Similarly, the segment 'b'; segment 'c' and so forth.
Pieces of the
above program can be explained as follows: RuasJam10, RuasJam1, RuasMenit10
and RuasMenit1 a place to accommodate a combination of variable segments of
digits to be displayed, the contents of this variable will be changed in
other parts of the program in accordance with the changing times.
The contents of these variables is fed directly to Port 1 (row
2, 6, 10 and 14 at the discounted program above), for controlling the switch
section. Jam Digital Digital Clock in this project, indeed, the only form of the program. Basically, Digital Clock is counting system (counter)-story, starting from the chopping chopper minutes from 0 to 59 and overflow back to 0, and enumerators from 0 to 23 hours of chopping every time there is an abundance of counter-minute, this can be realized with following programs:...
|
||||
This material comes from any source reference and the copyright is own the author him self not this sites
Copyright 2009 (c) technosains.com All Rights Reserved