Design the state diagram for a simple controller

Assignment Help Basic Computer Science
Reference no: EM131387472

(Word Problem) You are to design the state diagram for a simple controller that turns a lamp on and off at preset times. This is a timed light switch. The finite state machine has six inputs: Reset, Set Time, SetLiteOn, SetLiteOff, Run, and Advance. The first five inputs are generated by a five-position rotary switch that advances through Reset, Set Time, SetLiteOn, SetLiteOff, and Run (the inputs are mutually exclusive and are encountered in the specified order). The Advance input is a push-button. See Figure Ex. 10.6(a). When you hold the Advance button down (asserted), the displayed time rapidly advances through 24 hours, a minute at a time.

The typical operation of the timed light switch works as follows. It is normally in Run mode. The lamp is turned on when-ever the internal clock matches an internal register (LiteOn) that holds the time to turn the light on. The lamp is turned off whenever the internal clock matches an internal register fLiteOffl that holds the time to turn the light off.

To operate the timed light switch, you must set the current time, then the time on, and finally the time off. This is accomplished as follows. The mode switch is moved from Run to Reset. This causes an internal timer register to be loaded with the time 08:00. Next, the mode switch is moved to the SetTime position. When-ever Advance is pushed and held down, the timer register rapidly cycles through the minutes and hours. You "pulse" or single step

Advance as it gets close to the current time. When you move the switch to SetLiteOn, the current value in the timer register over-writes the value in the internal clock register. At the same time, the internal timer register is reset to 08:00. By working with the Advance button, you set a new time at which the light is to be turned on. Moving the mode switch to SetLiteOff causes the LiteOn register to be overwritten by the timer register.

Using the Advance button once again, you advance the timer from its last value (the "lights on" time) to the desired time to turn the lights off. Once the mode switch is set to Run, the timed light switch goes into its running mode. The data path associated with the timed light switch is shown in Figure Ex. 10.6(b). The block diagram is given in Figure Ex. 10.6(c). Complete a Moore state diagram for the timed light-switch controller.

1581_99578621-bf5b-4c43-8a16-6ba9d3afd457.png

895_951fee71-0b7b-45b5-be43-c6fb1929384f.png

 

Reference no: EM131387472

Questions Cloud

How many times during next three months will cash balance : FIN620- There is a constant rate of cash disbursement and no cash receipts during the month. Based on the firm's current practice, how many times during the next 3 months will the cash balance be replenished?
Corporate charter for purpose of conducting retail business : They operated the business for three years, after which time it became insolvent. The creditors desire to hold the members personally and individually liable. May they do so?
With regard to global warming policy : With regard to global warming policy, describe, in a short paragraph, the importance of: Discounted costs and benefits. b) Public goods.
?rms outputs in nash equilibrium of cournots model : An industry contains two ?rms, one whose cost function is C(q1) = 30q1 and another whose cost function is C(q2) = q2 2. The inverse demand function for the ?rms’ output is P = 120 − Q, where Q is the total output. What are the ?rms’ outputs in a Nash..
Design the state diagram for a simple controller : The lamp is turned off whenever the internal clock matches an internal register fLiteOffl that holds the time to turn the light off.
Manufacturing plant has the capacity to produce : A manufacturing plant has the capacity to produce 1,000,000 widgets per year. Each sells for $20. The variable cost to produce each widget is $5 per widget. Annual operating costs are fixed regardless of production volume, and are $2,000,000 per year..
How do the programs work to reduce juvenile crime : How do the programs work to reduce juvenile crime? What are the programs' major goals, objectives, and core beliefs? How do community-based programs address issues related to juvenile gang violence? What is the role of law enforcement in the progr..
What are growers rights if any against arthur : The business subsequently failed. What are Grower's rights, if any, against Arthur, Barbara, Carl, and Debra as individuals?
What is rositas unlevered cost of capital : FINC620- Rosita's has a cost of equity of 13.8% and a pre-tax cost of debt of 8.5%. The debt-equity ratio is .60 and the tax rate is .34. What is Rosita's unlevered cost of capital?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a logic program that prints all the natural numbers

Assuming that the natural numbers are represented using 0 for zero and s(n) for the successor of n and using a primitive write(x) that writes the term t, write a logic program that prints all the natural numbers.

  Create a drawing using the symbol library

After you have completed the library of symbols and details, begin a new drawing and insert the blocks. Create a drawing using the symbol library.

  Software usability and navigation

Using your favorite search engine, perform a web search on the terms "software usability and navigation"

  Ensure that the program does not have a memory leak

Ensure that the program does not have a memory leak.

  Display the converted expression

Spaces between tokens are allowed but not required. The program will convert the expression to postfix (RPN) form and display the converted expression.

  Calculate the probability of rejection of a part

In the production of a certain type of plastic part, the diameter of the part is expected to be 5.00 mm with a standard deviation of 0.05 mm. If the part diameter deviates by more than two standard deviations, it will be rejected.

  Finding the standard deviations by hand

Without doing any calculations, decide which set has the larger standard deviation and explain why. Then check by finding the standard deviations by hand.

  Perform the usual operations on circle

You should be able to perform the usual operations on the circle, such as setting the radius, printing the radius, calculating and printing the area and circumference.

  What your research aims to do

You need to describe what your research aims to do, the objectives that need to be meet to get to the final aim, the context and technical background of the work and also why it is important that this work is carried out.

  Problem regarding the ethical breaches

One of the ethical branches is patient confidentiality. Conduct an Internet search to identify recommendations for how patient confidentiality should be handled. In your assignment, include the following:

  Unionized environment in a health care facility

What do you see as the pros and cons of a unionized environment in a health care facility? How can the right to collective bargaining by employees and the mandate to provide care to patients be reconciled?

  How the algorithm needs to be modified

Show how the algorithm needs to be modified when only n /2 processes are available.

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