Japanese
HARDWARE ManualSMPC User's Manual
BackForward
SMPC User's Manual/3.1 SMPC Control Mode

◆How to use the INTBAC command


As explained in Chapter 2, there are three ways to use the INTBACK command:

  1. Get SMPC status only
  2. Following SMPC status acquisition, acquire peripheral data
  3. Get only peripheral data

This chapter will mainly explain the peripheral control function. Here, we will explain (2.) acquiring peripheral data following SMPC status acquisition and (3.) acquiring only peripheral data .

●How to acquire peripheral data following SMPC status acquisition

This section describes the steps to obtain SMPC status and peripheral data using the INTBACK command. The steps up to acquiring SMPC status were explained in Chapter 2, so the steps after acquiring status data are shown below. (See Figures 3.3 and 3.4 )

  1. Continue request or break request (SH-2)

  2. Peripheral data collection, result parameter setting (SMPC)

  3. SMPC interrupt occurrence (SMPC)

  4. Peripheral data acquisition (SH-2)
    If there is remaining peripheral data, repeat from step (1.)

  5. INTBACK command ends

●How to obtain only peripheral data

The steps to retrieve only peripheral data using the INTBACK command are shown below. (See Figures 3.3 and 3.4 )

  1. Setting command parameters (SH-2)
    Table 3.3 shows examples of command parameter settings.

  2. Issue INTBACK command (SH-2)

  3. Peripheral data collection, result parameter setting (SMPC)

  4. SMPC interrupt occurrence (SMPC)

  5. Peripheral data acquisition (SH-2)
    →INTBACK command ends when there is no remaining peripheral data (SMPC)

  6. Continue request or break request (SH-2)

  7. If a continue request is made, repeat from step (3) .

  8. INTBACK command ends

Table 3.3 Command parameter setting example for acquiring only peripheral data

IREG0 setting value=00H
・Date and time, cartridge code, area code, terminal status, SMEM, and reset button mode data are not returned.

IREG1 setting value=xxxx10x0B (x=depends on application specifications)
・Terminal 2 mode (P2MD1, P2MD0) = Depends on application specifications
・Terminal 1 mode (P1MD1, P1MD0) = Depends on application specifications
・Peripheral data enable (PEN) = 1B → Return peripheral data
・Optimization of peripheral acquisition time (OPE) = Depends on application specifications

IREG2 setting value=F0H
・Please set F0H unconditionally.

( IREG0 , IREG1 , IREG2 see INTBACK command )


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