EE 352

Homework Assignment 1
Due Jan. 29, 2000

Note: You may do the following using linux if you prefer.

  1. Compile and run the program hello.c in Getting Started with the DJGPP Compiler using gcc.

  2. Compile and run a program to write the data register and read the status register of the parallel port on your PC. Use a jumper to connect pins 2-10, 3-11, 4-12, 5-13 and 6-15. Verify that the status changes as you write different numbers to the data register.
    1. What do you read from the status register when you write a 0x00 to the data register?
    2. What do you read from the status register when you write a 0xff to the data register?


Bill Rison, <rison@ee.nmt.edu >