Japanese
★ PROGRAMMER'S GUIDE ★ SMPC Interface User's Manual
■ | Go forward ▼
SMPC Interface User's Manual overview
■Purpose
- This library uses the functions of SMPC (System Management & Peripheral Control).
■Features
- The interface between the main CPU and SMPC is a software handshake method that uses SMPC registers.
■Function overview
- SMPC functions can be classified into system management type and peripheral control type.
- ●System management system
- The system management system can reset hardware (CPU, sound, etc.), set and retrieve the clock, etc.
- ●Peripheral control system
- The peripheral control system automatically collects data from peripherals connected to the peripheral I/F and returns it to the main CPU.
■Processing overview
- The interface between SMPC and main CPU is handshake. To execute a function (command), first write the required parameters to the SMPC register, then write the command. When you write a command, SMPC executes the process according to the command. There are two types of processing: into-back and non-int-back.
- ●Into back
- Intoback is a process in which a command is passed to SMPC and the result is returned by an interrupt (SMPC interrupt). SMPC interrupt processing and its registration are done inside the library. Also, other interrupts are prohibited while SMPC interrupt processing is in progress. The timing of command issuance varies depending on the function.
- ●Non-intback
- Non-intoback is processing that only passes commands to SMPC. The library function waits for SMPC processing to finish. (Please refer to the SMPC User's Manual for details on each SMPC processing time.)
The functions that can be used in this process are functions that do not require receiving the result after passing the command (such as reset). The processing systems that can be used with each function are shown below.
| into back non-intoback | |
system management | ○ | ○ |
peripheral control | ○ | × |
- ○: Processed, ×: No process
■ | Go forward ▼
★ PROGRAMMER'S GUIDE ★ SMPC Interface User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997