★ PROGRAMMER'S GUIDE ★ SMPC Interface User's ManualList | Title | Function | Function Name | No |
![]() | This function is prohibited for use by users. |
|---|
List | Title | Function | Function Name | No |
Strict matters![]() | This function is prohibited from being used by slave SH2. |
|---|
List | Title | Function | Function Name | No |
Strict matters![]() | This function is prohibited from being used by slave SH2. |
|---|
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
Strict matters![]() | This function is prohibited from being used by slave SH2. |
|---|
List | Title | Function | Function Name | No |
Strict matters![]() | This function is prohibited from being used by slave SH2. |
|---|
List | Title | Function | Function Name | No |
Strict matters![]() | This function is prohibited from being used by slave SH2. |
|---|
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
bit7 bit4 | ||
|---|---|---|
input_dt [0] | Second tenth place | First place in seconds |
input_dt [1] | Tenth place | 1st place |
input_dt [2] | 10th place | No. 1 at the time |
input_dt [3] | 10th place per day | No. 1 in the day |
input_dt [4] | Day of the week (0-6) | Month (1H ~ CH) |
input_dt [5] | 10th year of the Christian era | First place in the Christian era |
input_dt [6] | Year 1000 | 100th year of the Christian era |
List | Title | Function | Function Name | No |
Constant | explanation |
|---|---|
PER_INT_ERR | The intoback command could not be issued. |
PER_INT_OK | The into-back command has been issued. |
Strict matters![]() | This function is prohibited from being used by slave SH2. |
|---|
Strict matters![]() | This function cannot be executed in interrupt processing. Be sure to execute it in the main process. Generally, execute immediately after V blank OUT processing. |
|---|
Peripheral | Data size |
|---|---|
Digital device | 2 |
Analog devices | 3-9 |
Handle | 3 |
Mission STICK (3 axes) | Five |
Mission STICK (6 axes) | 9 |
Multi controller (analog) | 6 |
pointing device | 3 |
Keyboard device | Four |
Mega drive 3 button pad | 1 |
Mega drive 6 button pad | 2 |
"Digital information" in the analog device-> up to the 2nd byte, so it can be referenced "Analog information" in the analog device-> 3rd byte or later, so it cannot be referenced
List | Title | Function | Function Name | No |
Constant | |
|---|---|
PER_INT_ERR | The intoback command could not be issued. |
PER_INT_OK | The into-back command has been issued. |
Strict matters![]() | This function is prohibited from being used by slave SH2. |
|---|
Strict matters![]() | The execution timing is limited to the following period. "300 μs after the start of the V blank to the end of the V blank" |
|---|
1) Check the connection status of the main unit terminal 1 from the multi-tap information.
When mul_info [0] .id == 0xF0 and mul_info [0] .con == 0x00 → Main unit terminal 1 is not connected.
The first one of the peripheral data is an indefinite value.
The data of the main body terminal 2 starts from the following data.
When mul_info [0] .id! = 0xF0 and mul_info [0] .con == 0x00 → Main unit terminal 1 is connected to a peripheral that does not support SMPC.
The first one of the peripheral data is an indefinite value.
The data of the main body terminal 2 starts from the following data.
When mul_info [0] .id == 0xF0 and mul_info [0] .con == 0x01 → Main unit terminal 1 is directly connected to the SMPC compatible peripheral.
The first one of the peripheral data is valid.
The data of the main body terminal 2 starts from the following data.
When mul_info [0] .id! = 0xF0 and mul_info [0] .con> 0x01 → Main unit terminal 1 is a multi-tap connection (the number of connectors is mul_info [0] .con)
Valid for the number of connectors from the beginning of the peripheral data Check the connection status of each terminal of the tap from the peripheral type and peripheral size of each terminal. The data of the main body terminal 2 starts from the data next to the main body terminal 1.
2) Check the connection status of the main unit terminal 2 from the multi-tap information by the same method as above.
3) When connecting with multi-tap, check the connection of each terminal by the following method.
Peripheral type == PER_ID_NCON_UNKNOWN and
Peripheral size == PER_SIZE_NCON_15
→ Not connected.
Peripheral type == PER_ID_NCON_UNKNOWN and
Peripheral size! = PER_SIZE_NCON_15
→ SMPC non-compatible peripherals are connected.
Other than the above → SMPC compatible peripherals are connected
+ -Peripheral type
| + -Peripheral size
| | +-DATA1
| | | + -DATA2 DATAn- +
| | | | |
+ ---- + ---- + ---- + ---- + + ---- +
TP | SZ | D1 | D2 | .............. | Dn |
+ ---- + ---- + ---- + ---- + + ---- +
<->
1 Byte
<-------------------------------------->
(n + 2) Byte n is equal to max_size specified by PER_LInit () ・ DATA1 ・ ・ ・ DATA n (n Byte)
Peripheral data For the data format of each device,
See Device information data type.
(If "Not connected" is returned even after repeating several times, please consider that it is really unconnected.)
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
List | Title | Function | Function Name | No |
Constant | explanation |
|---|---|
PER_HOT_RES_ON | Hot reset ON |
PER_HOT_RES_OFF | Hot reset OFF |
★ PROGRAMMER'S GUIDE ★ System Program User's Manual