Appendix

 

Code Listing

 

The following codes are available for download:

1)      Main Program Code for use with ATmega32

2)      Sound Program Code for use with ATmega163

 

Schematics

 

Overall Hardware Setup:

 

Sega Controller Pinout:

Diagram of Pin Layout
Pin Settings
Pin Select: low Select: high
--- ------------ ------------
1 joypad up joypad up
2 joypad down joypad down
3 logic low joypad left
4 logic low joypad right
6 button A button B
9 start button button C

Pin Connection
--- ---------------
5 Power: +5 Volts
7 Select signal
8 Power: Ground

 

Costs Breakdown

 

Item

Quantity

Costs

Atmel ATmega163 and ATmega32 MCU

1

$  0.00

STK-500 Development Board

1

0.00

STK-200 Development Board

1

0.00

Jensen Television

1

0.00

Sega Genesis 3-button Controller (eBay)

2

13.00

DB-9 Female Connector (Radio Shack)

2

2.98

Various Wires, etc.

 

0.00

TOTAL

 

$15.98

 

Tasks Distribution

  1. Project Proposal – Derek, Minwen
  2. Parts research and purchasing - Derek
  3. Algorithm Research - Minwen
  4. Menu Structure Design – Minwen
  5. Game Logic Design – Derek
  6. Hardware Setup – Minwen
  7. Soldering - Derek
  8. Coding and Documentation – Derek
  9. Testing and Debugging – Derek and Minwen
  10. Project Documentation – Derek and Minwen