Design a complex state machine

Assignment Help Electrical Engineering
Reference no: EM132155090

Assignment -

This is your second design assignment. This assignment requires you to design a complex state machine.

You are designing a digital alarm clock. There are various designs you can attempt. More complex designs are worth more marks than simpler designs.

The basic clock displays the time in 12 hour mode. From 01:00:00 to 12:59:59. A more advanced clock allows the user to select whether the time is displayed in 12 or 24 hour mode. This is selected by use of a switch, which is high for 12 hour mode, and low for 24 hour mode. Changing between 12 and 24 hour mode does not require the time subsequently displayed to be valid, however, on the next hour change the time must become a valid time. If the hour is adjusted whilst invalid it must become valid on the next change. Valid 24 hour times are 00:00:00 to 23:59:59.

The full clock takes the advanced clock and allows you to set the time, and easily adjust for daylight savings.

The alarm clock extends the full clock with an alarm. The alarm can be set for any valid time. When the alarm is triggered the alarm signals for one minute and then resets. There is a silence button for the alarm which will silence the alarm, and an on-off button for the alarm which will prohibit the alarm from triggering.

The supreme clock includes a calendar unit. It will allow the date to be set, and will count the days through the year. At 02:00 on the 1st of October the hour will also increment, leading to 01:59:59->02:00:00->03:00:01, and at 03:00 on the 1st of April the hour will be decremented, leading to the sequence on the display of 02:59:59->03:00:00->02:00:01. The supreme clock may, or may not include leap years of some variant. Finally, the supreme clock does not need to handle changes between calendars, but can assume the Gregorian calendar in perpetuity.

Requirements: You are to design a complex state machine. This state machine will encompass multiple simpler state machines. At a minimum you will need six simple state machines, one each for: seconds units, seconds tens, minutes units, minutes tens, hours units, hours tens. You are provided with a one second clock pulse that will be triggering a state transition for your system.

For each simple state machine you need to provide the state transition table, as well as the equations for that state machine. Provide the interconnections between the simple state machines that cause this to be a complex state machine.

The minimum inputs your system is provided with are:

hsi

Hour Set

When true increments the hour count

msi

Minute Set

When true increments the minute count

sci

Second Clear

When true forces the seconds count to zero

aoi

Alarm On

When true the alarm is enables, when false the alarm does not trigger

asi

Alarm Silence

When true silences the alarm if it has been triggered

ahi

Alarm Hour Set

When true increments the alarm hour count

ami

Alarm Minute Set

When true increments the alarm minute count

dso

Daylight Savings Off

When true decrements the hour count

The general outputs your system should provide are:

suo0-3

Second Units

Seconds display, counts from 0-9

sto0-2

Second Tens

Seconds display, counts from 0-5

muo0-3

Minute Units

Minutes display, counts from 0-9

mto0-2

Minute Tens

Minutes display, counts from 0-5

huo0-3

Hour Units

Hours display, counts from 0-9

hto0-1

Hour Tens

Hours display, counts from 0-1 or 0-2

h24

Hours 24 Mode

When true indicates that 24 hour mode is active

Pm

AM/PM Display

When true indicates that the time is PM

amuo0-3

Alarm Minute Units

Alarm Minutes display, counts from 0-9

amto0-2

Alarm Minute Tens

Alarm Minutes display, counts from 0-5

ahuo0-3

Alarm Hour Units

Alarm Hours display, counts from 0-9

ahto0-1

Alarm Hour Tens

Alarm Hours display, counts from 0-1 or 0-2

alarm

Alarm triggered

When true indicates that alarm is triggered.

day0-4

Day count

Binary value of the day

mon0-3

Month Count

Binary value of the month

yearXX

Year counter

Binary value of the current year

For each output provide its definition in a state transition table as well as its equation.

Reference no: EM132155090

Questions Cloud

Organizational behavior modification to motivate someone : Describe a situation in which you used organizational behavior modification to motivate someone's behavior. What specifically did you do?
Different generations have different needs and expectations : Different generations have different needs and expectations regarding work and careers. This impacts how to motivate different age cohorts in the work place.
Difference between a marketing plan and a business plan : What is the difference between a marketing plan and a business plan? How do the two compare to each other and how do they differ?
Explain the nature of the operations and product portfolion : Write the introduction ;explain the nature of the operations and product portfolion of the Procter and gamble company ?
Design a complex state machine : ELEC242 Assignment - This is your second design assignment. This assignment requires you to design a complex state machine
Shape labor practices today : Define two landmark Supreme Court rulings that have helped shape labor practices today.
Enabling statutes are also sometimes called : Enabling statutes are also sometimes called. Core measures required to demonstrate meaningful use involve which of the following standards?
History and evolution of saudi arabian healthcare : Investigate new proposals or policy implementations that have impacted this evolution.
Identify social connection an cohesion : Identify social connection an cohesion(groups and teams). Again asking to take to the role of leaders plays in this area.

Reviews

len2155090

10/30/2018 10:44:33 PM

Marking Rubric: Fail (0-49) - A submission without accurate equations, with no Karnaugh maps or correctly formatted equations will be considered of unacceptable quality. ALL equations must be typeset, for the Karnaugh maps they must be typeset originally, and groupings can be done by hand. Karnaugh maps that are not clear and legible will reduce the total marks awarded. Pass (50-64) - The pass level is a clock design that will display the time in 12 hour mode. It displays at least hours and minutes, and may display seconds. More credit will be given if the clock can display the hours as either 12 hour or 24 hour time.

len2155090

10/30/2018 10:44:16 PM

Credit (65-74) - The credit level clock has a simple mechanism for setting the time, as well as a simple mechanism for adjusting for daylight savings. Distinction (75-84) - The distinction level includes all the features of the credit level as well as an alarm. The alarm can be set for any valid minute. When the alarm is triggered it will signal for one minute. There is a silence input, and an on-off selector. High Distinction (85-100) - For a high distinction the clock must be extended to include dates and an automatic setting of daylight savings on the dates specified above.

Write a Review

Electrical Engineering Questions & Answers

  Find the power loss in the armature circuit

A generator produces an armature current of 50 A when generating an emf of 400 V.

  Evaluate the following integrals

Use Rayleigh's energy theorem, or some other procedure, evaluate the following integrals. Assume the constants identified by a in the integrals equal to 1

  Develop the pseudo-code

Develop the pseudo-code below for a program that will retrieve 2 bytes (NUM1 and NUM2) from memory, determine which is closest to the numeric value 50, and indicate the result by setting a variable named "CLOSEST" to 1 (if 1st byte is closest) or ..

  Find the variance of the sample mean of random numbers

a) Find the sample mean. b)If the calculator produces three digit random numbers that are uniformly distributed between 0.000 and 0.999, find the variance of the sample mean.

  Design a dc-coupled one-op-amp circuit that will amplify

Design a dc-coupled one-op-amp circuit that will amplify the -100 mV to +50mV input range to have the maximal gain possible without exceeding the typical guarantee linear output range.

  Level of government expenditure

Assuming perfect capital mobility, examine the effect that an increase in the level of Government expenditure has for the domestic economy.

  What are some of the benefits of smart grid application

In the presentation, "IT and Smart Grid" the presenter, Dr. Peter Will, provided several definitions of "smart-grid". Provide your definition of smart-grid the way you understand it. What are some of the benefits of "smart grid" application

  Find the mean and standard deviation of error measurements

Errors in measuring the arrival time of a wave front from an acoustic source can sometimes be modeled by a beta distribution. (See Perruzzi and Hilliard, J. Acoustical Society of America,1984) Suppose these errors have a beta distribution with a =..

  Find the minimum product-of-sums for the function

a) Using K-Map, find the minimum product-of-sums for the following function. Circle the term on the map and write the result in algebraic form. b) Draw the block diagram in NOR-NOR.

  What is potential difference between initial and final point

Two parallel plates separated by 0.20 m are connected to a 12volt battery. An electron released from rest at a location 0.10 mfrom the negative plate. when the electron arrives at a distance0.050 m from the positive plate

  Determine the ground state energy of an exciton in si

In addition, the distance between the components of the exciton is always such that there are intervening semiconductor atoms. Thus e in the Bohr formulation must also be replaced by Ks e0, where Ksis the semiconductor dielectric constant.

  What will be the transient current injected into the product

A large metal object has 10 pF of capacitance to an adjacent product in a plastic enclosure. A discharge occurs to the metal object, and its voltage rises to 4000 V in 1 ns. What will be the transient current injected into the product?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd