Japanese
★ HARDWARE Manual ★ SMPC User's Manual
▲ Back | Forward ▼
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:
- Get SMPC status only
- Following SMPC status acquisition, acquire peripheral data
- 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 )
- Continue request or break request (SH-2)
- Peripheral data collection, result parameter setting (SMPC)
- SMPC interrupt occurrence (SMPC)
- Peripheral data acquisition (SH-2)
→ If there is remaining peripheral data, repeat from step (1.)
- 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 )
- Setting command parameters (SH-2)
→ Table 3.3 shows examples of command parameter settings.
- Issue INTBACK command (SH-2)
- Peripheral data collection, result parameter setting (SMPC)
- SMPC interrupt occurrence (SMPC)
- Peripheral data acquisition (SH-2)
→INTBACK command ends when there is no remaining peripheral data (SMPC)
- Continue request or break request (SH-2)
- If a continue request is made, repeat from step (3) .
- 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 )
▲ Back | Forward ▼
★ HARDWARE Manual ★ SMPC User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997