||border=0 align=right width=1 cellpadding=4 || Attach:controlpad.jpg || || Master System Control Pad (code 3020) || || Attach:controlstick.jpg || || Master System Control Stick (code 3060) || !!Overview The joypad is the standard peripheral supplied with (or built in to) the Sega 8-bit games systems. It is compatible with Atari, C64 and, to a slightly lesser extent, Mega Drive/Genesis hardware. Sega also released a digital joystick using the same interface, and some third-party controllers were also released. !!Connections ||border=1 ||! Pin ||! Function || || Up || Up || || Down || Down || || Left || Left || || Right || Right || || TL || Button 1 || || TR || Button 2 || || TH || Not connected || The TR line is configured as an input to the system. Because the controller ports are active-low, a @@1@@ in the [[PeripheralPorts|corresponding port register]] signifies "not pressed" and a @@0@@ "pressed". This is achieved in hardware by leaving lines unconnected when not pressed, and connecting them to Gnd when pressed. !!Layout Button 1 is to the left of button 2. Button 1 is also labelled "START" on the Master System, and is the expected input when a game prompts the user to "press start", although a better interface (for software running on the system) would be to accept either button.