E21 Digital System Design Lab #4

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

  1. 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.

  2. 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.

  3. The extension for this lab is to do something interesting with your ability to communicate between the computer and your digital circuit. For example...

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: