★ PROGRAMMER'S GUIDE ★ SMPC Interface User's Manual
■ | Advance ▼
SMPC Interface User's Manual Overview
■ Objective
- This library is a library that 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.
■ Functional overview
- SMPC functions can be classified into system management system and peripheral control system.
- ● System management system
- The system management system can reset the hardware (CPU, sound, etc.), set the clock, and acquire it.
- ● Peripheral control system
- The peripheral control system automatically collects data from the peripheral (peripheral device) connected to the peripheral I / F and returns it to the main CPU.
■ Processing outline
- The interface between the SMPC and the main CPU is a handshake. To execute a function (command), write the required parameters to the SMPC register and then write the command. When a command is written, SMPC executes the processing according to the command. There are two types of processing: intback and non-intback.
- ● Intoback
- Intoback is a process in which a command is passed to SMPC and then the result is returned by an interrupt (SMPC interrupt). SMPC interrupt processing and its registration are performed inside the library. Also, other interrupts are disabled during SMPC interrupt processing. The timing of command issuance depends on the function.
- ● Non-int-back
- Non-intback is the process of just passing a command to the SMPC. The library function waits for the SMPC process to finish. (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 need to receive the result after passing the command (reset, etc.). The processing systems that can be used for each function are shown below. | Intoback Non-intback | |
|---|
System management | ○ | ○ |
Peripheral control | ○ | × |
- ○: With processing, ×: Without processing
■ | Advance ▼
★ PROGRAMMER'S GUIDE ★ SMPC Interface User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997