Input devices: Difference between revisions
From NESdev Wiki
Jump to navigationJump to search
Rainwarrior (talk | contribs) (→Hardware: note that Mouse has more than one type) |
(→Hardware: a few more, some off of Tepples's birthday wishlist @ http://forums.nesdev.com/viewtopic.php?p=175591#p175591) |
||
Line 18: | Line 18: | ||
** [[Arkanoid controller]] | ** [[Arkanoid controller]] | ||
** [[Family BASIC Keyboard]] | ** [[Family BASIC Keyboard]] | ||
** [[Four | ** [[Four Score|Four Score/NES Satellite]] four-player adapters | ||
** [[Power Pad]] | ** [[Power Pad]] | ||
** [[Standard controller]] | ** [[Standard controller]] | ||
** [[Zapper]] | ** [[Zapper]] lightgun | ||
** [[Oeka Kids tablet]] | ** [[Oeka Kids tablet]] | ||
** [[Miracle Piano]] | ** [[Miracle Piano]] | ||
Line 29: | Line 29: | ||
** [[Mouse]] (SNES Mouse, Subor Mouse) | ** [[Mouse]] (SNES Mouse, Subor Mouse) | ||
** [[Mahjong]] | ** [[Mahjong]] | ||
** [[Doremikko Keyboard]] | |||
** [[Coconuts Pachinko]] | |||
=== Other I/O devices === | === Other I/O devices === |
Revision as of 07:38, 26 August 2016
The NES has two general-purpose controller ports on the front of the console, as well as a (rarely used) 48-pin expansion port underneath.
The Famicom's standard controllers are hardwired to the front of the unit, and a special 15-pin expansion port is commonly used for third-party controllers. The AV Famicom, however, features detachable controllers using the same ports as the NES.
The NES and Famicom have a set of I/O ports used for controllers and other peripherals, consisting of the following:
- One output port, 3 bits wide, accessible by writing the bottom 3 bits of $4016.
- The values latched by $4016/write appear on the OUT0-OUT2 output pins of the 2A03/07, where OUT0 is routed to the controller ports and OUT0-OUT2 to the expansion port on the NES.
- Two input ports, each 5 bits wide, accessible by reading the bottom 5 bits of $4016 and $4017. Reading $4016 and $4017 activates the /OE1 and /OE2 signals, respectively, which are routed to the controller ports and the expansion port.
- On the NES, only D0, D3, and D4 are connected to both controller ports, while all of D0-D4 are connected to the expansion port.
- On the original Famicom, the two ports differ: $4016 D0 and D2 and $4017 D0 are permanently connected to both controllers, while $4016 D1 and all of $4017's D0-D4 are connected to the expansion port.
- On the AV Famicom, only D0 is connected to the controller ports. The expansion port is unchanged.
Programmer's reference
Hardware
- Controller port pinout
- Controllers
- Arkanoid controller
- Family BASIC Keyboard
- Four Score/NES Satellite four-player adapters
- Power Pad
- Standard controller
- Zapper lightgun
- Oeka Kids tablet
- Miracle Piano
- RacerMate Bicycle
- Power Glove
- U-Force
- Mouse (SNES Mouse, Subor Mouse)
- Mahjong
- Doremikko Keyboard
- Coconuts Pachinko