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