SlideShare a Scribd company logo
1 of 34
Download to read offline
Group: 86
Topic: 5
Group Members:
Akarsh Mishra
Jemin Mehul Mehta
Mayank Mathur
Sudhanshu Singh
Aditya Deven Mishra
Aditya Rathi
Block Diagram
State
Diagram
Sample Input Output
INPUT
OUTPUT
Additional Functionalities
1. Start/Stop button (to enable/disable the alarm)
2. Snooze button having options for snoozing for one minute or for two minutes.
3. Option for the user to switch between a 12 hour and 24-hour format with display.
4. A seven segment display to aid the user to set the alarm in the digital alarm clock.
5. The alarm clock has the provision to ring every day at the time set by the user.
6. The user can input the alarm time normally and does not need to have any knowledge of
binary or BCD numbers ( user friendly alarm clock)
Working Of The DIgital Alarm Clock(Group 86)
A 2 Hz (signal at every 1 second interval) square wave from an astable multivibrator is
applied as a clock signal to the S0 counter consisting of four negative edge triggered T-FF
which counts from 0 to 9 after every second. After 9, the values reset back to 0 for which an
AND gate has been used to check for the maximum values and reset it as it crosses the max
value. Whenever S0 (4 bits) crosses the 9th count, a clock signal has to be generated. This
clock signal is applied to the S1 counter consisting of three T-FF which counts from 0 to 5.
After it reaches 5 and S0 becomes 9, the next pulse will make both S1 & S0 zero.
When S1 (3 bits) becomes 000, a clock pulse is generated and applied onto the negative edge
triggered M0 T-FF. This is extended to M1 just like S1. And similar to S1 when M1 (also 3 bits)
becomes 000, a clock pulse is applied to H0 and then the output of H0 is applied to H1. Both H0
and H1 are 4 bit counters consisting of 4 JK-FF’s counting from 0 to 23.Similarly the input for the
days counter( two counters each containing 4 JK-FF’s) count the total number of days from 0 to
30.The hours and days counters are essentially a two decade decimal BCD counter. Like the S0
and S1 counters , the M0,M1,H0,H1,D0,D1 are also reset at appropriate times. As these
counters count in BCD, so BCD to seven segment converters have been used
appropriately(these components have been instantiated(present in a different Logisim file) and
their functionality has been used in the main circuit)
Each S0, S1, M0 & M1 counter's data is converted to 7 segment display format by IC 7448
and applied to a 7 segment display. So, the 7 segment displays show the time as it is stored
in the flip-flops.
The alarm module uses a magnitude comparator to compare the user defined time to the
time of the alarm clock( minutes , hours and days are compared). The time entered by the
user is shown in the 7 segment display and this input is connected to the magnitude
comparator. As explained earlier, the first 6 bits are dedicated to H0 and H1, the next 3 bits
are M1 and the last 4 bits are for M0. The magnitude comparator is connected to the input
entered by the user and the clock. The output of the equality output from the magnitude
comparator is given to the AND gate connected, along with the Start/Stop button. The input
from the Start/Stop switch(used to enable/disable the alarm clock) is given to the AND gate
which is then connected to the LED(Alarm). The Snooze function uses an adder which can
add 1 or 2 minutes as desired by the user to the M0 and extend the time for the alarm to
ring. When the times match the LED lights up for a minute if not switched off or snoozed.
At a point of time in digital electronics, it was realized that you needed to remember past values to
calculate new ones. For example, take our very own counters. You need to know what the previous
number was, so that you can count to the next one. Nly if you knew the previous number is 2 you can
say the next number is 3 right?
By definition, a circuit whose present output depends on present input and past output is called a
sequential circuit. Counters are sequential circuits. So a way had to be found to remember the previous
state. This led to the development of a latch. A latch is a simple circuit that “latches on” or stores 1 or 0.
As seen from the circuit, a latch has two NOR (complement of OR) gates the output of one given as input
of another. One output is always the complement of the other Q and Q’ It will soon be clear why this is
so and also why the inputs are named R & S. Assuming that you know the truth of NOR, let’s see how
the latch works.
Let’s assume the initial input of R and S is 1 and 0 respectively. If any one of the inputs for NOR is 1, the
output is 0. Since R is 1 in 1st
NOR, Q has to be zero. This Q is fed to the 2nd
NOR. Now since both Q and S
are zero, the output Q’ is 1 (notice Q and Q’ are complementary).
Now let’s make R = 0 so both R and S are 0. Since Q is 0 and S=0, output of 2nd
NOR is 1 and this Q’ = 1
makes the output of 1st
NOR 0 causing Q = 0. So both Q and Q’ “retain” their previous value or their
values haven’t changed. Now let’s make S= 1 and R=0.
Since S=1, Q’ becomes 0. Now Q’ and R are 0 making Q = 1. Now let’s again make both R and S zero. But
now Q = 1 and this causes Q’ to be 0. Since both Q’ and R are zero, Q = 1. Again the values are retained.
So when S = 1 & R = 0, Q = 1. This is called set because you are setting the value to 1. In digital
vocabulary, set means 1 and reset means 0. Again when S = 0 & R = 1, Q =0. This is reset because the
value of Q is resetted to 0. Q and Q’ are noticeably complimentary.
But what happens when both R and S are 1. This condition if forbidden because, such a state gives an
undesirable output.
This is called a latch based on NOR. A similar one with NAND looks like this
The working is almost similar only the inputs are different, you have complement of S and R which
means when S = 0 it is set state and when R = 0 as reset state.
When you want to change Q, you apply suitable values to S and R. But as long as b
Q’ don’t change (memory). Last assigned value of Q and Q’ are retained.
So the characteristics table for this latch is:
NOR latch
S R Q Q’
0 0 (memory)
1 0 1 0
0 1 0 1
1 1 (forbidden)
So, we have our basic memory device. But it isn’t good enough because S=0, R=0 has to be maintained
for memor condition. Any immediate change in S and R affects Q and Q’. We want the l
values only when we need them. This is where a clock signal comes. A clocked latch is called a flip
When the clock is ‘0’, irrespective of S & R, the 1
latch has S’, R‘ inputs. So if S’ and R’ are 1 (the notations are so used for our easier understanding only) it
is memory state. So as long as clock is low any change in S and R will not affect Q and Q’. This is clocking
concept.
The working is almost similar only the inputs are different, you have complement of S and R which
means when S = 0 it is set state and when R = 0 as reset state.
When you want to change Q, you apply suitable values to S and R. But as long as both S & R are 0, Q and
Q’ don’t change (memory). Last assigned value of Q and Q’ are retained.
So the characteristics table for this latch is:
NAND latch
S’ R’ Q
0 0 (forbidden)
(set) 1 0 0
(reset) 0 1 1
(forbidden) 1 1 (memory)
So, we have our basic memory device. But it isn’t good enough because S=0, R=0 has to be maintained
for memor condition. Any immediate change in S and R affects Q and Q’. We want the l
values only when we need them. This is where a clock signal comes. A clocked latch is called a flip
When the clock is ‘0’, irrespective of S & R, the 1st
and 2nd
NAND gates output 1. Remember a NAND
and R’ are 1 (the notations are so used for our easier understanding only) it
is memory state. So as long as clock is low any change in S and R will not affect Q and Q’. This is clocking
The working is almost similar only the inputs are different, you have complement of S and R which
oth S & R are 0, Q and
Q’
(forbidden)
1 (reset)
0 (set)
(memory)
So, we have our basic memory device. But it isn’t good enough because S=0, R=0 has to be maintained
for memor condition. Any immediate change in S and R affects Q and Q’. We want the latch to change
values only when we need them. This is where a clock signal comes. A clocked latch is called a flip-flop.
NAND gates output 1. Remember a NAND
and R’ are 1 (the notations are so used for our easier understanding only) it
is memory state. So as long as clock is low any change in S and R will not affect Q and Q’. This is clocking
When clock is high, the 1st
and 2nd
NAND output are complements of S and R and the usual functions of
NAND latch is carried out. This is called a S R flip flop.
S R Flip Flop
Clk S R Q Q’
0 X X (memory) X – don’t care or whatever value
1 0 0 (memory)
1 0 1 0 1
1 1 0 1 0
1 1 1 (forbidden)
Even after clocking the forbidden condition exists. Now let us analyze the characteristics table of S R flip-
flop. We don’t want both S = 1 and R = 1 because it is forbidden. We don’t need S = 0 and R = 0, because
we can use the clock for memory purposes. The essential required conditions are when S = 1 and R = 0
or S = 0 and R = 1. In both the essential conditions S and R are complements. So, if S and R are made to
be complements then we can effectively remove both the forbidden condition and the redundant
condition. So we take one input ‘D’ and we apply the same to ‘S’ and we complement D and apply that
to R.
And this is called the D flip flop. D stands for delay or data. It is more suited to be called Data flip flop
because, as long as the clock is high the value of D is obtained at Q. If clock is low the value of D doesn’t
affect Q and Q has the last retained value.
D flip flop
Clock D Q Q’
0 X (memory)
1 1 1 0
1 0 0 1
One should actually talk about JK flip flops before T flip flops but to talk about JK flip flop concepts one
has to also talk about master-slave configuration etc all of which is out of the scope of this article. For
sake of blunt knowledge, a T flip lop is a JK flip flop in which J = K. For now, the characteristics table of T
flip flop will be more than sufficient.
T flip flop
Clock T Q Q’
0 X (memory)
1 0 Q Q’ (no change)
1 1 Q’ Q (both outputs are complemented)
So when T = 1, Q is complemented. This complementing action is called toggling and so toggle – T flip
flop.
One more basic concept is triggering or how does the clock enable or disable the flip flop.
We saw that as long as clock remains high changes can occur. Such a change is called level triggering.
The change is triggered as long as the clock is in logic high level.
More complicated flip flop circuits have been developed (especially for high frequency applications) that
respond only to changes in the clock signal i.e., change from low to high or high to low. If a flip flop is
triggered by a change in clock from low to high it is called positive edge trigger. If a flip flop is triggered
by a change in clock from high to low it is called negative edge trigger.
Commercially available D flip-flop IC 7474 is positive edge triggered. Commercially available JK flip-flop
IC 7476 is negative edge triggered. Following are representations of the triggering often seen in IC
datasheets etc.
This might be useful to understand flip flop’s uses.
Billing (Group 86)
​
IC Number Function of the IC Number of IC’s Used
7448 BCD to 7 segment converter 12
7408 Quadra AND circuit 14
7404 Six Inverter circuit 2
7476 Dual JK Flip flop 17
7483 4 bit Full Adder 3
74HC688D 8 bit Magnitude comparator 2
7214 LED Matrix 3
7432 Dual OR Gate 7
ASSUMPTIONS:-
1) All gate delays are neglected
2) It is assumed that the clock signal frequency remains a constant
3) All components used are not defective and working properly
ADDITIONAL FUNCTIONALITY: -
1. Start/Stop button (to enable/disable the alarm)
2. Snooze button having options for snoozing for one minute or for two minutes.
3. Option for the user to switch between a 12 hour and 24-hour format with display.
4. A seven segment display to aid the user to set the alarm in the digital alarm clock.
5. The alarm clock has the provision to ring every day at the time set by the user.
6. The user can input the alarm time normally and does not need to have any knowledge of
binary or BCD numbers ( user friendly alarm clock)
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment
Digital alarm clock- Digital design- Design assignment

More Related Content

What's hot (20)

Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature Controller
 
Bcd to 7 segment display
Bcd to 7 segment displayBcd to 7 segment display
Bcd to 7 segment display
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
8051 ch9-950217
8051 ch9-9502178051 ch9-950217
8051 ch9-950217
 
PART -1 TRAFFIC LIGHT CONTROL USING 8085
PART -1 TRAFFIC LIGHT CONTROL USING 8085PART -1 TRAFFIC LIGHT CONTROL USING 8085
PART -1 TRAFFIC LIGHT CONTROL USING 8085
 
8155 GPPI
8155 GPPI8155 GPPI
8155 GPPI
 
Ccp
CcpCcp
Ccp
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
8085 architecture
8085 architecture8085 architecture
8085 architecture
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registers
 
8051 Timer
8051 Timer8051 Timer
8051 Timer
 
Operational amplifier UA741
Operational amplifier UA741Operational amplifier UA741
Operational amplifier UA741
 
8051 assembly programming
8051 assembly programming8051 assembly programming
8051 assembly programming
 
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 
EE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab ManuelEE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab Manuel
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 
8051 Inturrpt
8051 Inturrpt8051 Inturrpt
8051 Inturrpt
 
8085 lab
8085 lab8085 lab
8085 lab
 

Similar to Digital alarm clock- Digital design- Design assignment

Similar to Digital alarm clock- Digital design- Design assignment (20)

12 latches
12 latches12 latches
12 latches
 
Sequential
SequentialSequential
Sequential
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Lec42
Lec42Lec42
Lec42
 
Logic design alexander1 christopher
Logic design alexander1  christopherLogic design alexander1  christopher
Logic design alexander1 christopher
 
Flipflop r012
Flipflop   r012Flipflop   r012
Flipflop r012
 
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.ppt
 
B T0064
B T0064B T0064
B T0064
 
Bt0064
Bt0064Bt0064
Bt0064
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
Lec43
Lec43Lec43
Lec43
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
 
Flip Flops DLD
Flip Flops DLDFlip Flops DLD
Flip Flops DLD
 
ELN Presentation Add more information to your upload.pptx
ELN Presentation Add more information to your upload.pptxELN Presentation Add more information to your upload.pptx
ELN Presentation Add more information to your upload.pptx
 
lec7.ppt
lec7.pptlec7.ppt
lec7.ppt
 
Sequential Logic
Sequential LogicSequential Logic
Sequential Logic
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 

Recently uploaded

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 

Recently uploaded (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 

Digital alarm clock- Digital design- Design assignment

  • 1. Group: 86 Topic: 5 Group Members: Akarsh Mishra Jemin Mehul Mehta Mayank Mathur Sudhanshu Singh Aditya Deven Mishra Aditya Rathi
  • 5. Additional Functionalities 1. Start/Stop button (to enable/disable the alarm) 2. Snooze button having options for snoozing for one minute or for two minutes. 3. Option for the user to switch between a 12 hour and 24-hour format with display. 4. A seven segment display to aid the user to set the alarm in the digital alarm clock. 5. The alarm clock has the provision to ring every day at the time set by the user. 6. The user can input the alarm time normally and does not need to have any knowledge of binary or BCD numbers ( user friendly alarm clock)
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17. Working Of The DIgital Alarm Clock(Group 86) A 2 Hz (signal at every 1 second interval) square wave from an astable multivibrator is applied as a clock signal to the S0 counter consisting of four negative edge triggered T-FF which counts from 0 to 9 after every second. After 9, the values reset back to 0 for which an AND gate has been used to check for the maximum values and reset it as it crosses the max value. Whenever S0 (4 bits) crosses the 9th count, a clock signal has to be generated. This clock signal is applied to the S1 counter consisting of three T-FF which counts from 0 to 5. After it reaches 5 and S0 becomes 9, the next pulse will make both S1 & S0 zero. When S1 (3 bits) becomes 000, a clock pulse is generated and applied onto the negative edge triggered M0 T-FF. This is extended to M1 just like S1. And similar to S1 when M1 (also 3 bits) becomes 000, a clock pulse is applied to H0 and then the output of H0 is applied to H1. Both H0 and H1 are 4 bit counters consisting of 4 JK-FF’s counting from 0 to 23.Similarly the input for the days counter( two counters each containing 4 JK-FF’s) count the total number of days from 0 to 30.The hours and days counters are essentially a two decade decimal BCD counter. Like the S0 and S1 counters , the M0,M1,H0,H1,D0,D1 are also reset at appropriate times. As these counters count in BCD, so BCD to seven segment converters have been used appropriately(these components have been instantiated(present in a different Logisim file) and their functionality has been used in the main circuit) Each S0, S1, M0 & M1 counter's data is converted to 7 segment display format by IC 7448 and applied to a 7 segment display. So, the 7 segment displays show the time as it is stored in the flip-flops. The alarm module uses a magnitude comparator to compare the user defined time to the time of the alarm clock( minutes , hours and days are compared). The time entered by the user is shown in the 7 segment display and this input is connected to the magnitude comparator. As explained earlier, the first 6 bits are dedicated to H0 and H1, the next 3 bits are M1 and the last 4 bits are for M0. The magnitude comparator is connected to the input entered by the user and the clock. The output of the equality output from the magnitude comparator is given to the AND gate connected, along with the Start/Stop button. The input from the Start/Stop switch(used to enable/disable the alarm clock) is given to the AND gate which is then connected to the LED(Alarm). The Snooze function uses an adder which can add 1 or 2 minutes as desired by the user to the M0 and extend the time for the alarm to ring. When the times match the LED lights up for a minute if not switched off or snoozed.
  • 18. At a point of time in digital electronics, it was realized that you needed to remember past values to calculate new ones. For example, take our very own counters. You need to know what the previous number was, so that you can count to the next one. Nly if you knew the previous number is 2 you can say the next number is 3 right? By definition, a circuit whose present output depends on present input and past output is called a sequential circuit. Counters are sequential circuits. So a way had to be found to remember the previous state. This led to the development of a latch. A latch is a simple circuit that “latches on” or stores 1 or 0. As seen from the circuit, a latch has two NOR (complement of OR) gates the output of one given as input of another. One output is always the complement of the other Q and Q’ It will soon be clear why this is so and also why the inputs are named R & S. Assuming that you know the truth of NOR, let’s see how the latch works. Let’s assume the initial input of R and S is 1 and 0 respectively. If any one of the inputs for NOR is 1, the output is 0. Since R is 1 in 1st NOR, Q has to be zero. This Q is fed to the 2nd NOR. Now since both Q and S are zero, the output Q’ is 1 (notice Q and Q’ are complementary). Now let’s make R = 0 so both R and S are 0. Since Q is 0 and S=0, output of 2nd NOR is 1 and this Q’ = 1 makes the output of 1st NOR 0 causing Q = 0. So both Q and Q’ “retain” their previous value or their values haven’t changed. Now let’s make S= 1 and R=0. Since S=1, Q’ becomes 0. Now Q’ and R are 0 making Q = 1. Now let’s again make both R and S zero. But now Q = 1 and this causes Q’ to be 0. Since both Q’ and R are zero, Q = 1. Again the values are retained. So when S = 1 & R = 0, Q = 1. This is called set because you are setting the value to 1. In digital vocabulary, set means 1 and reset means 0. Again when S = 0 & R = 1, Q =0. This is reset because the value of Q is resetted to 0. Q and Q’ are noticeably complimentary. But what happens when both R and S are 1. This condition if forbidden because, such a state gives an undesirable output. This is called a latch based on NOR. A similar one with NAND looks like this
  • 19. The working is almost similar only the inputs are different, you have complement of S and R which means when S = 0 it is set state and when R = 0 as reset state. When you want to change Q, you apply suitable values to S and R. But as long as b Q’ don’t change (memory). Last assigned value of Q and Q’ are retained. So the characteristics table for this latch is: NOR latch S R Q Q’ 0 0 (memory) 1 0 1 0 0 1 0 1 1 1 (forbidden) So, we have our basic memory device. But it isn’t good enough because S=0, R=0 has to be maintained for memor condition. Any immediate change in S and R affects Q and Q’. We want the l values only when we need them. This is where a clock signal comes. A clocked latch is called a flip When the clock is ‘0’, irrespective of S & R, the 1 latch has S’, R‘ inputs. So if S’ and R’ are 1 (the notations are so used for our easier understanding only) it is memory state. So as long as clock is low any change in S and R will not affect Q and Q’. This is clocking concept. The working is almost similar only the inputs are different, you have complement of S and R which means when S = 0 it is set state and when R = 0 as reset state. When you want to change Q, you apply suitable values to S and R. But as long as both S & R are 0, Q and Q’ don’t change (memory). Last assigned value of Q and Q’ are retained. So the characteristics table for this latch is: NAND latch S’ R’ Q 0 0 (forbidden) (set) 1 0 0 (reset) 0 1 1 (forbidden) 1 1 (memory) So, we have our basic memory device. But it isn’t good enough because S=0, R=0 has to be maintained for memor condition. Any immediate change in S and R affects Q and Q’. We want the l values only when we need them. This is where a clock signal comes. A clocked latch is called a flip When the clock is ‘0’, irrespective of S & R, the 1st and 2nd NAND gates output 1. Remember a NAND and R’ are 1 (the notations are so used for our easier understanding only) it is memory state. So as long as clock is low any change in S and R will not affect Q and Q’. This is clocking The working is almost similar only the inputs are different, you have complement of S and R which oth S & R are 0, Q and Q’ (forbidden) 1 (reset) 0 (set) (memory) So, we have our basic memory device. But it isn’t good enough because S=0, R=0 has to be maintained for memor condition. Any immediate change in S and R affects Q and Q’. We want the latch to change values only when we need them. This is where a clock signal comes. A clocked latch is called a flip-flop. NAND gates output 1. Remember a NAND and R’ are 1 (the notations are so used for our easier understanding only) it is memory state. So as long as clock is low any change in S and R will not affect Q and Q’. This is clocking
  • 20. When clock is high, the 1st and 2nd NAND output are complements of S and R and the usual functions of NAND latch is carried out. This is called a S R flip flop. S R Flip Flop Clk S R Q Q’ 0 X X (memory) X – don’t care or whatever value 1 0 0 (memory) 1 0 1 0 1 1 1 0 1 0 1 1 1 (forbidden) Even after clocking the forbidden condition exists. Now let us analyze the characteristics table of S R flip- flop. We don’t want both S = 1 and R = 1 because it is forbidden. We don’t need S = 0 and R = 0, because we can use the clock for memory purposes. The essential required conditions are when S = 1 and R = 0 or S = 0 and R = 1. In both the essential conditions S and R are complements. So, if S and R are made to be complements then we can effectively remove both the forbidden condition and the redundant condition. So we take one input ‘D’ and we apply the same to ‘S’ and we complement D and apply that to R. And this is called the D flip flop. D stands for delay or data. It is more suited to be called Data flip flop because, as long as the clock is high the value of D is obtained at Q. If clock is low the value of D doesn’t affect Q and Q has the last retained value. D flip flop Clock D Q Q’ 0 X (memory) 1 1 1 0 1 0 0 1
  • 21. One should actually talk about JK flip flops before T flip flops but to talk about JK flip flop concepts one has to also talk about master-slave configuration etc all of which is out of the scope of this article. For sake of blunt knowledge, a T flip lop is a JK flip flop in which J = K. For now, the characteristics table of T flip flop will be more than sufficient. T flip flop Clock T Q Q’ 0 X (memory) 1 0 Q Q’ (no change) 1 1 Q’ Q (both outputs are complemented) So when T = 1, Q is complemented. This complementing action is called toggling and so toggle – T flip flop. One more basic concept is triggering or how does the clock enable or disable the flip flop. We saw that as long as clock remains high changes can occur. Such a change is called level triggering. The change is triggered as long as the clock is in logic high level. More complicated flip flop circuits have been developed (especially for high frequency applications) that respond only to changes in the clock signal i.e., change from low to high or high to low. If a flip flop is triggered by a change in clock from low to high it is called positive edge trigger. If a flip flop is triggered by a change in clock from high to low it is called negative edge trigger. Commercially available D flip-flop IC 7474 is positive edge triggered. Commercially available JK flip-flop IC 7476 is negative edge triggered. Following are representations of the triggering often seen in IC datasheets etc.
  • 22. This might be useful to understand flip flop’s uses.
  • 23. Billing (Group 86) ​ IC Number Function of the IC Number of IC’s Used 7448 BCD to 7 segment converter 12 7408 Quadra AND circuit 14 7404 Six Inverter circuit 2 7476 Dual JK Flip flop 17 7483 4 bit Full Adder 3 74HC688D 8 bit Magnitude comparator 2 7214 LED Matrix 3 7432 Dual OR Gate 7
  • 24. ASSUMPTIONS:- 1) All gate delays are neglected 2) It is assumed that the clock signal frequency remains a constant 3) All components used are not defective and working properly ADDITIONAL FUNCTIONALITY: - 1. Start/Stop button (to enable/disable the alarm) 2. Snooze button having options for snoozing for one minute or for two minutes. 3. Option for the user to switch between a 12 hour and 24-hour format with display. 4. A seven segment display to aid the user to set the alarm in the digital alarm clock. 5. The alarm clock has the provision to ring every day at the time set by the user. 6. The user can input the alarm time normally and does not need to have any knowledge of binary or BCD numbers ( user friendly alarm clock)