6
EE 316 Computer EE 316 Computer Engineering Junior Engineering Junior Lab Lab Project 2 Project 2 Digital Yahtzee Digital Yahtzee

EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee

Embed Size (px)

Citation preview

Page 1: EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee

EE 316 Computer EE 316 Computer Engineering Junior Engineering Junior LabLab

Project 2Project 2

Digital YahtzeeDigital Yahtzee

Page 2: EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee

TopicsTopics KeypadKeypad Windows Graphical User InterfaceWindows Graphical User Interface Parallel Port HardwareParallel Port Hardware Parallel Port SoftwareParallel Port Software

Page 3: EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee

KeypadKeypad

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

Page 4: EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee

Graphical User Graphical User interfaceinterface Windows XP compatible software Windows XP compatible software Use MFCUse MFC

– user should have no need to ask how user should have no need to ask how to play the game to play the game

– put all instructions needed on the put all instructions needed on the displaydisplay

Page 5: EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee

Parallel Port HardwareParallel 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.

Page 6: EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee

Paralle Port SoftwareParalle Port Software Must be able to control the PC's parallel portMust be able to control the PC's parallel port

– See information on parallel ports in the UL-99/bin See information on parallel ports in the UL-99/bin folder in the labfolder in the lab

– Remember that the pin 13 of the DB-25 is missing on Remember that the pin 13 of the DB-25 is missing on the 24-pin header (one control output bit is missing)the 24-pin header (one control output bit is missing)

– You have to output data to the 7-segment displays.You have to output data to the 7-segment displays.– You need to send control signals to the keypad to You need to send control signals to the keypad to

scan for key press.scan for key press.– You should be able to read data on the status port to You should be able to read data on the status port to

detect keypad pressdetect keypad press– Using the control output and the status input, the Using the control output and the status input, the

software should be able to recognize which key has software should be able to recognize which key has been pressed on the keypad.been pressed on the keypad.