Beruflich Dokumente
Kultur Dokumente
David Domanico
Justin Kaput
2 analog sticks
12 pressure sensitive
buttons
o
5 digital buttons
o
http://en.wikipedia.org/wiki/DualShock
http://www.gamesx.com/controldata/ps
2pad.htm
http://electronics.howstuffworks.com/pl
aystation3.htm
Pressure Sensitive
Analog Sticks
Connections
Data - controller to Playstation
MISO
Command - Playstation to controller
MOSI
Vibration - motors power line 9V
Ground - (duh)
Power - 3 - 5V
Attention - slave select
Clock - 100kHz to 500kHz
White - Unused
http://www.scribd.com/doc/86204752/Decoding-PS2-Wired-and-Wireless-Controller-for-Interfacing-With-PIC-Micro-Controller
Communication Protocol
Similar to SPI
o
Clk
Command
(MOSI)
Attention
(Slave Select)
Acknowledge
Data
(MISO)
http://nearfuturelaboratory.com/2008/06/19/plays
tation2-logic-analysis/
Communication Protocol
First three bytes Header
Following bytes Mode Dependent
Digital 2 bytes
Analog 18 bytes
Config - # bytes varies
Communication Protocol
First byte
Command:
0x01 (indicates new packet)
Data:
0xFF
Second byte
Command:
Main command (poll or configure controller)
Data:
Device mode
Upper 4 bits: mode(4 = digital, 7 = analog, F = config)
Lower 4 bits: how many 16 bit words follow the header
Third Byte
Command:
0x00
Data:
0x5A
Clk
Command
Attention
(Slave Select)
Acknowledge
Data
FF
79
5A
http://nearfuturelaboratory.com/2008/06/19/plays
tation2-logic-analysis/
Communication Protocol
Important Commands
Polling
10
6-21
(only in analog mode)
Command
0x01
0x42
0x00
0x00
Data
0xFF
Mode
Dependent
0x5A
Digital bits
Data Byte #2
o
o
Analog Bytes
Clk
Command
Attention
(Slave Select)
Acknowledge
Data
Byte #
6-21
(only in analog mode)
Command
0x01
0x42
0x00
0x00
Data
0xFF
Mode
0x5A
Digital bits
http://nearfuturelaboratory.com/2008/06/19/plays
tation2-logic-analysis/
Analog Bytes
12
Digital Mode
o
o
Bit
Select
L3
R3
Start
Up
Right
Down
Left
L2
R2
L1
R1
Triangle
Square
Analog Mode
o
Byte
Button
RX
RY
8
LX
9
LY
10
Right
11
12
Left
Up
13
Down
14
15
16
17
18
L1
19
R1
20
L2
21
R2
13
6-21
(only in analog
mode)
Command
0x01
0x43
0x00
Enter/Exit
0x00
0x00
Data
0xFF
Mode
dependent
0x5A
Digital bits
Analog Bytes
Command Byte #4
0x00 - exit config mode
0x01 - enter config mode
14
6-9
Command
0x01
0x44
0x00
D/A
Lock?
0x00
Data
0xFF
0xF3
0x5A
Config
Command Byte #5
Config
15
6-9
Command
0x01
0x4D
0x00
0x00
0x01
0xFF
Data
0xFF
0xF3
0x5A
Current Mapping
Questions?
17
Sources
http://store.curiousinventor.com/guides/PS2/
http://www.gamesx.com/controldata/ps2pad.htm
http://en.wikipedia.org/wiki/DualShock
http://www.scribd.com/doc/86204752/Decoding-PS2-Wired-and-Wireless-Controller-for-Interfacing-With-PIC-Micr
o-Controller
18