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

■ 3.3 Support Peripheral Data Format

This section shows the data format of SMPC support peripherals in SMPC control mode.
For detailed data on each peripheral, refer to the manual for each peripheral.

◆ Mega Drive 3 Button Pad

Table 3.14 shows the data format of the MegaDrive 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 MegaDrive 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 formats 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
The data of 0: X and Y are positive values.
The data of 1: X and Y are negative values.

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

Table 3.16.1 Relationship between movement amount and flag
 Actual movement amount
 -257
Less than
 -256
 -255
 ...
 -2
 -1
 +0
 +1
 +2
 ...
 +254
 +255
 +256
that's all
 Values from 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
caution:
-D7 to D0 are not signed. Calculate the movement amount while paying attention to the change of each bit of Y / XOver and Y / XSign.
-When the Y / XOver bit is set, the movement amount (D7 to D0) becomes indefinite, so be sure to check this bit.

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

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

◆ Sega tap

In SMPC control mode, the port status shown in Table 3.17 is output. You can connect a Mega Drive 3 button pad, a Mega Drive 6 button pad, and a Sega mouse to the Sega tap. For the data of each peripheral, refer to the respective data format.

Table 3.17 Sega Tap port status in SMPC control mode
 Multitap ID
 Number of connects
 0H
 4H


◆ Sega Saturn standard pad

Table 3.18 shows the Sega Saturn standard pad data formats 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. The data of AX7 to 0, AY7 to 0, and AZ7 to 0 are the 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 bit changes depending on the analog thresholds of AX7 to AX0 and AY7 to AY0.

The relationship between the digital bit and the threshold is as follows.
Right
When AX is 170 or more, it becomes "0" (ON), and when it becomes 149 or less, it becomes "1" (OFF).
Left
When AX is 86 or less, it becomes "0" (ON), and when it becomes 107 or more, it becomes "1" (OFF).
Doun
When AY is 170 or more, it becomes "0" (ON), and when it becomes 149 or less, it becomes "1" (OFF).
Up
When AY is 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 a sign is output.

AX7 ~ AX0, AY7 ~ AY0
The upper left is (0,0) and the lower right is (255,255).

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

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

◆ Sega Saturn keyboard

Table 3.20 shows the Saturn keyboard data formats 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
 Corresponding key
 button
 Corresponding 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 conversion adapter format. Indicates 000 when an IBM keyboard 101,102,106 keyboard is connected to the conversion adapter. If a keyboard that does not correspond to the conversion adapter or a device that cannot be recognized as a keyboard is connected, 111 is output. In the future, if it will be integrated in the commercialization of the keyboard, it will be configured to output 000.

Caps Lock (without LEDs)
1: Caps Lock is locked

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

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

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

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

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

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

◆ Multi Terminal 6

In SMPC control mode, the port status shown in Table 3.21 is output. You can connect a Mega Drive 3 button pad, a Mega Drive 6 button pad, a Sega Saturn standard pad , a mission stick , a shuttle mouse , and a Sega Saturn keyboard to the multi-terminal 6. For the data of each peripheral, refer to the data format of each peripheral.
The maximum data size for each tap of Multi-Terminal 6 is 15 bytes. Use the port mode in 15-byte mode.

Table 3.21 Saturn 6P Multitap Port Status
 Multitap ID
 Number of connects
 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 enter the key with the cross key, it becomes "0".

Start, ATRG, CTRG, BTRG
It becomes "0" when the XTRG, YTRG, ZTRG buttons are pressed.

RTRG, LTRG
It will be "0" when the digital data is returned and the button is pressed due to the analog threshold value.

Note: No analog value is 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 department

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

Start, ATRG, CTRG, BTRG, XTRG, YTRG, ZTRG
It becomes "0" when the button is pressed.

RTRG, LTRG
It will be "0" when the digital data is returned and the button is pressed due to the analog threshold value.

◆ Analog part

AX7 ~ AX0, AY7 ~ AY0
Outputs the absolute value of the unsigned A / D converter output.

AL7 ~ AL0, AR7 ~ AR0
Outputs the absolute value of the unsigned A / D converter output.

reference
Developer's Informaition / 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
It becomes "0" when the button is pressed.

Right, Left, Down, Up
Left stick levers (right, left, down, up).

LTRG
It is a trigger for the left stick.

RTRG
This is the left stick button.

ZTRG, XTRG, BTRG, YTRG
Right stick levers (right, left, down, up).

ATRG
Right-stick trigger.

CTRG
Right stick button.

Key compatibility table with standard pad
Left stick Right stick
Corresponding key (twin) Button name (standard) Corresponding key (twin) Button name (standard)
Trigger L button Trigger A button
button R button button C button
↑ (above) Up key ↑ (above) Y button
↓ (bottom) Down key ↓ (bottom) B button
→ (Right) Right key → (Right) Z button
← (left) Left key ← (left) X button
Note: The button name is the standard pad button name.

reference
Developer's Informaition / 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
It becomes 0 (ON) when the button is pressed.

Down, Up
It will be 0 (ON) when the butterfly shift is brought to the front.

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

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

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

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