Due 24 November, 1998
Overall Comments
The purpose of this lab is to introduce you to parallel port
communication between a digital logic system and a PC. Digital systems
that communicate with PCs through the parallel port include printers,
scanners, hard drives, tape drives, and network adapters. Parallel
port communication is standardized in IEEE standard 1284. A good
source for information about the parallel port is the Parallel Port Center.
You may work by yourself, in pairs, or in trios for this lab.
You will be using your 7160ELC84-10 Altera chip for this lab. You
should get an 84-pin adapter from Dr. Maxwell, and locate the Altera
data book, since you will need it in order to hook up your chip
correctly.
Tasks
-
Write a VHDL program that accepts 8-bit characters from the computer
using the standard "centronics" mode. You can use these C examples to read/write data from/to the
parallel port.
Your digital circuit should then hold the character value in a
register until it receives another character. The 8 bits in the
register should also be outputs of the digital system. Use these
outputs to drive the 8 LEDs on the breadboard.
-
Write a VHDL program that sends 8-bits of data to the computer using
the "nibble" mode. Use the code examples above to design the
computer end of this system.
Test this code by having the Altera chip read eight inputs
(e.g. from the DIP switches) and send them to the computer when you
press a button. It should not be constantly sending the values,
although it can hold the data lines.
-
The extension for this lab is to do something interesting with your
ability to communicate between the computer and your digital
circuit. For example...
-
Program the computer to play a game with you through the digital
circuit.
-
Have the digital system write to an LCD device (schematics and
parts available from Dr. Maxwell)
-
Modify your traffic light lab so that L1 and L2 are inputs from
the computer, and then show how you can change the behavior of
your traffic light.
Writeup
Convey what you have done in a clear and concise manner, and in
sufficient detail that someone else could replicate your work.
Your lab writeup should include the following:
- An abstract of what you did in the lab (200 words at most).
- A detailed description of the design process.
- A complete description of your final system. This should be a
printout of either the graphical circuit design and/or the VHDL code,
and any C code you wrote for the lab, along with documentation on how
it works and how to use it.
- A section on any problems you encountered and how you solved
them.
- A section discussing whether your circuit worked or not and how
you tested it to find this out. Any simulator printouts you have
should go here.
- A brief section on what you learned