Japanese
PROGRAMMER'S GUIDECD communication I/F (CD part)
■ | Go forward
CD communication interface user's manual

overview


This document summarizes the functions of the CD block and the external specifications of the CD communication interface.
The functions of the CD block are classified as shown in Table 1.1.

Table 1.1 Functional classification of CD block
 classification
 Contents
 CD part
 Communication method, CD drive related, CD buffer related
CD block file system related
 MPEG part
 MPEG related

The CD communication interface allows you to use the functionality of the CD block with a common software interface.

1.1 Library configuration

Figure 1.1 shows the CD-related library configuration.

Figure 1.1 CD-related library configuration
       ┌────────────────────────────────┐    
       │                                │    
       │          Application           │    
       │                                │    
       └────────────────────────────────┘    
       ┌───────┐ ┌───────────┐ ┌────────┐    
       │MPEG   │ │Stream     │ │File    │    
       │library│ │system     │ │system  │    
       │       │ │library┌───┘ │library │    
       │       │ │       │ ┌───┘        │    
       │       │ │       │ │            │    
       └───────┘ └───────┘ └─────┐      │    
       ┏━━━━━━━━━━━━━━━━━━━━━━━┓ │      │    
       ┃   CD communication    ┃ │      │    
       ┃        interface      ┃ │      │    
       ┗━━━━━━━━━━━┯━━━━━━━━━━━┛ └──┬───┘    
Software           │                │        
━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━┿━━━━━━━━
Hardware           │                │        
            ┌──────┴─────┐   ┌──────┴────────┐ 
            │  CD block  │   │SIMM, SCSI file│ 
            └────────────┘   └───────────────┘ 

Alphabetical symbols that represent libraries, such as CDC, are called library symbols.
In this manual, the CD communication interface is sometimes abbreviated as " CDC ".

1.2 System configuration

Figure 1.2 shows the CD-related system configuration.

Figure 1.2 CD-related system configuration

The main system that interfaces with the CD block is called the host.
Also, CD block is one of the subsystems.

(1)Communication with CD block
The host and CD block communicate (command/response, data transfer) using registers on the hardware interface.
A command issued from the host to a CD block is called a CD block command. Usually abbreviated as "command".

(2)CD drive
The CD block periodically communicates with the CD drive and controls the CD drive in response to commands from the host.
The CD drive supports the CD-ROMXA standard and multi-session. It is also possible to switch between standard speed and double speed. (When playing CD-DA, the speed is automatically set to standard speed.)

1.3 Functions and features

(1) to (3) are the functions of the CD communication interface, and (4) to (7) are the functions of the CD block.

(1) Communication function with CD block
  1. A set of C language interface functions that communicate between the host and CD block.
  2. Issue commands to the CD block and receive responses.
  3. There is almost a one-to-one correspondence with the CD block command.

(2) Auxiliary function for data transfer
Supports auxiliary functions related to data transfer, such as preparing and terminating data transfer and acquiring the address of the data transfer register.
Data to be read or written to the CD block is transferred through the data transfer register of the CD block. The transfer itself does not go through the CD communication interface. A data transfer module such as DMA mediates this. (Software transfer by CPU, CPU DMA, and SCU DMA are possible)

(3) Register access function
Supports functions that access registers in the CD block.

(4)CD drive function
Music playback (CD-DA) and sector read (CD-ROM) are handled using the same format command called CD playback.
To stop or pause CD playback, use the seek command, and to resume CD playback (unpause), use the CD playback command.

(5) Decoding function of subcodes R to W
Decodes subcodes R to W during CD-DA playback. There is a pack buffer for 24 packs to store decoded pack data.

(6) Stream selection function
It uniformly processes CD-ROM XA standard sectors and streams from various devices (host, MPEG, etc.).

  1. There is a CD buffer of 200 sectors (approximately 460K bytes) to store the stream.
  2. There are 24 independent selectors for selecting streams (separating, storing, retrieving).

(7)CD block file system function (ISO9660)
Maintains directory information within the CD block for easy access to files that comply with the ISO9660 standard.


■ | Go forward
PROGRAMMER'S GUIDECD communication I/F (CD part)
Copyright SEGA ENTERPRISES, LTD., 1997