COSC 4290 Embedded Systems

Spring 2014

Homework Assignment #1

On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?"
... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
-- Charles Babbage
Due: Wednesday, January 29th, 11:00am CST
Submit: Turn your C source file using the turnin command on the Systems Lab machines.
Expect to present a demonstration of your hardware during lab time.
Work is to be completed individually.

Switched Input

Following the examples given in the textbook, construct a set of 8 inputs to your mbed board using a DIP switch. Your code should be able to read the state of all 8 switches into a single byte using the bus object construct provided by the mbed runtime.

Output

Following the examples given in the textbook, construct output circuitry that will allow your mbed board to drive two seven-segment LED displays (NAR261) with hexadecimal digits 00 through FF.

Your board should output whatever value is selected by the DIP switches to the seven-segment display.


Back
[Revised 2014 Jan 27 10:45 DWB]