Japanese
HARDWARE ManualSMPC User's Manual
BackForward
SMPC User's Manual/Chapter 3 Peripheral Control

■3.3 Support peripheral data format

Here are the data formats for SMPC supported peripherals in SMPC control mode .
Please refer to each peripheral's manual for detailed data on each peripheral.

◆Mega Drive 3 button pad

Table 3.14 shows the data format of the Mega Drive 3 button pad in SMPC control mode.

Table 3.14 Mega Drive 3 Button Pad Data Format
 SMPC control code
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
 1
 1
 1
 0
 0
 0
 0
 1
 1st Data
 Right
 Left
 Down
 Up
 Start
 A TRG
 C TRG
 B TRG

Right,Left,Down,Up,Start,A TRG,C TRG,B TRG
It becomes 0 when the button is pressed.


◆Mega Drive 6 button pad

Table 3.15 shows the data format of the Mega Drive 6 button pad in SMPC control mode.

Table 3.15 Mega Drive 6 Button Pad Data Format
 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
 1
 1
 1
 0
 0
 0
 1
 0
 1st Data
 Right
 Left
 Down
 Up
 Start
 A TRG
 C TRG
 B TRG
 2nd Data
 MODE
 X TRG
 Y TRG
 Z TRG
 1
 1
 1
 1

Right,Left,Down,Up,Start,A TRG,C TRG,B TRG,MODE,X TRG,Y TRG,Z TRG
It becomes 0 when the button is pressed.


◆Shuttle mouse

Table 3.16 shows the shuttle mouse data format in SMPC control mode.

Table 3.16 Shuttle mouse data format
 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
 1
 1
 1
 0
 0
 0
 1
 1
 1st Data
 Y Over
 X Over
 Y Sign
 X Sign
 Start
 Middle
 Right
 Left
 2nd Data
 XD7
 XD6
 XD5
 XD4
 XD3
 XD2
 XD1
 XD0
 3rd Data
 YD7
 YD6
 YD5
 YD4
 YD3
 YD2
 YD1
 YD0

Y Over,X Over
0:X or Y data is valid.
1: Data is overflowing. (Over 255)

Y Sign,X Sign
0:X,Y data are positive values.
1:X,Y data are negative values.

XD7~XD0,YD7~YD0
Mouse movement amount (see table below)

Table 3.16.1 Relationship between movement amount and flag
 Actual amount of movement
 -257
or less
 -256
 -255
 ...
 -2
 -1
 +0
 +1
 +2
 ...
 +254
 +255
 +256
or more
 Values of D7 to D0
xxH 00H 01H ... FEH FFH 00H 01H 02H ... FEH FFH xxH
 Y/X Sign
1 1 1 ... 1 1 0 0 0 ... 0 0 0
 Y/X Over
1 0 0 ... 0 0 0 0 0 ... 0 0 1
Note:
・D7 to D0 are not signed. Calculate the amount of movement by paying attention to the changes in each bit of Y/XOver and Y/XSign.
- If the Y/XOver bit is set, the amount of movement (D7 to D0) will be undefined, so be sure to check this bit.

Start,Middle,Right,Left
It becomes 1 when the button is pressed.

reference
Developer's Information/STN-44 "Shuttle Mouse Supplementary Information"

◆Sega Tap

In SMPC control mode, the port status shown in Table 3.17 is output. You can connect the Mega Drive 3 Button Pad, Mega Drive 6 Button Pad, and Sega Mouse to the Sega Tap. For data on each peripheral, please refer to the respective data format.

Table 3.17 Sega Tap port status in SMPC control mode
 Multi-tap ID
 Number of connections
 0H
 4H


◆Sega Saturn standard pad

Table 3.18 shows the Sega Saturn standard pad data format in SMPC control mode.

Table 3.18 Saturn standard putt data format
 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
 0
 0
 0
 0
 0
 0
 1
 0
 1st Data
 Right
 Left
 Down
 Up
 Start
 A TRG
 C TRG
 B TRG
 2nd Data
 R TRG
 X TRG
 Y TRG
 Z TRG
 L TRG
 1
 1
 1

A TRG,C TRG,B TRG,R TRG,X TRG,Y TRG,Z TRG,L TRG
Right, Left, Down, Up, Start
It becomes 0 when the button is pressed.


◆Mission stick

Table 3.19 shows the mission stick data format in SMPC control mode. Note that the data for AX7~0, AY7~0, and AZ7~0 are absolute values output by the A/D converter.

Table 3.19 Mission stick data format
 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
 0
 0
 0
 1
 0
 1
 0
 1
 1st Data
 Right
 Left
 Down
 Up
 Start
 A TRG
 C TRG
 B TRG
 2nd Data
 R TRG
 X TRG
 Y TRG
 Z TRG
 L TRG
 1
 1
 1
 3rd Data
 AX7
 AX6
 AX5
 AX4
 AX3
 AX2
 AX1
 AX0
 4th Data
 AY7
 AY6
 AY5
 AY4
 AY3
 AY2
 AY1
 AY0
 5th Data
 AZ7
 AZ6
 AZ5
 AZ4
 AZ3
 AZ2
 AZ1
 AZ0

Right, Left, Down, Up
The digital bits change depending on the analog AX7 to AX0 and AY7 to AY0 thresholds.

The relationship between digital bits and thresholds is as follows.
Right
When AX becomes 170 or more, it becomes "0" (ON), and when it becomes 149 or less, it becomes "1" (OFF).
Left
When AX becomes 86 or less, it becomes "0" (ON), and when it becomes 107 or more, it becomes "1" (OFF).
Doun
When AY becomes 170 or more, it becomes "0" (ON), and when it becomes 149 or less, it becomes "1" (OFF).
Up
When AY becomes 86 or less, it becomes "0" (ON), and when it becomes 107 or more, it becomes "1" (OFF).

Start,A TRG,C TRG,B TRG,R TRG,X TRG,Y TRG,Z TRG,L TRG
It becomes 0 when the button is pressed.

AX7~AX0,AY7~AY0,AZ7~AZ0
The absolute value of the A/D converter output without sign is output.

AX7〜AX0,AY7〜AY0
The top left is (0,0) and the bottom right is (255,255).

AZ7~AZ0
The bottom is 0 and the top is 255.

reference
Developer's Information/STN-34 "Analog Mission Stick Manual"

◆Sega Saturn keyboard

Table 3.20 shows the Saturn keyboard data format in SMPC control mode.

Table 3.20 Saturn Keyboard Data Format
 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
 0
 0
 1
 1
 0
 1
 0
 0
 1st Data
 Right
 Left
 Down
 Up
 Start
 A TRG
 C TRG
 B TRG
 2nd Data
 R TRG
 X TRG
 Y TRG
 Z TRG
 L TRG
 KB
TYPE2
 KB
TYPE1
 KB
TYPE0
 3rd Data
 0
 Caps
Lock
 Num
Lock
 Scrool
Lock
 Make
 1
 1
 Break
 4th Data
 D7
 D6
 D5
 D4
 D3
 D2
 D1
 D0

A TRG,C TRG,B TRG,R TRG,X TRG,Y TRG,Z TRG,L TRG
Right, Left, Down, Up, Start
It becomes 0 when the button is pressed.

The correspondence between each button and the keys on the keyboard is as follows.

 button
 Compatible key
 button
 Compatible key
 Right
 C TRG
 C
 Left
 B TRG
 X
 Down
 R TRG
 E
 Up
 X TRG
 A
 Start
 Esc
 Y TRG
 S
 A TRG
 Z
 Z TRG
 D
 L TRG
 Q

KBTYPE2~0
000:Saturn keyboard
001~110:SEGA RESERVED
111:UNKNOWN

The KBTYPE shown here is used for the IBM Keyboard Converter Adapter format. Indicates 000 when an IBM keyboard 101,102,106 keyboard is connected to the conversion adapter. Additionally, if a keyboard that does not correspond to the conversion adapter or a device that cannot be recognized as a keyboard is connected, 111 will be output. In the future, if the keyboard is integrated into a commercial product, it will be configured to output 000.

Caps Lock (no LED)
1: Caps Lock is locked

Num Lock (no LED)
1:Num Lock is locked

Scroll Lock (no LED)
1: Scroll Lock is locked

Make
Indicates 1 when there is a valid Make code in D7-D0 (key press indicated by D7-D0 code).

Break
Indicates 1 when there is a valid Break code in D7 to D0 (the key press indicated by the D7 to D0 code is released).

D7~D0
Indicates the key number. Used with Make and Break .

reference
Developer's Information/STN-45 "Supplementary explanation of Saturn keyboard"

◆Multi terminal 6

In SMPC control mode, the port status shown in Table 3.21 is output. Multi Terminal 6 can be connected to the Mega Drive 3 button pad, Mega Drive 6 button pad, Sega Saturn standard pad , mission stick , shuttle mouse , and Sega Saturn keyboard . For information about each peripheral's data, refer to each peripheral's data format.
The maximum data size for each tap on Multi Terminal 6 is 15 bytes. Use port mode in 15-byte mode.

Table 3.21 Saturn 6P Multitap Port Status
 Multi-tap ID
 Number of connections
 1H
 6H


◆Multi controller

■Digital mode
 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
0
 0
 0
 0
 0
 0
 1
 0
 1st Data
Right
 Left
 Down
 Up
 Start
 ATRG
 CTRG
 BTRG
 2nd Data
RTRG
 XTRG
 YTRG
 ZTRG
 LTRG
1 1 1

Right, Left, Down, Up
When you press the key with the cross key, it becomes "0".

Start,ATRG,CTRG,BTRG
When you press the XTRG, YTRG, ZTRG button, it becomes "0"

RTRG,LTRG
The analog threshold returns digital data and becomes "0" when the button is pressed.

Note: Analog values are not output in this putt mode

■Analog mode
 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
0
 0
 0
 1
 0
 1
 1
 0
1st Data Right
 Left
 Down
 Up
 Start
 ATRG
 CTRG
 BTRG
2nd Data RTRG
 XTRG
 YTRG
 ZTRG
 LTRG
1 1 1
3rd Data AX7
 AX6
 AX5
 AX4
 AX3
 AX2
 AX1
 AX0
4th Data AY7
 AY6
 AY5
 AY4
 AY3
 AY2
 AY1
 AY0
5th Data AR7
 AR6
 AR5
 AR4
 AR3
 AR2
 AR1
 AR0
6th Data AL7
 AL6
 AL5
 AL4
 AL3
 AL2
 AL1
 AL0

◆Digital section

Right, Left, Down, Up
When you press the key with the cross key, it becomes "0"

Start,ATRG,CTRG,BTRG,XTRG,YTRG,ZTRG
When the button is pressed, it becomes "0"

RTRG,LTRG
The analog threshold returns digital data and becomes 0 when the button is pressed.

◆Analog section

AX7〜AX0,AY7〜AY0
Outputs the absolute value of the A/D converter output without sign.

AL7〜AL0,AR7〜AR0
Outputs the absolute value of the A/D converter output without sign.

reference
Developer's Information/STN-43 "Multi-controller manual"

◆Twin stick

 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
 saturn peripheral id
0
 0
 0
 0
 0
 0
 1
 0
1st Data Right
 Left
 Down
 Up
 Start
 ATRG
 CTRG
 BTRG
2nd Data RTRG
 XTRG
 YTRG
 ZTRG
 LTRG
1 1 1

Right,Left,Down,Up,Start,ATRG,CTRG,BTRG,RTRG,XTRG,YTRG,ZTRG,LTRG
When the button is pressed, it becomes "0".

Right, Left, Down, Up
These are the levers on the left stick (right, left, down, up).

LTRG
This is the left stick trigger.

RTRG
This is the button on the left stick.

ZTRG,XTRG,BTRG,YTRG
These are the levers on the right stick (right, left, down, up).

ATRG
This is the right stick trigger.

CTRG
This is the button on the right stick.

Key compatibility table with standard pads
left stick right stick
Compatible key (twin) Button name (standard) Compatible key (twin) Button name (standard)
trigger L button trigger A button
button R button button C button
↑(Up) up key ↑(Up) Y button
↓(Down) down key ↓(down) B button
→(right) right key →(right) Z button
←(left) left key ←(left) X button
Note: The button name is written as the button name of the standard pad.

reference
Developer's Information/STN-50 "Twin Stick User's Manual"

◆Racing controller

 SMPC control mode
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
saturn peripheral id 0
 0
 0
 1
 0
 0
 1
 1
1st DAta Right
 Left
 Down
 Up
 Start
 ATRG
 CTRG
 BTRG
2nd DAta 1
 XTRG
 YTRG
 ZTRG
 1
1 1 1
3rd Data AX7
 AX6
 AX5
 AX4
 AX3
 AX2
 AX1
 AX0

Start,ATRG,CTRG,BTRG,XTRG,YTRG,ZTRG
When the button is pressed, it becomes 0 (ON).

Down,Up
It becomes 0 (ON) when the butterfly shift is moved toward you.

AX7~AX0
The absolute value of the A/D converter output without sign is output.

AX7~AX0
The left side is 0 and the right side is 255. The center is 127.

reference
Developer's Information/STN-38 "Racing Controller Manual"

BackForward
HARDWARE ManualSMPC User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997