60 likes | 191 Views
EE 316 Computer Engineering Junior Lab. Project 2 Digital Yahtzee. Topics. Keypad Windows Graphical User Interface Parallel Port Hardware Parallel Port Software. Keypad. We will need keys 1,2,3,4,5 to select a die for rolling any other key to initiate rolls
E N D
EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee
Topics • Keypad • Windows Graphical User Interface • Parallel Port Hardware • Parallel Port Software
Keypad • We will need keys 1,2,3,4,5 to select a die for rolling any other key to initiate rolls • To detect a key press, you need connect the status bits to the rows and use the control port to scan the columns with a single ‘0’. • A key press will a appear as a low on the status lines.
Graphical User interface • Windows XP compatible software • Use MFC • user should have no need to ask how to play the game • put all instructions needed on the display
Parallel Port Hardware • Read the power point presentation from last week. • Understand the pin assignment for the ports • We have 8-bits for the data port (input/output), 4 bits for the control port (output) and 4 bits for the status (input). • Note: Some of the bits are active high and some are active low.
Paralle Port Software • Must be able to control the PC's parallel port • See information on parallel ports in the UL-99/bin folder in the lab • Remember that the pin 13 of the DB-25 is missing on the 24-pin header (one control output bit is missing) • You have to output data to the 7-segment displays. • You need to send control signals to the keypad to scan for key press. • You should be able to read data on the status port to detect keypad press • Using the control output and the status input, the software should be able to recognize which key has been pressed on the keypad.