Japanese
HARDWARE ManualSCU User's Manual
BackForward
SCU User's Manual/Chapter 2 Operation Description

■2.3 DSP

◆DSP control from main CPU

DSP can be controlled from the main CPU. The DSP control items that can be controlled from the CPU are as follows.
  1. Loading the DSP program
  2. DSP data access
  3. Start execution of DSP program
  4. Forced stop of DSP program

●Loading the DSP program

To load a DSP program, you can use the DSP's DMA instructions, but you can also write directly from the main CPU to the DSP's program RAM area. Program data can be loaded by controlling from the main CPU in the following order.
  1. Set bit16 and bit17 of the program control port to 0.
  2. Writes the transfer start address to the program RAM address of the same port. It cannot be set unless the DSP is stopped.
  3. Writes program data sequentially in longword units to the program RAM data port.
Figures 2.15 to 2.17 show the control method from the CPU step by step.

Figure 2.15 Loading DSP program Step1

Figure 2.16 Loading DSP program Step2

Figure 2.17 Loading DSP program Step3

●DSP data access

To access DSP data, you can use the DSP's DMA instructions, but you can also access the DSP's data RAM area from the main CPU. Data can be accessed by controlling from the main CPU in the order shown below.
  1. Set bit16 and bit17 of the program control port to 0.
  2. Writes the access start address to the data RAM address port. It cannot be set unless the DSP is stopped.
  3. Data is accessed sequentially in longword units via the data RAM data port.
Figures 2.18 to 2.20 show the control method from the CPU step by step.

Figure 2.18 DSP data access step1

Figure 2.19 DSP data access step 2

Figure 2.20 DSP data access step 3

●Start execution of DSP program

To start executing the DSP program, write 1 to bit 16 of the program control port (see Figure 2.21). When the DSP recognizes that it has been written, it begins execution from the address stored in the program RAM address of the program control port. Therefore, the execution start address must be set before writing 1 to bit 16 of the program control port.

Figure 2.21 DSP program execution start control from CPU

●Forced stop of DSP program

To forcibly stop the execution of a DSP program, write 0 to bit 16 of the program control port, which is the opposite of starting execution. Figure 2.22 shows forced stop control.

Figure 2.22 Forced stop control of DSP program from CPU


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