★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)List | Title | Data | Data Name | No |
Model name | explanation |
|---|---|
Uint8 | Unsigned 1-byte integer |
Sint8 | Signed 1-byte integer |
Uint16 | Unsigned 2-byte integer |
Sint16 | Signed 2-byte integer |
Uint32 | Unsigned 4-byte integer |
Sint32 | Signed 4-byte integer |
Boo1 | Logical type 4-byte integer (takes a logical constant as a value) |
Constant name | value | explanation |
|---|---|---|
FALSE | 0 | Represents a false logical value. |
OFF OFF | 0 | Indicates switch off (false). |
Constant name | value | explanation |
|---|---|---|
NULL | ((Void *) 0) | NULL pointer |
List | Title | Data | Data Name | No |
bit 7 6 5 4 3 2 1 0
[] [] [] [] [] [] [] []
| | | | | | | |
| | | | | | | + ---- CDC_HIRQ_CMOK 1: Command can be issued | | | | | | + ------- CDC_HIRQ_DRDY 1: Data transfer ready | | | | | + ----- ----- CDC_HIRQ_CSCT 1: 1 sector read completed | | | | + ------------- CDC_HIRQ_BFUL 1: CD buffer full | | | + ---------- ------ CDC_HIRQ_PEND 1: End of CD playback | | + ------------------ CDC_HIRQ_DCHG 1: Disk replacement occurs | + ------- --------------- CDC_HIRQ_ESEL 1: End of selector setting process + ------------------------- CDC_HIRQ_EHST 1: End of host input / output processing bit 15 14 13 12 11 10 9 8
[-] [-] [] [] [] [] [] []
| | | | | |
| | | | | + ---- CDC_HIRQ_ECPY 1: End of copy / move processing | | | | + ------- CDC_HIRQ_EFLS 1: End of file system processing | | | + ------- --- CDC_HIRQ_SCDQ 1: Subcode Q update completed | | + ------------- CDC_HIRQ_MPED 1: MPEG related processing completed | + ------------ ---- CDC_HIRQ_MPCM 1: End of MPEG malfunction section + ------------------- CDC_HIRQ_MPST 1: Notification of MPEG interrupt statusConstant name | explanation |
|---|---|
CDC_ERR_OK | The function completed normally. |
CDC_ERR_CMDBUSY | When issuing a command, the command end flag is not 1. |
CDC_ERR_CMDNG | The CMOK flag is not set to 1 when the command is issued. |
CDC_ERR_TMOUT | Timed out. (Waiting for response, waiting for data transfer preparation) |
CDC_ERR_PUT | A free sector could not be secured while waiting for data transfer preparation by writing sector data. |
CDC_ERR_REJECT | The response to the command is now REJECT. |
CDC_ERR_WAIT | The response to the command is now WAIT. |
CDC_ERR_TRNS | The data transfer size is abnormal. |
CDC_ERR_PERI | The periodic response could not be obtained. |
Constant name | explanation |
|---|---|
CDC_SPOS_END | Indicates the sector position at the end of the partition. |
CDC_SNUM_END | Indicates the number of sectors from the specified sector position SP to the end of the partition. |

Constant name | explanation |
|---|---|
CDC_PARA_DFL | Specify default value of setting parameter (0) |
CDC_PARA_NOCHG | Unchanged specification of setting parameters (-1) |
CDC_NUL_SEL | Special value of selector number (aperture number, buffer partition number) |
CDC_NUL_FID | File identifier special value |
List | Title | Data | Data Name | No |


List | Title | Data | Data Name | No |
| byte | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Ten | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ctrl Adr | TNO | X | P_FAD | 00 | Q_FAD | CRC | ||||||
| Ctrl Adr | : CONTROL / ADR bytes |
| TNO | : Track number (binary value, not BCD) |
| X | : Index number (binary value, not BCD) |
| P_FAD | : In-track time (frame address format with 0 at the beginning of the track) |
| Q_FAD | : Absolute time (frame address format with 00:00:00 as 0) |
TNO | X | P_FAD |
|---|---|---|
01H ~ 63H (1 ~ 99) | 01H ~ 63H | Progress FAD in the track |
AAH (lead out) | 01H ~ 63H | Progress FAD in the track |
00H (lead-in) | 01H ~ 63H, A0H, A1H, A2H | 000000H |

List | Title | Data | Data Name | No |

bit 7 6 5 4 3 2 1 0
[] [] [] [-] []
| | | Status code (CD drive status)
| | |
| | + ----- CDC_ST_PERI 1: Periodic response 0: Response to command | + --------- CDC_ST_TRNS 1: Data transfer request 0: No request + --------- --CDC_ST_WAIT 1: WAIT (execution pending) 0: ACK (command normal reception)
Constant name | value | Status | explanation |
|---|---|---|---|
CDC_ST_BUSY | 00H | <BUSY> | During state transition |
CDC_ST_PAUSE | 01H | <PAUSE> | Pausing (pause) |
CDC_ST_STANDBY | 02H | <STANDBY> | Standby (drive stopped state) |
CDC_ST_PLAY | 03H | <PLAY> | Playing a CD |
CDC_ST_SEEK | 04H | <SEEK> | Seeking |
CDC_ST_SCAN | 05H | <SCAN> | Scan playback |
CDC_ST_OPEN | 06H | <OPEN> | The tray is open |
CDC_ST_NODISC | 07H | <NODISC> | No disk |
CDC_ST_RETRY | 08H | <RETRY> | Read retry processing in progress |
CDC_ST_ERROR | 09H | <ERROR> | Read data error occurred |
CDC_ST_FATAL | 0AH | <FATAL> | A fatal error has occurred |
| byte | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
|---|---|---|---|---|---|---|---|---|
| CD Report | Flg | Rep Cnt | Ctrl Adr | TNO | X | FAD | ||
| Flg | : CD flag (upper 4 bits) …… Valid in <PLAY> state |
| RepCnt | : Number of repeats (lower 4 bits) …… Notification range is 0H to EH |
bit 7 6 5 4 3 2 1 0
[] [-] [-] [-] []
| Repeat count |
+ ----------- CDC_CDFLG_ROM 1: CD-ROM decoding 0: CD-DA, seek, scan, etc.| Ctrl Adr | : CONTROL / ADR bytes |
| TNO | : Track number (binary value, not BCD) Based on subcode Q |
| X | : Index number (binary value, not BCD) |
| FAD | : Frame address (based on header information for CD-ROM, otherwise based on subcode Q) |
Status | CD flag / repeat | CONTROL / ADR | Track number | Index number | Frame address |
|---|---|---|---|---|---|
<BUSY> | ○ / FFH | ○ / FFH | ○ / FFH | ○ / FFH | ○ / FFFFFFH |
<PAUSE> | ○ | ○ | ○ | ○ | ○ |
<STANDBY> | Value at the time of pause | Value at the time of pause | Value at the time of pause | Value at the time of pause | Value at the time of pause |
At seek home | FFH | FFH | FFH | FFH | FFFFFFH |
<PLAY> | ○ | ○ | ○ | ○ | ○ |
<SEEK> | ○ | Target position | Target position | Target position | Target position |
<SCAN> | ○ | ○ | ○ | ○ | ○ |
<OPEN> | FFH | FFH | FFH | FFH | FFFFFFH |
<NODISC> | FFH | FFH | FFH | FFH | FFFFFFH |
<RETRY> | ○ | ○ | ○ | ○ | ○ |
<ERROR> | FFH | FFH | FFH | FFH | FFFFFFH |
<FATAL> | Indefinite | Indefinite | Indefinite | Indefinite | Indefinite |
★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)