E21 Digital Logic Design Lab #2

Due Thursday, 1 October, 1998

Purpose

The purpose of this lab is to familiarize you with some common MSI components, designing state machines, and designing and building sequential circuits.

Problem Description

We will continue to work on the theme of a microwave oven for this lab. This time we will design a simple state machine that interacts with the user and counts down the cooking time if the user turns on the microwave.

For this lab, we will simplify the interface. The user can push one of the following buttons: Beverage (2 min), Popcorn (5 min), or punch a number from 1-5 (no "cook" input this time). The user can also push Clear, which resets the time and turns off the microwave if it's on. Note, you can represent these eight inputs as 3 bits since only one can be selected at a time. Be sure to specify your mapping from inputs to bits in your report.

Your microwave control circuit should put the appropriate cooking time into a set of counters upon receiving one of the above inputs. Then it should enter a cook state where it waits for all of the counters to reach zero. Upon reaching the end of the countdown, the microwave should go back to the off state. Thus, your microwave state machine should have only two states: on and off.

Your circuit should light up an LED whenever the microwave is on.

Note: you should be able to set up this circuit using 5 variables: 3 to represent the keypad inputs, one to represent the state, and 1 to represent the counters reaching zero.

Setting up

  1. Set up three 7-segment display outputs (1 digit for minutes, 2 digits for seconds). You should place these (and the accompanying 7448 chips) at the bottom of your board.

  2. Set up three 4-bit counters (1 counter for minutes, 1 for the ten's place in seconds, and 1 for the one's place in seconds) and connect their outputs to the 7448 BCD inputs. For this assignment you will need to develop logic that connects the three counters appropriately so they can count down to zero and then stop.

  3. Get a logi-cube set from Dr. Maxwell and figure out how the different elements work. If you wish, you can use the LED on the logi-cube module to indicate when the microwave is on, and you can use the logi-cube clock and switch to handle the countdown and reset buttons. Alternatively, you can use the tools and clock built-in to the proto-boards.

Writeup

As with lab 1, your writeup should include the following elements.