]> sigrok.org Git - sigrok-dumps.git/blame - spi/nes_gamepad/nes_gamepad_generated/README
avr_isp: add dump for ATmega328/P
[sigrok-dumps.git] / spi / nes_gamepad / nes_gamepad_generated / README
CommitLineData
09c8882c 1-------------------------------------------------------------------------------
2NES Gamepad signalling
3-------------------------------------------------------------------------------
4
5Synthetically generated NES gamepad signalling.
6
7SPI settings are always:
8
9Clock polarity = 1
10Clock phase = 0
11Bit order = msb-first
12Word size = 8
13
14Chip-select is not used and must not be assigned to any channel.
15
16 ___
17 GND |o \
18 CUP |o o| VCC
19 OUT 0 |o o| D3
20 D1 |o o| D4
21 -----
22NES Gamepad Connector
23
24VCC - Power 5V
25GND - Ground
26CUP - Shift register clock (CLK)
27OUT 0 - Shift register latch (optional)
28D1 - Gamepad data (MISO)
29D3 - Data (unused)
30D4 - Data (unused)
31
32Data pins D3 and D4 are not used by the standard game pad but by special
33controllers like the Nintento Zapper light gun.
34
35
36Logic analyzer setup
37--------------------
38
39The logic analyzer used was a DreamSourceLab DSLogic Plus (at 10 MHz):
40
41 Probe NES gamepad
42 -----------------------
43 0 OUT 0
44 1 D1
45 2 CUP
46
47
48a.sr
49----
50
51Button press of button 'A'.
52
53MISO bits: 01111111
54MISO data: 7F
55Button States: A
56
57
58b.sr
59----
60
61Button press of button 'B'.
62
63MISO bits: 10111111
64MISO data: BF
65Button States: B
66
67
68select.sr
69---------
70
71Button press of button 'Select'.
72
73MISO bits: 11011111
74MISO data: DF
75Button States: Select
76
77
78start.sr
79--------
80
81Button press of button 'Start'.
82
83MISO bits: 11101111
84MISO data: EF
85Button States: Start
86
87
88north.sr
89--------
90
91Button press of button 'North'.
92
93MISO bits: 11110111
94MISO data: F7
95Button States: North
96
97
98south.sr
99--------
100
101Button press of button 'South'.
102
103MISO bits: 11111011
104MISO data: FB
105Button States: South
106
107
108west.sr
109-------
110
111Button press of button 'West'.
112
113MISO bits: 11111101
114MISO data: FD
115Button States: West
116
117
118east.sr
119-------
120
121Button press of button 'East'.
122
123MISO bits: 11111110
124MISO data: FE
125Button States: East
126
127
128a_b.sr
129------
130
131Button press of button 'A' and 'B'.
132
133MISO bits: 00111111
134MISO data: 3F
135Button States: A + B
136
137
138b_select_west.sr
139----------------
140
141Button press of button 'B' and 'Select' and 'West'.
142
143MISO bits: 10011101
144MISO data: 9D
145Button States: B + Select + West
146
147
148no_button.sr
149------------
150
151Controller connected but no button pressed.
152
153MISO bits: 11111111
154MISO data: FF
155Button States: No button is pressed
156
157
158unconnected.sr
159--------------
160
161Gamepad not connected.
162
163MISO bits: 00000000
164MISO data: 00
165Button States: Gamepad is not connected.