★ HARDWARE Manual ★ SMPC User's Manual
▲ Back | Forward ▼
SMPC User's Manual / 3.1 SMPC Control Mode ◆ How to use INTBAC command
- As explained in Chapter 2, the INTBACK command can be used in the following three ways.
- Get only SMPC status
- Acquire peripheral data following SMPC status acquisition
- Get only peripheral data
- This chapter focuses on the peripheral control function. This section describes the acquisition of peripheral data following the acquisition of SMPC status in (2.) and the acquisition of only peripheral data in (3.).
● How to get peripheral data following SMPC status acquisition- This section describes the procedure for acquiring peripheral data following the SMPC status acquisition using the INTBACK command. Since the procedure up to SMPC status acquisition was explained in Chapter 2, the procedure after status data acquisition is shown below. (See Figure 3.3 and Figure 3.4)
- Continue request or break request (SH-2)
- Peripheral data collection, result parameter setting (SMPC)
- SMPC interrupt generated (SMPC)
- Peripheral data acquisition (SH-2)
→ If there is remaining peripheral data, repeat from the process of (1.) - End of INTBACK command
● How to get only peripheral data
- The procedure for retrieving only peripheral data using the INTBACK command is described below. (See Figure 3.3 and Figure 3.4)
- Command parameter settings (SH-2)
→ Table 3.3 shows an example of command parameter settings. - Issue INTBACK command (SH-2)
- Peripheral data collection, result parameter setting (SMPC)
- SMPC interrupt generated (SMPC)
- Peripheral data acquisition (SH-2)
→ End INTBACK command when there is no remaining peripheral data (SMPC) - Continue request or break request (SH-2)
- When a continue request is made, the process in (3.) is repeated.
- End of INTBACK command
- Table 3.3 Command parameter setting example for acquiring only peripheral data
- IREG0 setting value = 00H
- -Does not return date / time, cartridge code, area code, terminal status, SMEM, and reset button mode data.
- IREG1 setting value = xxxx10x0B (x = depending 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 → Returns peripheral data
- ・ Optimization of peripheral acquisition time (OPE) = Depends on application specifications
- IREG2 setting value = F0H
- ・ Please set F0H unconditionally
- (For IREG0 , IREG1 , IREG2 , refer to the INTBACK command.)
▲ Back | Forward ▼
★ HARDWARE Manual ★ SMPC User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997