★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)Register name | R / W | explanation | Access function |
|---|---|---|---|
DATATRNS | R / W | Data transfer register | CDC_GetDataPtr |
HIRQREQ | R / W | Interrupt factor register | CDC_GetHirqReq |
HIRQMSK | R / W | Interrupt mask register | CDC_GetHirqMsk |
MPEG RGB | R | MPEG register (RGB data) | CDC_GetMpegPtr |
Register name | R / W | 15 | 14 | 13 | 12 | 11 | Ten | 9 | 8 |
DATATRNS | R / W | ||||||||
7 | 6 | Five | Four | 3 | 2 | 1 | 0 | ||
Register name | R / W | 15 | 14 | 13 | 12 | 11 | Ten | 9 | 8 |
HIRQREQ | R / W | − | − | MPST | MPCM | MPED | SCDQ | EFLS | ECPY |
7 | 6 | Five | Four | 3 | 2 | 1 | 0 | ||
EHST | ESEL | DCHG | PEND | BFUL | CSCT | DRDY | CMOK | ||
bit | Name | explanation | initial value |
|---|---|---|---|
bit0 | CMOK | 1: Command can be issued (response set completed) | 1 |
bit1 | DRDY | 1: Ready for data transfer | 0 |
bit2 | CSCT | 1: 1 sector read completed | 0 |
bit3 | BFUL | 1: CD buffer full (CD buffer is full) | 0 |
bit4 | PEND | 1: End of CD playback (current FAD is out of playback range) | 0 |
bit5 | DCHG | 1: Disc replacement occurred (tray opened) | 0 * |
bit6 | ESEL | 1: Soft reset, end of selector setting process | 1 |
bit7 | EHST | 1: End of host I / O processing | 1 |
bit8 | ECPY | 1: Completion of copy / move processing between buffer partitions | 1 |
bit9 | EFLS | 1: End of CD block file system processing | 1 |
bit10 | SCDQ | 1: Subcode Q update completed (CD drive communication timing) | 0 |
bit11 | MPED | 1: End of MPEG related processing | 1 |
bit12 | MPCM | 1: End of MPEG operation indefinite section | 0 |
bit13 | MPST | 1: Notification of MPEG interrupt status (MPEG-related interrupt generation) | 0 |
bit14 | − | Reserved bit | 0 |
bit15 | − | Reserved bit | 0 |
Register name | R / W | 15 | 14 | 13 | 12 | 11 | Ten | 9 | 8 |
HIRQMSK | R / W | − | − | MPST | MPCM | MPED | SCDQ | EFLS | ECPY |
7 | 6 | Five | Four | 3 | 2 | 1 | 0 | ||
EHST | ESEL | DCHG | PEND | BFUL | CSCT | DRDY | CMOK | ||
Register name | R / W | 15 | 14 | 13 | 12 | 11 | Ten | 9 | 8 |
MPEG RGB | R | ||||||||
7 | 6 | Five | Four | 3 | 2 | 1 | 0 | ||
flag | command |
|---|---|
ESEL | -Setting the connection destination of the CD device (CDC_CdSetCon) |
EHST | -Sector data retrieval (CDC_GetSctData) |
ECPY | -Sector data copy (CDC_CopySctData) |
EFLS | -Move directory (CDC_ChgDir) |
flag | command | |
|---|---|---|
0 Clear only (do not check) | ||
ESEL | -Soft reset (specified by the parameter of CDC_CdInit) | |
EFLS | -Cancel file access (CDC_AbortFile) | |
Just check (do not clear 0) | ||
ESEL | -Getting the actual data size (CDC_GetActSiz) | |
![]() | The value of the command end flag held by the CDC will be inconsistent when the separately linked CDC program code is executed. Therefore, if the command end flag is not initialized, the command may not be issued. Keep the following in mind when using the CDC library: |
・ REJECT | : The command itself is invalid, such as the command format is incorrect. |
・ WAIT (execution pending) | : The command cannot be accepted because it cannot be executed in the current state. |
・ Data transfer request | : Indicates that data transfer is required. |
・ Regular response | : Indicates whether it is a regular response or a response to a command. |
・ CD drive status | : Indicates the logical state of the CD drive as seen by the host. |
・ During standard speed playback: 13.3ms Periodic response update cycle ・ At double speed playback: 6.7ms ・ Other than playback: 16.7ms
Data transfer error | explanation |
|---|---|
Data transfer timeout | The CD block is not ready for data transfer within the specified time. |
Unable to secure write sector | The free sector could not be secured by writing the sector data. |
![]() | If you execute a command that involves data transfer, you must not terminate the data transfer before the DRDY flag goes to 1. Be sure to wait for the DRDY flag to set to 1 before quitting, even if you don't actually transfer the data. (Wait for data transfer and then terminate) |
★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)