CXD1812Q SONY | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 56
Technical content
Features
- Compatible with CD-ROM, CD-I and CD-ROM XA formats
- Real time error correction
- Automatic multi-block transfer function
- Readable Subcode-Q data by byte from the Sub CPU
- Capable of transferring up to double speed playback and Mode2 when the 33.8688 MHz clock is used Transfer in Mode3 is possible when the decoder is OFF (The transfer speed depends on playback speed and clock frequency.)
- Supports PIO/single-word DMA/multiword DMA data transfer mode
- IORDY support available
- Automatic reception of PACKET commands Absolute Maximum Ratings (Ta = 25°C)
- Supply voltage V DD –0.5 to +7.0 V
- Input voltage V I –0.5 to VDD +0.5 V
- Output voltage V O –0.5 to VDD +0.5 V
- Operating temperature Topr –20 to +75 °C
- Storage temperature Tstg –55 to +150 °C Recommended Operating Conditions
- Supply voltage V DD 4.5 to 5.5 (+5.0 typ.) V
- Operating temperature Topr –20 to +75 °C
Applications
– 1 – CXD1812Q/R E95233-ST ATAPI I/F CD-ROM DECODER Sony reserves the right to change products and specifications without prior notice. This information does not convey any license by any implication or otherwise under any patents or other right. Application circuits shown, if any, are typical examples illustrating the operation of the devices. Sony cannot assume responsibility for any problems arising out of the use of these circuits. 100 pin LQFP (Plastic)100 pin QFP (Plastic) CXD1812Q CXD1812R
– 2 – CXD1812Q/R Block Diagram -1 CXD1812Q (QFP) 10 0 GND C2PO BCLK MDAT LRCK EXCK SBIN SCOR WFCK CD•DSP I/F 939291 94 CLOCK GENERATOR 67 8917 to 21, 23 to 25 10 to 14, 16 subCPU I/F XTL2 XTL1 HCLK MCLK XCS XRD XWR XINT D0 to 7 A0 to 5 to to to to HRST XPDI DASP REDY XS16 HINT HDRQ XHAC XHWR XHRD HA0 to 2 HCS0, 1 HDB0 to F HOST I/F 12 bytes PACKET FIFO ATAPI REGISTERs DMA FIFO 953, 28, 53, 7843 to 46, 48 to 5142413926, 27, 30 to 33, 35 to 38 XRST MDB0 to 7 VDD MA0 to 9 XMWR XCAS XRAS ADDRESS GEN DMA SEQUENCER PRIORITY RESOLVER DESCRAMBLER SYNC CONTROL MAIN DATA ERROR CORECTION Subcode S/P
– 3 – CXD1812Q/R Block Diagram -2 CXD1812R (LQFP) 10 0 GND C2PO BCLK MDAT LRCK EXCK SBIN SCOR WFCK CD•DSP I/F 92 91 CLOCK GENERATOR 6715 to 19, 21 to 23 8 to 12, 14 subCPU I/F XTL2 XTL1 HCLK MCLK XCS XRD XWR XINT D0 to 7 A0 to 5 to to to to HRST XPDI DASP REDY XS16 HINT HDRQ XHAC XHWR XHRD HA0 to 2 HCS0, 1 HDB0 to F HOST I/F 12 bytes PACKET FIFO ATAPI REGISTERs DMA FIFO 1, 26, 51, 7641 to 44, 46 to 493924, 25, 28 to 31, 33 to 36 XRST MDB0 to 7 VDD MA0 to 9 XMWR XCAS XRAS ADDRESS GEN DMA SEQUENCER PRIORITY RESOLVER DESCRAMBLER SYNC CONTROL MAIN DATA ERROR CORECTION Subcode S/P 9089 45 9337 40
– 4 – CXD1812Q/R Pin Description Pin No. QFP Symbol LQFP I/O Description BCLK MDAT V DD GND LRCK XINT XCS XWR XRD GND GND MA0 MA1 V DD GND MA2 MA3 MA4 MA5 GND MA6 MA7 100 I I I O I I I I I I I I I I/O I/O I/O I/O I/O I/O I/O I/O O O O O O O O O Bit clock signal from CD DSP Data signal from CD DSP Power supply Ground LR clock signal from CD DSP Interrupt request signal to CPU Chip select negative logic signal from CPU Strobe negative logic signal for writing data from CPU Strobe negative logic signal for reading data from CPU CPU address (MSB) CPU address CPU address CPU address CPU address Ground CPU address (LSB) CPU data bus (MSB) CPU data bus CPU data bus CPU data bus CPU data bus Ground CPU data bus CPU data bus CPU data bus (LSB) DRAM address (LSB) DRAM address Power supply Ground DRAM address DRAM address DRAM address DRAM address Ground DRAM address DRAM address
– 5 – CXD1812Q/R Pin No. QFP Symbol LQFP I/O Description MA8 MA9 XRAS GND XCAS XMWR MDB0 MDB1 MDB2 MDB3 GND MDB4 MDB5 MDB6 MDB7 DASP V DD GND HCS1 HCS0 HA2 HA0 XPDI HA1 XS16 HINT XHAC REDY GND XHRD XHWR HDRQ HDBF HDB0 HDBE HDB1 O O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I I I I I/O I O O I O I I O I/O I/O I/O I/O DRAM address DRAM address (MSB) DRAM row address strobe negative logic signal Ground DRAM column address strobe negative logic signal DRAM write enable negative logic signal DRAM data bus (LSB) DRAM data bus DRAM data bus DRAM data bus Ground DRAM data bus DRAM data bus DRAM data bus DRAM data bus (MSB) Drive active/slave present negative logic signal; open drain output Power supply Ground Chip select negative logic signal from host Chip select negative logic signal from host Host address (MSB) Host address (LSB) Passed diagnostics negative logic signal; open drain output Host address 16-bit I/O port select negative logic signal; open drain output Interrupt request positive logic signal to host DMA acknowledge negative logic signal from host I/O channel ready positive logic signal; open drain output Ground Strobe negative logic signal for reading data from host Strobe negative logic signal for writing data from host DMA request positive logic signal to host Host data bus (MSB) Host data bus (LSB) Host data bus Host data bus
– 6 – CXD1812Q/R Pin NO. QFP Symbol LQFP I/O Description 100 GND HDBD HDB2 HDBC HDB3 V DD GND HDBB HDB4 HDBA HDB5 GND HDB9 HDB6 HDB8 HDB7 HRST GND XTL2 XTL1 MCLK HCLK XRST EXCK SBIN SCOR WFCK C2PO I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I O I O O I O I I I I Ground Host data bus Host data bus Host data bus Host data bus Power supply Ground Host data bus Host data bus Host data bus Host data bus Ground Host data bus Host data bus Host data bus Host data bus Chip reset negative logic signal from host Ground Crystal oscillation circuit output Crystal oscillation circuit input Master clock (XTL1) output Clock output with 1/2 the frequency of XTL1 Chip reset negative logic signal Subcode data read clock signal to CD DSP Subcode data serial input signal from CD DSP Subcode sync positive logic signal from CD DSP Write frame clock signal from CD DSP C2 pointer positive logic signal from CD DSP
– 7 – CXD1812Q/R
Electrical Characteristics
- DC Characteristics (VDD = 5V ±10%, VSS = 0V, Topr = –20 to +75°C) Item Symbol Conditions Min. Typ. Max. Unit High level input voltage (1) Low level input voltage (1) High level input voltage (2) Low level input voltage (2) High level input voltage (3) Low level input voltage (3) TTL Schmitt hysteresis High level input voltage (4) Low level input voltage (4) CMOS Schmitt hysteresis High level output voltage (6) Low level output voltage (6) High level output voltage (7) Low level output voltage (7) High level output voltage (8) Low level output voltage (8) Input leakage current Input leakage current* Input current of pull-up input Input current of pull-up input*1 Output leakage current (9) (10) Oscillation cell logic threshold value Oscillation cell high level input voltage Oscillation cell low level input voltage Oscillation cell feedback resistance Oscillation cell high level output voltage Oscillation cell low level output voltage V IH1 VIL1 VIH2 VIL2 Vt1+ Vt1– Vt1+ – Vt1– Vt2+ Vt2– Vt2+ – Vt2– VOH1 VOL1 VOH2 VOL2 VOH3 VOL3 IIL1 IIL2 IIL3 IIL4 IIZ LVth VIH VIL R FB VOH VOL IOH1 = –2mA IOL1 = 4mA IOH2 = –6mA IOL2 = 12mA IOH3 = –6mA IOL3 = 4mA VIN = 0V VIN = 0V High-impedance state VIN = VSS or VDD IOH = –12mA IOL = 12mA 2.2 0.7VDD 2.2 0.8VDD VDD – 0.8 VDD – 0.8 VDD – 0.8 –10 –40 –40 –90 –40 0.7V DD 250k 0.5VDD 0.4 0.6 –100 –200 0.5VDD 0.8 0.3VDD 0.8 0.2VDD 0.4 0.4 0.4 –240 –440 0.3V DD 2.5M 0.5VDD V V V V V V V V V V V V V V V V µA µA µA µA µA V V V Ω V V
1 Bidirectional pin
– 8 – CXD1812Q/R 1-1. Categories of input pins (1) TTL input level pin: D0 to D7, MDB0 to MDB7, HDB0 to HDBF, DASP, XPDI (2) CMOS input level pin: MDAT, LRCK, SBIN, SCOR, WFCK, C2PO (3) TTL Schmitt input level pin: XCS, XWR, XRD, A0 to A5, HA0 to HA2, XHAC, XHRD, XHWR, HCS0 to HCS1, HRST (4) CMOS Schmitt input level pin: BCLK, XRST (5) Input pin with pull-up resistor: D0 to D7, MDB0 to MDB7, HCS0 to HCS1, HRST 1-2. Categories of output pins (6) Normal output pin: D0 to D7, MDB0 to MDB7, XINT, MA0 to MA9, XMWR, MCLK, HCLK, EXCK (7) Powered output pin: HINT, HDRQ, HDB0 to HDBF, DASP, XPDI, XS16, REDY (8) Proportional output pin: XRAS, XCAS (9) Tristate output pin: XINT, HINT, HDRQ (10) Open drain output pin: DASP, XPDI, XS16, REDY 1-3. Bidirectional pins D0 to D7, MDB0 to MDB7, HDB0 to HDBF, DASP, XPDI 1-4. Oscillation cell Input: XTL1 Output: XTL2 1-5. I/O Capacitance (V DD = VI= 0V, f = 1MHz) Item Symbol Min. Typ. Max. Unit Input capacitance Output capacitance I/O capacitance C IN C OUT C I/O pF pF pF
– 9 – CXD1812Q/R 2. AC Characteristics (VDD = 5V ±10%, VSS = 0V, Topr = –20 to +75°C, Output Load = 50pF) 2-1. CPU Interface (1) Read Tdf Trdw TahTas Tdd A0 to A5 XCS XRD D0 to D7 Tdh Twwr TahTas A0 to A5 XCS XWR D0 to D7 Tds (2) Write Item Symbol Min. Typ. Max. Unit Address setup time (for XCS & XRD/XWR fl) Address hold time (for XCS & XRD/XWR ›) XRD pulse width Data delay time (for XCS & XRD fl) Data float time (for XCS & XRD ›) XWR pulse width Address setup time (for XCS & XWR ›) Address hold time (for XCS & XWR ›) Tas Tah Trdw Tdd Tdf Twwr Tds Tdh ns ns ns ns ns ns ns ns
– 10 – CXD1812Q/R 2-2. DRAM Interface (1) Read /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines/LiteDiagLinesrow col rowcol Tras Trp Trcd Tcas Tpc TascTasr Trah Tcah Tids Tidh high XRAS XCAS MA0 to MA9 XMWR MDB0 to 7 col /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines/LiteDiagLinesrow col row Tras Trp Trcd Tcas Tpc Tasr Trah Tdos Tdof XRAS XCAS MA0 to MA9 XMWR MDB0 to 7 /LiteDiagLines/LiteDiagLines /LiteDiagLines/LiteDiagLines/LiteDiagLines /LiteDiagLines col Tasc Tcah col (2) Write Item Symbol Min. Typ. Max. Unit RAS pulse width RAS precharge width RAS – CAS delay time CAS pulse width Page mode cycle time Row address setup time (for RAS fl) Row address hold time (for RAS fl) Column address setup time (for CAS fl) Column address hold time (for CAS fl) Input data setup time (for CAS ›) Input data hold time (for CAS ›) Data output setup time (for CAS fl) Data output float time (for CAS fl) Tras Trp Trcd Tcas Tpc Tasr Trah Tasc Tcah Tids Tidh Tdos Tdof 3Tw Tw – 7 Tw Tw – 14 Tw + 2 Tw + 3 2Tw 2Tw Tw 2Tw ns ns ns ns ns ns ns ns ns ns ns ns ns (Tw = 1/f)
– 11 – CXD1812Q/R 2-3. HOST Interface (1) PIO Txsl Tas Trww Tah Tas Trww Tah Tds TdhTdfTdd Trel Trel HCS0, 1 HA0 to 2 XS16 XHRD XHWR HDB0 to F REDY Item Symbol Min. Typ. Max. Unit Address setup time (for XHRD/XHWR fl) Address hold time (for XHRD/XHWR ›) XHRD/XHWR pulse width Data delay time (for XHRD fl) Data float time (for XHRD ›) Data setup time (for XHWR ›) Data hold time (for XHWR ›) XS16 fall time (for Address valid) REDY fall time (for XHRD/XHWR fl) Tas Tah Trww Tdd Tdf Tds Tdh Txsl Trel ns ns ns ns ns ns ns ns ns
– 12 – CXD1812Q/R (2) Single-word DMA Trql Tacs Trww Tach Tdf TdhTds Tdd HDRQ XHAC XHRD/ XHWR HDB0 to F (READ) HDB0 to F (WRITE) (3) Multiword DMA Trql TachTrwwThpwTrwwTacs Tdd Tdf Tdd Tdf Tds TdhTdhTds HDRQ XHAC XHRD/ XHWR HDB0 to F (READ) HDB0 to F (WRITE) Item Symbol Min. Typ. Max. Unit HDRQ fall time (for XHAC/XHRD/XHWR fl) XHRD/XHWR Low pulse width Data delay time (for XHRD fl) Data float time (for XHRD ›) Data setup time (for XHWR ›) Data hold time (for XHWR ›) XHAC setup time (for XHRD/XHWR fl) XHAC hold time (for XHRD/XHWR ›) XHRD/XHWR high pulse width Trql Trww Tdd Tdf Tds Tdh Tacs Tach Thpw Tw +11 ns ns ns ns ns ns ns ns ns (Tw = 1/f)
– 13 – CXD1812Q/R 2-4. CD DSP Interface (1) BCKRED = "H" Tbck Tbck Tsb1 Thb1 Tsb2 Thb2 BCLK MDAT LRCK C2PO Tbck Tbck Tsb1 Thb1 Tsb2 Thb2 BCLK MDAT LRCK C2PO (2) BCKRED = "L" Item Symbol Min. Typ. Max. Unit BCLK frequency BCLK pulse width MDAT setup time (for BCLK) MDAT hold time (for BCLK) LRCK, C2PO setup time (for BCLK) LRCK, C2PO hold time (for BCLK) Fbck Tbck Tsb1 Thb1 Tsb2 Thb2
20 MHz
– 14 – CXD1812Q/R Twed Teck Teck Tds Tdh SF97 SF0 SF1 SF2 SF3 WFCK SCOR SBIN EXCK SBIN EXCK Subcode Frame 2-5. Subcode Interface Item Symbol Min. Typ. Max. Unit WFCK – EXCK delay time EXCK pulse width SBIN setup time (for EXCK ›) SBIN hold time (for EXCK ›) Twed Teck Tds Tdh 2aTw 1/2aTw – 2 3aTw ns ns ns ns (Tw = 1/f) a = 48: When EXCKSL (CONFIG0 register bit 3) = High a = 32: When EXCKSL (CONFIG0 register bit 3) = Low
– 15 – CXD1812Q/R Tw Twhx Twlx Vihx VDD /2 Vilx 2-6. XTL1 and XTL2 Pins (1) When using self-excited oscillation Item Symbol Min. Typ. Max. Unit Oscillation frequency f 33.8688 40 MHz Item Symbol Min. Typ. Max. Unit High level pulse width Low level pulse width Pulse cycle Twhx Twlx Tw ns ns ns (2) When inputting a pulse to the XTL1 pin
– 16 – CXD1812Q/R Description of Functions 1. Pin Description The pin description by function is given below. 1-1. CD player interface (8 pins) This enables direct connection with the Sony's digital signal processor LSI for CD players. Digital signal processor LSI for CD applications are hereafter called "CD DSP." (1) MDAT (medium data: input) Serial data stream from CD DSP. (2) BCLK (bit clock: input) Bit clock signal; MDAT signal strobe. (3) LRCK (LR clock: input) LR clock signal; indicates left and right channels of MDAT signals. (4) C2PO (C2 pointer: input) C2 pointer signal; indicates that an error is contained in MDAT input. (5) WFCK (write frame clock: input) Write frame clock input signal. (6) SCOR (subcode sync OR: input) Subcode sync signal. (7) SBIN (subcode serial input: input) Subcode serial signal. (8) EXCK (external clock: output) Clock output for reading SBIN signals. 1-2. Buffer memory interface (21 pins) This can be connected with up to a 512K-byte DRAM (4M bits). (1) XMWR (DRAM write enable: output) DRAM write enable negative logic output signal. (2) XCAS (column address strobe: output) Negative logic output signal to indicate that column addresses are valid. (3) XRAS (row address strobe: output) Negative logic output signal to indicate that row addresses are valid. (4) MA0 to MA9 (DRAM address: output) DRAM address output. (5) MDB0 to MDB7 (DRAM data bus: input/output) DRAM data bus signal; pulled up by a standard 25kΩ resistor. 1-3. Sub CPU interface (18 pins) (1) XWR (sub CPU write: input) Strobe negative logic signal for writing internal registers. (2) XRD (sub CPU read: input) Strobe negative logic signal for reading internal registers status. (3) D0 to D7 (sub CPU data bus: input/output) 8-bit data bus; pulled up by a standard 25kΩ resistor. (4) A0 to A5 (sub CPU address: input) Address signal for selecting internal registers from sub CPU. (5) XINT (sub CPU interrupt: output) Interrupt request signal to sub CPU. Polarity can be controlled by sub CPU. (6) XCS (chip select: input) Chip select negative logic signal from sub CPU.
– 17 – CXD1812Q/R 1-4. HOST interface (31 pins) (1) HCS0 (host chip select: input) Chip select negative logic signal from host; pulled up by a standard 50kΩ resistor. This is connected with the CS1FX pin of ATAPI I/F. (2) HCS1 (host chip select: input) Chip select negative logic signal from host; pulled up by a standard 50kΩ resistor. This is connected with the CS3FX pin of ATAPI I/F. (3) HA0 to HA2 (host address: input) Address signal for selecting internal registers from host. (4) DASP (drive active/slave present: input/output) Negative logic signal to indicate that slave drive is present or drive is active; open drain signal. (5) HDB0 to HDBF (host data bus: input/output) 16-bit host data bus signal. (6) XHRD (host read: input) Data read strobe negative logic signal from host. (7) XHWR (host write: input) Data write strobe negative logic signal from host. (8) XHAC (host DMA acknowledge: input) DMA data request acknowledge negative logic signal from host. (9) HDRQ (host DMA request: output) DMA data request positive logic signal to host; tristate output. (10) HINT (host interrupt: output) Interrupt request positive logic signal to host; tristate output. (11) XS16 (16-bit data transfer: output) Negative logic signal to indicate that the 16-bit data port has been selected; open drain signal. This is connected with the IOCS16 pin of ATAPI I/F. (12) REDY (I/O channel ready: output) Positive logic signal to be negated when the drive is not ready to respond to a data transfer reguest; open drain signal. This is connected with the IORDY pin of ATAPI I/F. (13) XPDI (passed diagnostics: input/output) Negative logic signal that indicates diagnostics of the slave drive has been completed; open drain signal. This is connected with the PDIAG pin of ATAPI I/F. (14) HRST (host reset: input) Reset negative logic signal from host; pulled up by a standard 50kΩ resistor. 1-5. Others (5 pins) (1) XRST (reset: input) Chip reset negative logic input signal. (2) XTL1 (crystal 1: input) (3) XTL2 (crystal 2: output) A crystal oscillator is connected between XTL1 and XTL2. (The capacitor value depends on the crystal oscillator.) (4) MCLK (clock: output) Outputs a clock signal of the same frequency as that of XTL1. The output can be set at low when this clock signal is not used. (5) HCLK (half clock: output) Outputs a clock signal with 1/2 the frequency of XTL1. The output can be set at low when this signal is not used. 1-6. Power supply (17 pins) V DD : 4 pins, GND: 13 pins.
– 18 – CXD1812Q/R 2. Sub CPU Write Registers Normally set at low for reserved registers and bits. 2-1. CONFIG0 (configuration 0) register (address 00 HEX ) bit 7: CINTPOL (sub CPU interrupt polarity) High: The XINT pin becomes high-active. When the register is inactive, the low state is established. Low: The XINT pin becomes low-active. When the register is inactive, high impedance is established. bit 6: M/S SEL (master/slave select) This bit is valid only when M/S EN (bit 5) is high. High: Set this bit high when a slave drive is used. Low: Set this bit low when a master drive is used. bit 5: M/S EN (master/slave mode enable) Set this bit as follows according to the number of drives connected to ATAPI I/F. High: Set this bit high when two drives are connected to ATAPI I/F. One is used as the master drive and the other is the slave drive. Low: Set this bit low when only one drive is connected to ATAPI I/F. bit 4: RESERVED bit 3: EXCKSL (EXCK select) The frequency of EXCK clock signal for picking up subcodes from CD DSP is determined by this bit. The sub CPU sets this register according to the clock frequency and the playback speed of the XTL1 pin. (Max. frequency of EXCK clock signal is 1MHz.) High: The EXCK frequency is 1/48 the frequency of XTL1. When the frequency of the XTL1 pin is more than 32MHz, this bit is set high. Low: The EXCK frequency is determined to be 1/32 the frequency of XTL1. When the frequency of the XTL1 pin is not more than 32MHz, this bit is set low. bit 2: DISMCLK (disable MCLK output) High: The MCLK pin is fixed at low. Low: The clock signal of the same frequency as that of the XTL1 pin is output from the MCLK pin. bit 1: DISHCLK (disable HCLK output) High: HCLK pin is fixed at low. Low: The frequency divider clock signal of half the frequency of XTL1 pin is output from HCLK pin. bit 0: RAMSIZE (RAM size) High: When a 4M-bit DRAM is connected, set this bit high. Low: When a DRAM of up to 2M bits is connected, set this bit low. 2-2. CONFIG1 (configuration 1) register (address 01 HEX ) bit 7: SWOPEN (sync window open) High: A window for Sync mark detection is opened. In this case, the internal Sync protection circuit is disabled. Low: A window for Sync mark detection is controlled by the internal Sync protection circuit. bit 6 to 4: SYCNGC2 to 0 (sync NG count 2 to 0) Set "010" for these bits. bit 3: RESERVED
– 19 – CXD1812Q/R bit 2, 1: RFRSCTL1, 0 (refresh control 1, 0) The refresh interval of the DRAM can be controlled by these bits. Set these bits according to the clock frequency of XTL1. The refresh interval is designed as 512 cycle/8ms. RFRSCTL1 RFRSCTL0 "L" "L" "H" "H" "L" "H" "L" "H" XTL1 frequency: less than 24MHz XTL1 frequency: 24MHz or more XTL1 frequency: 32MHz or more XTL1 frequency: 33.8688MHz or more ENBYTFBT RAM size "L" "H" "L" "H" "L" "H" "L" "H" "L" "H" 32KB 64KB 128KB 256KB 512KB LASTARA HEX BD bit0 RESERVED 2-3. LSTARA (last area) register (address 02 HEX ) The last area is assigned by this register. The following table shows the set values of LASTARA when the buffer memory is fully used. 2-4. LHADR (last HADRC) register (address 03 HEX ) Assigns the upper limit (upper 8 bits) of HADRC when the automatic transfer mode to the host is disabled, or the upper limit (upper 8 bits) of the address when the row subcode buffering command is executed. The lower 11 bits are assigned to 7FF HEX . 2-5. DRVIF (drive interface) register (address 04HEX ) This register controls the connection mode with the CD DSP. After the IC is reset, the sub CPU sets this register according to the CD DSP to be connected. Any change of each bit in this register must be made in the decoder disable status. (After the IC is reset, the address is set 28 HEX .) Figs. 1-1 and 1-2 are input timing charts for Sony's typical CD DSP.
– 20 – CXD1812Q/R 123456789 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 L0L1L2L3L4L5L6L7L8L9L10L11L12L13L14L15R0R1 Lch LSBLch MSBRch LSB C2 Pointer for Upper byte C2 Pointer for Lower byte LRCK BCLK MDAT C2PO 1 2 3 4 5 6 7 8 9 1 01 11 21 31 41 51 61 71 81 92 02 12 22 32 42 52 62 72 82 93 03 13 2 R15R14R13R12R11R10R9R8R7R6R5R4R3R2R1R0L14 Lch MSB Rch LSB Rch MSB C2 Pointer for Upper byte C2 Pointer for Lower byte LRCK BCLK MDAT C2PO L15 Fig. 1-1. CDL40 and 50 Series Timing Chart (48-bit slot mode) Fig. 1-2. CDL40 and 50 Series Timing Chart (64-bit slot mode)
– 21 – CXD1812Q/R bit 7: C2PL1ST (C2PO lower byte first) High: When 2 bytes of MDAT are input, C2PO inputs the lower byte first followed by the upper byte. Low: When 2 bytes of MDAT are input, C2PO inputs the upper byte first followed by the lower byte. Here, "upper byte" means the upper 8 bits including MSB from the CD DSP and "lower byte" means the lower 8 bits including LSB from the CD DSP. For example, the Header minute byte is the lower byte and the second byte, the upper byte. bit 6: LCHLOW (Lch low) High: When LRCK is low, determined to be the left channel data. Low: When LRCK is high, determined to be the left channel data. bit 5: BCKRED (BCLK rising edge) High: MDAT is strobed at the rising edge of BCLK. Low: MDAT is strobed at the falling edge of BCLK. bit 4, 3: BCKMD1, 0 (BCLK mode 1, 0) These bits are set according to the number of clocks output for BCLK during one WCLK cycle by the CD DSP. bit 2: LSB1ST (LSB first) High: Connected with the CD DSP which outputs MDAT with LSB first. Low: Connected with the CD DSP which outputs MDAT with MSB first. bit 1, 0: RESERVED 2-6. XFRFMT0 (transfer format 0) register (address 05 HEX ) The transfer format for automatic data transfer is determined by this register. This IC transfers the buffer memory data to the host according to the Mode/Form value written by SCTINF register (address 1E HEX ) into the internal RAM by sector and the values of XFRFMT1 and 0 registers. The Mode/Form of bits 3 to 1 depends on the values of bits 2 and 1 of SCTINF register. Regarding Mode 2 in Yellow Book, don't care the Form2 (bit 2) of SCTINF register. Set bits 3 to 1 of XFRFMT0 register high to transfer 2336 bytes of user data. bit 7, 6: RESERVED bit 5: SYNC High: The Sync mark is transferred to the host. Low: The Sync mark is not transferred to the host. bit 4: HEADER High: The Header's 4 bytes are transferred to the host. Low: The Header's 4 bytes are not transferred to the host. bit 3: SUBHEADER High: Mode1: This bit has no meaning. Mode 2: The Sub Header's 8 bytes are transferred to the host. Low: The bytes above are not transferred to the host. BCKMD1 BCKMD0 "L" "L" "H" "L" "H" "X" 16BCLKs/WCLK 24BCLKs/WCLK 32BCLKs/WCLK
– 22 – CXD1812Q/R bit 2: USERDATA (user data) High: Mode1 and Mode2/Form1: User data (2048 bytes) are transferred to the host. Mode2/Form2: User data (2324 bytes) are transferred to the host. Low: The bytes above are not transferred to the host. bit 1: PARITY High: Mode1: The EDC, ECC parity and eight 00HEX bytes, for a total of 288 bytes, are transferred to the host. Mode2/Form1: The EDC and ECC parity (280 bytes) are transferred to the host. Mode2/Form2: RESERVED bytes (4 bytes) (the final ones in the sector concerned) are transferred to the host. Low: The bytes above are not transferred to the host. bit 0: RESERVED Regarding CD-DA data, set bits 5 to 1 high. 2-7. XFRFMT1 (transfer format 1) register (address 06 HEX ) bit 7: ENBLKEFL (enable block error flag) High: Block error flag (1 byte + 00HEX ) is transferred to the host. Here, block error flag means operating OR by bit of the byte error flag. Low: The bytes above are not transferred to the host. bit 6: RESERVED bit 5: ENBYTFBT (enable byte error flag buffering and transfer) When this bit is set high, the following operations are performed. When this bit is set low, the following operations are not performed. This bit is valid only when the USERDATA bit (bit 2) of XFRFMT0 register is set high. (1) When write-only, real-time correction, or CD-DA command is being executed, byte error flag is buffered. (2) When the automatic transfer mode to the host is enabled (that is, the AUTOXFR bit of XFRCTL register (bit 7) is high), byte error flag is transferred to the host. bit 4: RESERVED bit 3: ENSBCBT (enable subcode buffering and transfer) When this bit is set high, the following operations are performed. When this bit is set low, the following operations are not performed. (1) When CD-DA command is being executed, all the subcodes or the subcode-Q are buffered. (2) When the automatic transfer mode to the host is enabled (that is, the AUTOXFR bit of XFRCTL register (bit 7) is high), all the subcodes or the subcode-Q are transferred to the host. bit 2: ALLSBC (all subcodes/subcode-Q) When ENSBCBT is set high, whether all the subcodes or the subcode-Q are to be buffered or transferred to the host is determined. High: All the subcodes Low: Subcode-Q bit 1: RESERVED bit 0: ZASUBQ (zero after sub-Q) This bit is valid only when ENSBCBT is high and ALLSBC is low. High: 6-byte 00 HEX in addition to the subcode-Q are transferred to the host. Low: 2-byte CRC and 4-byte 00HEX in addition to the subcode-Q are transferred to the host.
– 23 – CXD1812Q/R 2-8. DECCTL0 (decoder control 0) register (address 07HEX ) bit 7: AUTODIST (auto distinction) High: Errors are corrected according to the Mode byte and the Form bit read by the drive. Low: Errors are corrected according to the MODESEL and FORMSEL bits (bits 6 and 5). bit 6: MODESEL (mode select) bit 5: FORMSEL (form select) When AUTODIST is set low, the sector is corrected in the Mode or Form indicated below. bit 4: RESERVED bit 3: ENFM2EDC (enable form 2 EDC check) High: EDC check for Form2 is enabled. Low: EDC check for Form2 is disabled. The EDCNG bit of DECSTS0 register is set low. bit 2: MDBYTCTL (mode byte control) High: Even if there are data other than 0 in the upper 6 bits of the Header's Mode byte, it is not determined to be an error. Set this bit high when a CD-DA command is executed or the disc such as CD-R is played back. Low: If the upper 6 bits of the Header's Mode byte are not "000000," it is determined to be an error. bit 1: ENDLA (enable drive last area (address)) High: DLAR (drive last area)/SLADR (subcode last address) is enabled. When buffering of the buffer memory area assigned by DLAR is completed while the decoder is executing the write-only, real-time correction, or CD-DA command, the DRVOVRN (drive over run) status is established. When buffering to the address assigned by SLADR is completed while the subcode buffering command is being executed, the DRVOVRN status is established. In the DRVOVRN status,data writing into the buffer is stopped. Low: DLAR (drive last area)/SLADR (subcode last address) is disabled. bit 0: ATDLRNEW (Auto DLARA renewal) High: When the data transfer to host is completed for one sector, DLARA is renewed in the written area of the sector. Low: Renewal of DLARA is executed by the sub CPU. MODESEL FORMSEL "L" "H" "H" "L" "L" "H" MODE1 MODE2, FORM1 MODE2, FORM2
– 24 – CXD1812Q/R 2-9. DECCTL1 (decoder control 1) register (address 08HEX ) bit 7: ENSBQRD (enable subcode-Q read) CRC of subcode-Q is checked by taking in the subcode from DSP. Sub CPU can read subcode-Q data from the SUBQ register. bit 6: RESERVED bit 5 to 3: DECCMD2 to 0 (decoder commands 2 to 0) bit 2 to 0: RESERVED 2-10. XFRMOD (transfer mode) register (address 09 HEX ) bit 7: ENHINTCT (enable auto HINT upon start of packet command transfer) High: When packet command transfer starts, there is an interrupt request to the host. Low: When the transfer above starts, there is no interrupt request to the host. bit 6: ENHINTDT (enable auto HINT upon start of data transfer) High: When data transfer with the host starts, there is an interrupt request to the host. Low: When the transfer above starts, there is no interrupt request to the host. bit 5: ENMDMA (enable multiword DMA) This bit is valid for DMA transfer. High: DMA transfer is executed in the multiword mode. Low: DMA transfer is executed in the single-word mode. bit 4: ENDMABIT (enable ATAPI feature register DMA bit) bit 3: PIOSEL (PIO transfer mode select) Transfer mode is determined as shown below from the combination of these bits and the DMA bit (bit 0) of ATAPI feature register. bit 2: AUTOWAIT (enable auto wait state) This bit is valid for PIO transfer. High: In the cases below, the REDY pin is set low and a wait is automatically applied to the host. Transfer to host: When the host asserts the XHRD signal while the data FIFO is empty. Transfer from host: When the host asserts the XHWR signal while the data FIFO is full. Low: The wait state above does not occur. DECCMD2 DECCMD1 Decoder command "L" "L" "L" "L" "H" "H" "L" "L" "H" "H" "L" "H" DECCMD0 "L" "H" "L" "H" "H" "H" Decoder disable Monitor only Write only Real-time correction Raw subcode buffer CD-DA PIOSEL ENDMABIT Transfer Mode "H" "L" "L" "L" "X" "H" "H" "L" DMA "X" "H" "L" "X" PIO DMA PIO DMA
– 25 – CXD1812Q/R bit 1, 0: WAITCYCL1, 0 These bits are valid for PIO transfer. If the host asserts XHRD/XHWR during data transfer, the REDY pin is set low by the cycle number set with these bits, and a wait is applied. One cycle is XTL1 cycle. 00: Wait state does not occur. 01: Wait state of 4 to 8 cycles occurs. 10: Wait state of 8 to 12 cycles occurs. 11: Wait state of 12 to 16 cycles occurs. 2-11. XFRCTL0 (transfer control 0) register (address 0A HEX ) bit 7: AUTOXFR (auto transfer) High: The automatic transfer mode to the host described later is enabled. Low: The automatic transfer mode to the host above is disabled. Transfer to the host is executed by setting HADRC and HXFRC. bit 6 to 4: RESERVED bit 3: CPUDMAEN (sub CPU DMA enable) The buffer memory access by sub CPU is enabled by setting this bit high. The sub CPU sets this bit high after the head addresses of buffer access have been set on the CADRC. bit 2: CPUSRC (sub CPU source) High: Data are transferred from sub CPU to buffer memory. Low: Data are transferred from buffer memory to sub CPU. bit 1 to 0: RESERVED 2-12. XFRCTL1 (transfer control 1) register (address 0B HEX ) bit 7: PFIFOCL (packet FIFO clear) When this bit is set high, the packet FIFO is cleared. This bit is automatically set low after FIFO has been cleared. bit 6: RESERVED bit 5: AUTOEND (enable auto transfer termination) The following settings are automatically made upon completion of data transfer. High: ATAPI status register - bit 7/bit 6/bit 3: BUSY/DRDY/DRQ = Low/High/Low ATAPI interrupt reason register - bit 1/bit 0: IO/CoD = High/High Interrupt request signal to host: HINT = High Low: ATAPI status register - bit 7/bit 3: BUSY/DRQ = High/Low Interrupt request signal to host: HINT = Low bit 4: HSTXFREN (host transfer enable) When this bit is set high, transfer starts between the host and buffer memory. This bit is automatically set low when transfer is completed. The following settings are automatically operated by setting this bit high. ATAPI status register -bit 3: DRQ = High ATAPI status register -bit 7: BUSY = Low (in the PIO mode) bit 3, 2: RESERVED
– 26 – CXD1812Q/R bit 1: IO (host transfer direction) To set this bit, the ATAPI status register -bit 7: BUSY bit must be high. High: Data are transferred from the buffer memory to the host. Low: Data are transferred from the host to the buffer memory. bit 0: CoD (command or data) To set this bit, the ATAPI status register -bit 7: BUSY bit must be high. High: Indicates that data transferred are Command. Low: Indicates that the data transferred are user data. 2-13. RESERVED (address 0C HEX ) 2-14. CHPCTL0 (chip control 0) register (address 0DHEX ) bit 7: CHIPRST (chip reset) This IC is reset by setting this bit high. bit 6: TGTMET (target met) (1) If the target sector is found while the write-only or real-time correction command is being executed, the sub CPU sets TGTMET high. (2) TGTMET bit is sampled at the 3/4 sector (variable depending on playback speed) after the decoder interrupt. Therefore, if the target sector has been found, the sub CPU must set the TGTMET bit high within this time after DECINT. (3) Once the TGTMET bit is set high, the high state is held until the decoder is disabled. (4) When the sampled TGTMET is low, while write-only or real-time correction is executed,
- the buffering area of main data or subcode is not renewed.
- main data are not corrected. bit 5: INCTGT (increment target register) When this bit is set high, TARGET registers (TGTMIN, TGTSEC, TGTBLK) are incremented. TARGET registers use the BCD code. TGTMIN, TGTSEC, and TGTBLK are connected in cascading fashion, and are incremented as follows: (1) The TGTBLK register value is always incremented by this bit. The address number 0 follows 74. (2) The TGTSEC register value is incremented when this bit is high while the TGTBLK register value is 74. The address number 0 follows 59. (3) The TGTMIN register value is incremented when this bit is high, while the TGTBLK register value is 74 and the TGTSEC register value 59. The address number 0 follows 99. bit 4: RPCORTRG (repeat correction trigger) When this bit is set high with the decoder disabled, error correction for the CD-ROM sector starts. The sector to be corrected is assigned by the BFARA# register. bit 3 to 0: RESERVED
– 27 – CXD1812Q/R 2-15. CHPCTL1 (chip control 1) register (address 0EHEX ) bit 7 to 3: RESERVED bit 2: DASP (DASP pin control) When this bit is set high, the DASP signal is asserted. bit 1: PDIAG (XPDI pin control) When this bit is set high, the XPDI signal is asserted. bit 0: CLRHINT (clear HINT) HINT is cleared by setting this bit high. This bit is automatically set low when HINT has been cleared. 2-16. Diskette change/drive address register (address 0F HEX ) bit 7: RESERVED bit 6 to 2: Optional values can be set by sub CPU. These values can be read from bits 6 to 2 of the diskette change/drive address register of the host. bit 1 to 0: RESERVED 2-17. ATAPI error register (address 10 HEX ) This register corresponds to the ATAPI error register of the host. The sub CPU can set any optional values. bit 7 to 4: SENSE KEY bit 3: MCR (Media Change Requested) bit 2: ABRT (Aborted Command) bit 1: EOM (End Of Media Detected) bit 0: ILI (Illegal Length Indication) 2-18. ATAPI feature register (address 11 HEX ) This register corresponds to the ATAPI feature register of the host. The sub CPU can set any optional values in this register when the ATAPI status register -bit 7: BUSY bit is high. bit 0: DMA 2-19. ATAPI interrupt reason register (address 12 HEX ) This register corresponds to the ATAPI interrupt reason register of the host. The sub CPU can set any optional values in this register when the ATAPI status register -bit 7: BUSY bit is high. bit 1: IO This bit is equivalent to the XFRCTL1 (address 0B HEX ) register -bit 1. bit 0: CoD This bit is equivalent to the XFRCTL1 (address 0BHEX ) register -bit 0. 2-20. ATA sector number register (address 13HEX ) This register corresponds to the ATA sector number register of the host. The sub CPU can set any optional values in this register when the ATAPI status register -bit 7: BUSY bit is high. 2-21. ATAPI byte count high/low register (address 14, 15 HEX ) This register corresponds to the ATAPI byte count high/low register of the host. The number of bytes to be transferred is set. The sub CPU can set any optional values in this register when the ATAPI status register -bit 7: BUSY bit is high.
– 28 – CXD1812Q/R 2-22. ATAPI drive select register (address 16HEX ) This register corresponds to the ATAPI drive select register of the host. The sub CPU can set any optional values in this register when the ATAPI status register -bit 7: BUSY bit is high. bit 4: DRV 2-23. ATA command register (address 17 HEX ) This register corresponds to the ATA command register of the host. The sub CPU can set any optional values in this register when the ATAPI status register -bit 7: BUSY bit is high. However, the ATAPI soft reset command (08 HEX ) can be set regardless of the value of the BUSY bit. 2-24. RESERVED (address 18HEX ) 2-25. ATAPI status 1 register (address 19HEX ) bit 7, 6: RESERVED bit 5: DRDY1 (drive 1 ready) This bit corresponds to the ATAPI status register -bit 6: DRDY bit of the host. The DRDY status of the slave drive is set. bit 4: DSC1 (drive 1 seek complete) This bit corresponds to the ATAPI status register -bit 4: DSC bit of the host. The DSC status of the slave drive is set. bit 3: HST5 This bit corresponds to the ATAPI status register -bit 5 of the host. bit 2: HST1 This bit corresponds to the ATAPI status register -bit 1 of the host. bit 1: DRDY0 (drive 0 ready) This bit corresponds to the ATAPI status register -bit 6: DRDY bit of the host. The DRDY status of the master drive is set. bit 0: DSC0 (drive 0 seek complete) This bit corresponds to the ATAPI status register -bit 4: DSC bit of the host. The DSC status of the master drive is set. 2-26. ATAPI status 2/drive control register (address 1A HEX ) bit 7: BUSY This bit corresponds to the ATAPI status register -bit 7 of the host. This bit must be set high when the sub CPU accesses the group of command block registers. bit 6: RESERVED bit 5: CORR This bit corresponds to the ATAPI status register -bit 2 of the host. bit 4: ENHINT (enable HINT) An interrupt to the host can be made by setting this bit high. bit 3 to 1: RESERVED bit 0: CHECK This bit corresponds to the ATAPI status register -bit 0 of the host.
– 29 – CXD1812Q/R 2-27. UNLOCK (release lock mode) register (address 1BHEX ) The bits 5 to 0 of ATAPI status 1 register (address 19HEX ), the bits 1 and 0 of XFRCTL1 register (address 0BHEX ), and ATAPI interrupt reason register (address 12HEX ) are locked in the cases below, making setting from sub CPU impossible.
- When an ATAPI packet command (A0HEX ) is detected.
- When data transfer with the host is completed while the XFRCTL1 register (address 0BHEX ) bit 5: AUTOEND is high. The sub CPU can release the lock mode above by accessing this register. 2-28. CPUBWDT (CPU buffer write data) register (address 1CHEX ) The sub CPU writes data to be written in the buffer memory into this register. 2-29. RESERVED (address 1DHEX ) 2-30. SCTINF (sector information) register (address 1EHEX ) The current sector information is written into this register at DECINT. For automatic transfer of information to the host, make sure this register is set for each DECINT. The value of this register is written into the internal RAM. bit 7 to 3: RESERVED bit 2: Mode2 High: This sector is in Mode2. Low: This sector is in Mode1 or CD-DA. bit 1: Form2 This bit is valid only when the Mode2 bit is high. High: This sector is in Form2. Low: This sector is in Form1. Both low and high are available for this bit in the Mode2 for Yellow Book. MODE2 FORM2 "L" "H" "H" "L" "L" "L" "H" "X" MODE1 MODE2/FORM1 MODE2/FORM2 CD-DA bit 0: RESERVED 2-31. RESERVED register (address 1F, 20 HEX ) 2-32. TGTMIN (target minute) register (address 21HEX ) 0 to 99 2-33. TGTSEC (target sector ) register (address 22HEX ) 0 to 59
– 30 – CXD1812Q/R 2-34. TGTBLK (target block) register (address 23HEX ) 0 to 74 When the monitor-only, write-only, or real-time correction command is executed, set the addresses of the target sector in three target registers. This address is compared with the read sector address, and if they do not match, the TGTNTMET (target not met) status (DECSTS0 register: bit 0) is established. 2-35. XFRCNT (transfer block counter) register (address 24 HEX ) This 8-bit register indicates the remaining number of blocks to be transferred. The sub CPU sets the total number of blocks to be transferred before transfer starts. This register value is decremented after one block has been transferred. The sub CPU can read the value of XFRCNT at any time. However, take care over ±1 error between the read value and actual one, because the reading from sub CPU does not synchronize with variations of XFRCNT. 2-36. BFARA# (buffering area number) register (address 25 HEX ) The buffer area is indicated by this register when write-only, real-time correction, or CD-DA command is executed. The sub CPU, first assigns the area to start buffering before any of these commands is executed. The register value is incremented after one sector is buffered. Buffering starts from the address 0 when the subcode buffering command is executed. 2-37. DLARA (drive last area) register (address 26 HEX ) While the decoder is executing the write-only, real-time correction, or CD-DA command, the last area for buffering is assigned by this register. When the ENDLA (bit 1) of the DECCTL0 register is set high and data from the drive (CD DSP) are written into the area assigned by DLARA while the decoder is executing any of the above commands, all subsequent buffering is prohibited. 2-38. XFRARA (transfer area) register (address 27 HEX ) The first area for starting transfer is assigned in the automatic transfer mode. The register value is incremented after one block is transferred. The sub CPU can read the value of XFRARA at any time. However, take care over ±1 error between the read value and actual one, because the reading from sub CPU does not synchronize with the variation of XFRARA. 2-39. RESERVED (address 28 HEX ) 2-40. HXFRC-H, M, L (host transfer counter - high, middle, low) register (address 29 to 2BHEX ) The number of bytes to be transferred is set in the manual transfer mode. (19 bits) 2-41. RESERVED (address 2CHEX ) 2-42. HADRC-H, M, L (host address counter - high, middle, low) register (address 2D to 2FHEX ) The head address to start transfer is assigned in the manual transfer mode. 2-43. RESERVED (address 30HEX ) 2-44. SLADR-H, M, L (subcode last address - high, middle, low) register (address 31 to 33HEX ) While the subcode buffering command is being executed, the last address for buffering is set. When the ENDLA (bit 1) of the DECCTL0 register is set high and data are written into the buffer address assigned by SLADR while the decoder is executing the subcode buffering command, all subsequent buffering is prohibited.
– 31 – CXD1812Q/R 2-45. RESERVED (address 34HEX ) 2-46. CADRC-H, M, L (sub CPU address counter - high, middle, low) register (address 35 to 37HEX ) The addresses are set by this register when the sub CPU accesses the buffer memory. The register value is incremented if the data concerned are read from the buffer memory or are written into it. 2-47. RESERVED (address 38 to 3B HEX ) 2-48. CLRINT0 (clear interrupt status 0) register (address 3CHEX ) When each bit of this register is set high, the corresponding interrupt status is cleared. The bit is automatically set low after its interrupt status has been cleared. Therefore, there is no need for the sub CPU to reset to low. bit 7: DECINT (Decoder Interrupt) bit 6: DECTOUT (Decoder Timeout) bit 5: DRVOVRN (Drive Overrun) bit 4: SUBCSYNC (Subcode Sync) bit 3, 2: RESERVED bit 1: SOFTRST (SRST Detected) bit 0: HARDRST (HRST Detected) 2-49. CLRINT1 (clear interrupt status 1) register (address 3D HEX ) When each bit of this register is set high, the corresponding interrupt status is cleared. The bit is automatically set low after its interrupt status has been cleared. Therefore, there is no need for the sub CPU to reset to low. bit 7: PFIFOFUL (Packet FIFO Full) bit 6: RESERVED bit 5: RSTCMD (Reset Command) bit 4: STSREAD (Host Status Read) bit 3: HSTCMD (Host Command) bit 2: PIONG (PIO Transfer NG) bit 1: XFRSTOP (Transfer Stop) bit 0: BLXFRCMP (Block Transfer Complete) 2-50. INTEN0 (interrupt enable 0) register (address 3E HEX ) When each bit of this register is set high, the interrupt request to the sub CPU by the corresponding interrupt status is enabled. (That is, the XINT pin becomes active in the interrupt status.) Each bit value of this register has no effect on the corresponding interrupt status. bit 7: DECINT (Decoder Interrupt) bit 6: DECTOUT (Decoder Timeout) bit 5: DRVOVRN (Drive Overrun) bit 4: SUBCSYNC (Subcode Sync) bit 3, 2: RESERVED bit 1: SOFTRST (SRST Detected) bit 0: HARDRST (HRST Detected)
– 32 – CXD1812Q/R 2-51. INTEN1 (interrupt enable 1) register (address 3FHEX ) When each bit of this register is set high, the interrupt request to the sub CPU by the corresponding interrupt status is enabled. (That is, the XINT pin becomes active in the interrupt status.) Each bit value of this register has no effect on the corresponding interrupt status. bit 7: PFIFOFUL (Packet FIFO Full) bit 6: RESERVED bit 5: RSTCMD (Reset Command) bit 4: STSREAD (Host Status Read) bit 3: HSTCMD (Host Command) bit 2: PIONG (PIO Transfer NG) bit 1: XFRSTOP (Transfer Stop) bit 0: BLXFRCMP (Block Transfer Complete)
– 33 – CXD1812Q/R 3. Sub CPU Read Registers Descriptions that are identical with those for the write registers are omitted here. 3-1. DRVSTS (drive status) register (address 00HEX ) The values set by the sub CPU can be read by this register. bit 7: CINTPOL (subCPU Interrupt Polarity) bit 6: M/S SEL (Master/Slave select) bit 5: M/S EN (Master/Slave mode Enable) bit 4, 3: RESERVED bit 2, 1: RFRSCTL1, 0 (Refresh Control1, 0) bit 1: RESERVED 3-2. RAWHDR (raw header) register (address 01 HEX ) The Header bytes of the sector sent from the CD DSP can be read by this register at DECINT. 3-3. BFHDR (buffer header) register (address 02HEX ) The Header bytes of the current sector can be read when the write-only or real-time correction command is executed, or after repeat correction has been executed. This register is invalid when the decoder is executing the disable or the monitor-only command. 3-4. BFSHDR (buffer sub header) register (address 03 HEX ) The Sub Header bytes of the current sector can be read when the write-only or real-time correction command is executed, or after repeat correction has been executed. This register is invalid when the decoder is executing the disable or the monitor-only command. 3-5. RAWHDRFLG (raw header flag) register (address 04 HEX ) Indicates the C2PO value in the RAWHDR register. bit 7: Minute bit 6: Second bit 5: Block bit 4: Mode bit 3 to 0: RESERVED 3-6. BFHDRFLG (buffer header flag) (address 05 HEX ) Indicates the error state of each byte of BFHDR and BFSHDR registers. High means an error. bit 7: Minute bit 6: Second bit 5: Block bit 4: Mode bit 3: File bit 2: Channel bit 1: Submode bit 0: Data Type
– 34 – CXD1812Q/R 3-7. RESERVED (address 06HEX ) 3-8. DECSTS0 (decoder status 0) register (address 07HEX ) bit 7: SHRTSCT (short sector) Indicates that the Sync mark interval was not more than 2351 bytes. This sector does not remain in the buffer memory. bit 6: NOSYNC Indicates that the Sync mark was inserted, because one was not detected at the prescribed position. bit 5: CORINH (correction inhibit) This is high if the current sector Mode and Form cannot be determined when the AUTODIST bit of the DECCTL register is set high. ECC or EDC is not executed in this sector. The CORINH bit is invalid when AUTODIST is set low. It is high under any of the conditions below when the AUTODIST bit is set high. (1) When there is an error in the Mode byte. (2) When the Mode byte is a value other than 01 HEX or 02HEX . (3) When the Mode byte is 02HEX and the C2 pointer is high in the submode byte. bit 4: ERINBLK (erasure in block) When the decoder is operating in the monitor-only, write-only, or real-time correction mode, this indicates that at least a 1-byte error flag (C2PO) has been raised in the data, excluding the Sync mark from the current sector CD DSP. When the decoder is operating in the CD-DA mode, this indicates that at least a 1-byte error flag (C2PO) has been raised in the data from one sector (2352 bytes). bit 3: CORDONE (correction done) Indicates that there is an error-corrected byte in the current sector. bit 2: EDCNG Indicates that an error was found by the EDC check in the current sector. bit 1: ECCNG Indicates that there was an uncorrectable error from the Header byte to the P parity byte in the current sector. (ECCNG = don't care in the Mode2, Form2 sectors.) bit 0: TGTNTMET (target not met) Indicates that the target addresses in the TGTMNT, TGTSEC, and TGTBLK registers do not correspond with that of the read sector. 3-9. DECSTS1 (decoder status 1) register (address 08 HEX ) bit 7 to 3: RESERVED bit 2: EDCALL0 (EDC all 0) This bit is high if there are no errors in the 4-EDC parity bytes of the current sector and the value is HEX . bit 1: CMODE (correction mode) bit 0: CFORM (correction form) Indicates the Mode and Form the decoder has discriminated to correct errors of the current sector when the decoder is operating in the real-time correction or repeat correction mode. CMODE CFORM "L" "H" "H" "X" "L" "H" MODE1 MODE2, FORM1 MODE2, FORM2
– 35 – CXD1812Q/R 3-10. XFRMOD (transfer mode) register (address 09HEX ) The values set by sub CPU can be read by this register. bit 7: ENHINTCT (Enable Auto HINT upon Start of Packet Command Transfer) bit 6: ENHINTDT (Enable Auto HINT upon Start of Data Transfer) bit 5: ENMDMA (Enable Multiword DMA) bit 4: ENDMABIT (Enable ATAPI Feature resister DMA bit) bit 3: PIOSEL (PIO Transfer Mode Select) bit 2: AUTOWAIT (Enable Auto Wait State) bit 1, 0: WAITCYCL1, 0 (Wait Cycle 1, 0) 3-11. XFRSTS0 (data transfer status 0) register (address 0A HEX ) bit 7 to 2: RESERVED bit 1: CBFWRRDY (sub CPU buffer write ready) The sub CPU can write in the CPUBWDT register when this bit is high. bit 0: CBFRDRDY (sub CPU buffer read ready) The sub CPU can read the CPUBWDT register when this bit is high. 3-12. XFRSTS1 (data transfer status 1) register (address 0B HEX ) bit 7, 6: RESERVED bit 5: AUTOEND (enable auto transfer termination) Value set by sub CPU can be read. bit 4: RESERVED bit 3: PFIFOFUL (packet FIFO full status) When a 12-byte packet command is written to the packet FIFO from the host, this bit is set high. bit 2: PFIFOEMP (packet FIFO empty status) When 12-byte data are read by sub CPU from the packet FIFO, this bit is set high. These bits are automatically cleared when an ATAPI packet command (A0 HEX ) or an ATAPI soft reset command (08HEX ) is issued. bit 1: IO (HOST transfer direction) This bit can be set by both sub CPU and host. In the cases below, the bit is automatically set. High: When the XFRCTL1 register (0B HEX ) -bit 5: AUTOEND is high and the data transfer has been completed. Low: When an ATAPI packet command (A0HEX ) is issued. bit 0: CoD (command or data) This bit can be set by both sub CPU and host. In the cases below, this bit is automatically set. High: When an ATAPI packet command (A0 HEX ) is issued. Low: When the XFRCTL1 register (0BHEX ) -bit 5: AUTOEND is high and the data transfer has been completed.
– 36 – CXD1812Q/R 3-13. RESERVED (address 0C, 0DHEX ) 3-14. CHPSTS (chip status) register (address 0EHEX ) bit 7 to 3: RESERVED bit 2: DASP bit 1: PDIAG The DASP and XPDI pins can be monitored from these bits. Positive logic. bit 0: RESERVED 3-15. REV (revision number) register (address 0F HEX ) The revision number of this IC is 83HEX . 3-16. ATAPI error register (address 10HEX ) This register corresponds to the ATAPI error register of the host. The values set by sub CPU can be read. bit 7 to 4: SENSE KEY bit 3: MCR (Media Change Requested) bit 2: ABRT (Aborted Command) bit 1: EOM (End Of Media Detected) bit 0: ILI (Illegal Length Indication) 3-17. ATAPI feature register (address 11 HEX ) This register corresponds to the ATAPI feature register of the host. The values set by sub CPU or host can be read. bit 0: DMA 3-18. ATA sector count register (address 12 HEX ) This register corresponds to the ATA sector count/ATAPI interrupt reason register of the host. The values set by sub CPU or host can be read. 3-19. ATAPI sector number register (address 13 HEX ) This register corresponds to the ATA sector number register of the host. The values set by sub CPU or host can be read. 3-20. ATAPI byte count high/low register (address 14, 15 HEX ) This register corresponds to the byte count high/low register of the host. The values set by sub CPU or host can be read. 3-21. ATAPI drive select register (address 16 HEX ) This register corresponds to the ATAPI drive select register of the host. The values set by sub CPU or host can be read. bit 4: DRV 3-22. ATA command register (address 17 HEX ) This register corresponds to the ATA command register of the host. The values set by sub CPU or host can be read.
– 37 – CXD1812Q/R 3-23. ATAPI packet command register (address 18HEX ) This register is a 12-bytes FIFO. The ATAPI packet command issued from the host can be read by reading this register 12 times. 3-24. ATAPI status 1 register (address 19 HEX ) The values set by sub CPU can be read. bit 7, 6: RESERVED bit 5: DRDY1 (Drive1 Ready) bit 4: DSC1 (Drive1 Seek Complete) bit 3: HST5 bit 2: HST1 bit 1: DRDY0 (Drive0 Ready) bit 0: DSC0 (Drive0 Seek Complete) 3-25. ATAPI status 2 register (address 1A HEX ) bit 7: BUSY In the cases below, the bit is set automatically. The bit can also be set directly by the sub CPU. High: When the host writes a command into the ATAPI command register. High: When the transfer of a 6-words (12-bytes) packet command from the host has been completed. High: When the XFRCTL1 register (0B HEX ) -bit 5: AUTOEND is low and the data transfer with the host has been completed. High: When various reset signals have been asserted. Low: When an ATAPI packet command (A0 HEX ) is issued and the setting of packet command transfer has been completed. Low: When the data transfer with the host is activated in the PIO mode. Low: When the XFRCTL1 register (0B HEX ) -bit 5: AUTOEND is high and the data transfer with the host has been completed. bit 6: RESERVED bit 5: CORR The values set by sub CPU can be read. bit 4: HINT The HINT signal can be monitored. In the cases below, this bit is set automatically.
- When the XFRMOD register (09 HEX ) -bit 7: ENHINTCT is high and the setting of packet command transfer is completed.
- When the XFRMOD register (09HEX ) -bit 6: ENHINTDT is high and the data transfer with the host is activated.
- When the XFRCTL1 register (0BHEX ) -bit 5: AUTOEND is high and the data transfer with the host is completed. The bit is reset in the cases below.
- When the host has read the ATAPI status register.
- When the transfer of 12-bytes packet command has been completed before the host reads the ATAPI status register.
- When the XFRCTL1 register (0B HEX ) -bit 5: AUTOEND is low and the data transfer with the host has been completed before the host reads the ATAPI status register. bit 3: HRST The HRST pin can be monitored. bit 2: SRST bit 1: XHINEN This bit corresponds to the ATAPI device control register - bit 2, 1 of the host. The values set by the host can be read. bit 0: CHECK The values set by sub CPU can be read.
– 38 – CXD1812Q/R 3-26. CSCTARA (current sector area) (address 1BHEX ) Indicates the area number being written in the current sector. 3-27. CPUBRDT (CPU buffer read data) register (address 1CHEX ) The sub CPU reads data from the buffer memory via this register. 3-28. SBCSTS (subcode status) register (address 1DHEX ) The error status of the subcode written to the buffer while the CD-DA command is executed is indicated by this register. The period of validity is from a DECINT to the next DECINT. bit 7: SBCOVRN (subcode overrun) The SBCOVRN status is established when the ENSBCBT (bit 3) of the XFRFMT1 register is set high and subcode buffering to the area assigned by DLARA is completed while the decoder is executing the CD-DA command. Establishment of DRVOVRN and SBCOVRN states involves a time difference. bit 6: OVERFLOW Indicates that the FIFO of SBCSTS has overflowed with frequent occurrences of the subcode short sync. Subcode buffering is stopped by this overflow. Subcode has not been buffered in sectors obtained by subsequent interrupts of the decoder. bit 5: BFNTVAL (buffer not valid) Indicates that valid data have not been written to the buffer due to the short subcode sector. bit 4: NOSYNC0 Indicates that the Sync mark was inserted because subcode Sync mark was not detected at the prescribed position. bit 3 to 1: RESERVED bit 0: SUBQERR0 (subcode-Q error 0) Indicates that the subcode-Q was determined to be an error by the CRC check when ALLSBC is low. 3-29. SBQSTS (subcode-Q status) register (address 1E HEX ) This register indicates the error status of the subcode-Q taken from CD DSP. The period of validity is from a SBCSYNC to the next SBCSYNC. bit 7 to 3: RESERVED bit 2: SHTSBCS1 (short subcode sector 1) Indicates that the subcode Sync mark interval after the previous SBCSYNC interrupt occurred was less than 98WFCK. bit 1: NOSYNC1 Indicates that the Sync mark was inserted because subcode Sync mark was not detected at the prescribed position. bit 0: SUBQERR1 (subcode-Q error 1) Indicates that the subcode-Q was determined to be an error by the CRC check. 3-30. SBQDT (subcode-Q DATA) register (address 1F HEX ) The subcode-Q value can be read by reading this register 10 times. The read subcode-Q is data just before the SBCSYNC interrupt. 3-31. RESERVED (address 20 HEX ) 3-32. TGTMIN (target minute) register (address 21HEX ) 3-33. TGTSEC (target second) register (address 22HEX )
– 39 – CXD1812Q/R 3-34. TGTBLK (target block) register (address 23HEX ) 3-35. XFRCNT (transfer block counter) register (address 24HEX ) 3-36. BFARA# (buffering area number) register (address 25HEX ) 3-37. DLARA (drive last area) register (address 26HEX ) 3-38. XFRARA (transfer area) register (address 27HEX ) 3-39. RESERVED (address 28HEX ) 3-40. HXFRC-H, M, L (host transfer counter - high, middle, low) register (address 29 to 2BHEX ) 3-41. RESERVED (address 2CHEX ) 3-42. HADRC-H, M, L (host address counter - high, middle, low) register (address 2D to 2FHEX ) 3-43. RESERVED (address 30HEX ) 3-44. SLDR-H, M, L (subcode last address - high, middle, low) register (address 31 to 33HEX ) 3-45. RESERVED (address 34HEX ) 3-46. CADRC-H, M, L (sub CPU address counter - high, middle, low) register (address 35 to 37HEX ) 3-47. RESERVED (address 38HEX ) 3-48. SADRC-H, M, L (subcode address counter - high, middle, low) register (address 39 to 3BHEX ) The buffer address can be read in the subcode buffering command.
– 40 – CXD1812Q/R 3-49. INTSTS0 (interrupt status 0) register (address 3CHEX ) The value of each bit in this register is the value of corresponding interrupt status. These bits are not affected by the values of the INTEN0 register bits. bit 7: DECINT (decoder interrupt) This interrupt occurs when the decoder is operating a command. (1) The DECINT status is established if the Header byte is received from CD DSP when the Sync mark is detected or inserted while the decoder is executing the write-only, monitor-only, or real- time correction command. However, it is not established if the Sync mark interval is less than 2352 bytes when its detection window is open. (2) The DECINT status is established each time one correction is completed when the decoder is in the repeat correction mode. (3) The DECINT status is established each time 2352 bytes of data are written while the decoder is executing the CD-DA command. (4) The DECINT status is established when the subcode Sync mark is detected or is inserted when the decoder is executing subcode buffering. However, it is not established if the interval from the DECINT to the next subcode Sync mark detected is less than 98WFCK. bit 6: DECTOUT (decoder timeout) The DECTOUT status is established when the Sync mark is not detected even after the time it takes to search three sectors (40.6ms at normal speed playback) has elapsed after the decoder has been set to the monitor-only, write-only or real-time correction mode. bit 5: DRVOVRN (drive overrun) The DRVOVRN status is established when the buffering into the area assigned by DLARA is completed while the decoder is executing the write-only, real-time correction or CD-DA command. The DRVOVRN status is also established when the buffering into the address assigned by SLADR is completed while the decoder is executing the subcode buffering command. bit 4: SUBCSYNC (subcode sync) The SUBCSYNC status is established when the subcode Sync mark is detected or inserted while taking-in of subcode is enabled. However, it is not established if the interval from the SUBCSYNC to the next subcode Sync mark detected is less than 98WFCK. If the SUBCSYNC interrupt is not cleared within 95WFCK from the interrupt, the SUBCSYNC status is not established when the next subcode Sync mark is detected or inserted. In this case, the subcode-Q read from the SBQDT register is not renewed. bit 3, 2: RESERVED bit 1: SOFTRST (SRST detected) The SOFTRST status is established when the host asserts the ATAPI device control register -bit 2: SRST. bit 0: HARDRST (HRST detected) The HARDRST status is established when the host asserts the HRST pin.
– 41 – CXD1812Q/R 3-50. INSTS1 (interrupt status 1) register (address 3DHEX ) The value of each bit in this register is that of the corresponding interrupt status. These bits are not affected by the values of the INTEN1 register bits. bit 7: PFIFOFUL (packet FIFO full) The PFIFOFUL status is established when the transfer of a 6-words (12 bytes) packet command from the host is completed. bit 6: RESERVED bit 5: RSTCMD (reset command) The RSTCMD status is established when an ATAPI soft reset command (08 HEX ) is issued from the host. bit 4: STSREAD (HOST status read) The STSREAD status is established when the ATAPI status register is read by the host after data transfer with the host has been completed. bit 3: HSTCMD (host command) The HSTCMD status is established when the command is written into the ATA command register from the host. bit 2: PIONG (PIO transfer NG) The PIONG status is established if a read/write operation is executed by the host when the IO channel ready signal: REDY is low (not ready) during data transfer in the PIO mode. bit 1: XFRSTOP (transfer stop) The XFRSTOP status is established when all transfers are completed when the automatic transfer mode to the host is enabled. The XFRSTOP status is also established after transfer to the host is completed by HXFRC when the automatic transfer mode to the host is disabled. bit 0: BLXFRCMP (block transfer complete) The BLXFRCMP status is established after one block transfer is completed when the automatic transfer mode to the host is enabled. 3-51. INTEN0 (interrupt enable 0) register (address 3E HEX ) The values written to the INTEN0 register can be read as they are. 3-52. INTEN1 (interrupt enable 1) register (address 3FHEX ) The values written to the INTEN1 register can be read as they are.
– 42 – CXD1812Q/R REG ADR bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 CONFIG0 CONFIG1 LSTARA LHADR DRVIF XFRFMT0 XFRFMT1 DECCTL0 DECCTL1 XFRMOD XFRCTL0 XFRCTL1 CHPCTL0 CHPCTL1 DISCHG DRVADR ERROR FEATUR INT REASON SECTOR NUMBER BYTE CNT-H BYTE CNT-L CINT POL SW OPEN C2PO L1st "L" BLKE FLAG AUTO DIST ENSB QRD ENHI NTCT AUTO XFR PFIF O CL "L" CHIP RST "L" "L" b15 M/S SEL "L" LCH LOW "L" "L" MODE SEL "L" ENHI NTDT "L" "L" "L" TGT MET "L" b14 M/S EN "H" BCLK RED SYNC ENBY TFBT FORM SEL DEC CMD2 EN MDMA "L" AUTO END "L" INC TGT "L" b13 "L" "L" BCLK MD1 HEAD ER "L" "L" DEC CMD1 ENDM ABIT "L" HSTX FREN "L" RPCO RTRG "L" b12 EXCK SEL "L" BCLK MD0 SBHE ADER ENSB CBT ENFM 2EDC DEC CMD0 PIO SEL CPUD MAEN "L" "L" "L" "L" MCR b11 DIS MCLK RFRS CTL1 LSB 1st USER DATA ALL SBC MDBY TCTL "L" AUTO WAIT CPU SRC "L" "L" "L" DASP ABRT b10 DIS HCLK RFRS CTL0 "L" PARI TY "L" EN DLA "L" WAIT CYCL1 "L" IO "L" "L" PDIAG "L" EOM IO RAM SIZE "L" "L" "L" ZA SUBQ ATDL RNEW "L" WAIT CYCL0 "L" CoD "L" "L" CLR HINT "L" ILI DMA CoD Sub CPU write registers (1) SENSE KEY
– 43 – CXD1812Q/R REG ADR bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 DRIVE SELECT HOST CMD ATAPI STS 1 ATAPI STS 2 UN LOCK CPUBW DT SCTINF TGTMIN TGTSEC TGTBLK XFRCNT BFARA# DLARA XFRARA HXFRC HXFRC HXFRC "L" "L" BUSY "L" "L" "L" "L" "L" "L" b15 "L" "L" "L" "L" "L" "L" "L" "L" "L" b14 "L" DRDY1 CORR "L" "L" "L" "L" "L" "L" b13 DRV "L" DSC1 EN HINT "L" "L" "L" "L" "L" "L" b12 "L" HST5 "L" "L" "L" "L" "L" "L" "L" b11 "L" HST1 "L" "L" MODE2 "L" "L" "L" b18 b10 "L" DRDY0 "L" "L" FORM2 "L" "L" "L" b17 "L" DSC0 CHECK "L" "L" "L" "L" "L" b16 Sub CPU write registers (2)
– 44 – CXD1812Q/R REG ADR bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 HADRC HADRC HADRC SLADR SLADR SLADR CADRC CADRC CADRC CLRINT0 CLRINT1 INTEN0 INTEN1 "L" "L" b15 "L" "L" b15 "L" "L" b15 "L" "L" "L" "L" DEC INT PFIF OFUL DEC INT PFIF OFUL "L" "L" b14 "L" "L" b14 "L" "L" b14 "L" "L" "L" "L" DEC TOUT "L" DEC TOUT "L" "L" "L" b13 "L" "L" b13 "L" "L" b13 "L" "L" "L" "L" DRV OVRN RST CMD DRV OVRN RST CMD "L" "L" b12 "L" "L" b12 "L" "L" b12 "L" "L" "L" "L" SUBC SYNC STS READ SUBC SYNC STS READ "L" "L" b11 "L" "L" b11 "L" "L" b11 "L" "L" "L" "L" "L" HST CMD "L" HST CMD "L" b18 b10 "L" b18 b10 "L" b18 b10 "L" "L" "L" "L" "L" PIO NG "L" PIO NG "L" b17 "L" b17 "L" b17 "L" "L" "L" "L" SOFT RST XFR STOP SOFT RST XFR STOP "L" b16 "L" b16 "L" b16 "L" "L" "L" "L" HARD RST BLXF RCMP HARD RST BLXF RCMP Sub CPU write registers (3)
– 45 – CXD1812Q/R REG ADR bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 DRVSTS RAWHDR BFHDR BFSHDR RAWHDR FLG BFHDR FLG DECSTS0 DECSTS1 XFRMOD XFRSTS0 XFRSTS1 CHPSTS REV ERROR FEATUR SECTOR COUNT SECTOR NUMBER BYTE CNT-H BYTE CNT-L CINT POL MIN UTE MIN UTE SHRT SCT "Z" ENHI NTCT "H" "L" "L" "H" b15 M/S SEL SEC OND SEC OND NO SYNC "Z" ENHI NTDT "H" "L" "L" "L" b14 M/S EN BLO CK BLO CK COR INH "Z" EN MDMA "H" AUTO END "L" "L" b13 "L" MODE MODE ERIN BLK "Z" ENDM ABIT "H" "L" "L" "L" b12 "L" "H" FILE COR DONE "Z" PIO SEL "H" PFIF OFUL "L" "L" MCR b11 RFRS CTL1 "H" CHAN NEL EDC NG EDC ALL0 AUTO WAIT "H" PFIF OEMP DASP "L" ABRT b10 RFRS CTL0 "H" SUB MODE ECC NG C MODE WAIT CYCL1 CBFW RRDY IO PDIAG "H" EOM "L" "H" DATA TYPE TGTN TMET C FORM WAIT CYCL0 CBFR DRDY CoD "L" "H" ILI DMA Sub CPU read registers (1) SENSE KEY
– 46 – CXD1812Q/R REG ADR bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 DRIVE SELECT HOST CMD PACKET CMD ATAPI STS 1 ATAPI STS 2 CSCT ARA CPUBR DT SBCSTS SBQSTS SUBQDT TGTMIN TGTSEC TGTBLK XFRCNT BFARA# DLARA XFRARA HXFRC HXFRC HXFRC "L" BUSY SBC OVRN "H" "L" "L" "Z" b15 LBA "L" "L" OVER FLOW "H" "Z" b14 DRDY1 CORR BFNT VAL "H" "Z" b13 DRV DSC1 HINT NOSY NC0 "H" "Z" b12 b12 HST5 HRST "H" "H" "Z" b11 HST1 SRST "H" SHTS BCS1 b18 b10 DRDY0 XHIN TEN "H" NOSY NC1 b17 DSC0 CHECK SUBQ ERR0 SUBQ ERR1 b16 Sub CPU read registers (2)
– 47 – CXD1812Q/R REG ADR bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 HADRC HADRC HADRC SLADR SLADR SLADR CADRC CADRC CADRC SADRC SADRC SADRC INTSTS0 INTSTS1 INTEN0 INTEN1 "L" b15 "L" b15 "H" b15 "L" b15 DEC INT PFIF OFUL DEC INT PFIF OFUL "L" b14 "L" b14 "H" b14 "L" b14 DEC TOUT "L" DEC TOUT "L" "L" b13 "L" b13 "H" b13 "L" b13 DRV OVRN RST CMD DRV OVRN RST CMD "L" b12 "L" b12 "H" b12 "L" b12 SUBC SYNC STS READ SUBC SYNC STS READ "L" b11 "L" b11 "H" b11 "L" b11 "L" HST CMD "L" HST CMD b18 b10 b18 b10 b18 b10 b18 b10 "L" PIO NG "L" PIO NG b17 b17 b17 b17 SOFT RST XFR STOP SOFT RST XFR STOP b16 b16 b16 b16 HARD RST BLXF RCMP HARD RST BLXF RCMP Sub CPU read registers (3)
– 48 – CXD1812Q/R 4. HOST Interface The following ATAPI registers are supported. Address Register Control block registers Command block registers Data ATA Sector Number ATAPI Byte Count Low ATAPI Byte Count High ATAPI Drive Select HCS0 HCS1 HA2 HA1 HA0 Read (XHRD) Write (XHWR) ATAPI Status ATA Command Alternate ATAPI Status Diskette Change/Drive Address ATAPI Device Control Unused ATAPI Error ATAPI Interrupt Reason ATAPI Feature ATA Sector Count The bit width of all registers excluding the data register is 8 bits. The bit width of the data register is 16 bits. Command block registers The host can read/write to the command block registers only when the BUSY bit (ATAPI status register -bit 7) is low. When the BUSY bit is high, the value of the alternate ATAPI status register is read. 4-1. Data register (read/write) This register is valid only when the DRQ bit (ATAPI status register -bit 3) is high. The bit width of this register is 16 bits. 4-2. ATAPI error register (read) The error status of the command finally executed by the drive is read by this register. bit 7 to 4: SENSE KEY bit 3: MCR (Media Change Requested) bit 2: ABRT (Aborted Command) bit 1: EOM (End Of Media Detected) bit 0: ILI (Illegal Length Indication) 4-3. ATAPI feature register (write) bit 7 to 1: Optional values can be set. bit 0: DMA (optional) Set this bit high for data transfer in the DMA mode. However, the transfer mode is determined by the combination of this bit and the ENDMABIT (bit 4) and PIOSEL (bit 3) bits of the sub CPU transfer mode register (address 09 HEX ).
– 49 – CXD1812Q/R 4-4. ATAPI interrupt reason (read)/ATA sector count (write) register This 8-bytes register can be read/written by both host and sub CPU. bit 1: IO (In or Out) bit 0: CoD (Command or Data) The direction and type of data transfer are determined by the three bits: IO, CoD, and DRQ (ATAPI status register -bit 3). 4-5. ATA sector number register (read/write) This 8-bytes register can be read/written by both host and sub CPU. 4-6. ATAPI byte count low/high register (read/write) This register sets the number of bytes transferred by one data transfer request (DRQ). (16 bits) This register can be read/written by both host and sub CPU. 4-7. ATAPI drive select register (read/write) This 8-bytes register can be read/written by both host and sub CPU. bit 4: DRV This bit allows the host to select the drive. High: Selects the slave drive. Low: Selects the master drive. 4-8. ATAPI status register (read) This register allows the host to read the drive status. The interrupt request signal: HINT to the host is cleared by reading this register. bit 7 BUSY bit 6 DRDY (Drive Ready) bit 4 DSC (Drive Seek Complete) bit 3 DRQ (Data Request) bit 2 CORR (Corrected Data) bit 0 CHECK bit 5, 1: The values set by sub CPU can be read. 4-9. ATA command register (write) This register allows the host to write the ATA command. The interrupt request is applied to sub CPU by writing a command to this register. DRQ IO Status of transfer "H" "H" "H" "H" "L" "L" "L" "H" "H" "H" CoD "L" "H" "L" "H" "H" Data transfer from host Packet command transfer from host Data transfer to host RESERVED Data transfer termination status
– 50 – CXD1812Q/R Control Block Registers 4-10. Alternate ATAPI status register (read) This register is identical to the ATAPI status register. However, the interrupt request signal: HINT to the host is not cleared by reading this register. 4-11. ATAPI device control register (write) bit 7 to 3: RESERVED bit 2: SRST This bit is the ATA soft reset bit. (See appendix.) bit 1: nIEN When this bit is set low while a drive is selected, the interrupt request signal: HINT to the host is enabled. When this bit is high or the drive is not selected, the HINT pin generates a high impedance. bit 0: RESERVED 4-12. Diskette change/drive address register (read) bit 7: Hi-Z bit 6 to 2: The values set by sub CPU can be read. bit 1: nDS1 This is low when the slave drive is selected. bit 0: nDS0 This is low when the master drive is selected.
– 51 – CXD1812Q/R Appendix: Reset Condition XRST: XRST pin CRST: CHPCTL0 register (0DHEX ) -bit 7 HRST: HRST pin RCMD: ATAPI soft reset command (08 HEX ) SRST: ATAPI software reset 1. Sub CPU write registers B i t 76543210REG ADR XRST CRST HRST RCMD SRST 000X0000 0010X01X XXXXX01X 00000000 00000000 001010X0 XX00000X 0X0X00X0 100X0101 0X000XXX 01001000 XX0XXXXX 1XXX00XX 0X00XX00 XX00XX00 0000XXXX XXXXX10X X00000XX 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 XX000000 1X00XXX0 1XXXXXXX 00000000 XXXXX00X CONFIG0 CONFIG1 LSTARA LHADR DRVIF XFRFMT0 XFRFMT1 DECCTL0 DECCTL1 XFRMOD XFRCTL0 XFRCTL1 CHPCTL0 CHPCTL1 DISCHG ERROR FEATUR IREASON SECTNO. BYTCNT-H BYTCNT-L DRVSEL HSTCMD ASTS1 ASTS2 UNLOCK CPUBWDT SCTINF 00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0Ah 0Bh 0Dh 0Eh 0Fh 10h 11h 12h 13h 14h 15h 16h 17h 19h 1Ah 1Bh 1Ch 1Eh O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O
– 52 – CXD1812Q/R B i t 76543210REG ADR XRST CRST HRST RCMD SRST 00000000 00000000 00000000 00000000 00000000 00000000 00000000 XXXXX000 00000000 00000000 XXXXX000 00000000 00000000 XXXXX000 00000000 00000000 XXXXX000 00000000 00000000 0000XX00 0X000000 0000XX00 0X000000 TGTMIN TGTSEC TGTBLK XFRCNT BFARA DLARA XFRARA HXFRC-H HXFRC-M HXFRC-L HADRC-H HADRC-M HADRC-L SLADR-H SLADR-M SLADR-L CADRC-H CADRC-M CADRC-L CLRINT0 CLRINT1 INTEN0 INTEN1 21h 22h 23h 24h 25h 26h 27h 29h 2Ah 2Bh 2Dh 2Eh 2Fh 31h 32h 33h 35h 36h 37h 3Ch 3Dh 3Eh 3Fh O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O
– 53 – CXD1812Q/R 2. Sub CPU read registers B i t 76543210REG ADR XRST CRST HRST RCMD SRST 00000010 00000000 00000000 00000000 00001111 00000000 00000100 XXXXX000 01001000 XX0XXXXX 11111100 00000100 000001X0 10000011 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1000X010 10001010 1000XXX0 10XXX1XX 00000000 00000000 XXXXXXXX 11111000 XXXXXXXX 00000000 00000000 00000000 00000000 DRVSTS RAWHDR BFHDR BFSHDR RAWHDFG BFHDRFG DECSTS0 DECSTS1 XFRMOD XFRSTS0 XFRSTS1 CHPSTS REV ERROR FEATUR IREASON SECTNO. BYTCNT-H BYTCNT-L DRVSEL HSTCMD PACCMD ASTS1 ASTS2 CSCTARA CPUBRDT SBCSTS SBQSTS SBQDT TGTMIN TGTSEC TGTBLK XFRCNT 00h 01h 02h 03h 04h 05h 07h 08h 09h 0Ah 0Bh 0Eh 0Fh 10h 11h 12h 13h 14h 15h 16h 17h 18h 19h 1Ah 1Bh 1Ch 1Dh 1Eh 1Fh 21h 22h 23h 24h O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O
– 54 – CXD1812Q/R B i t 76543210REG ADR XRST CRST HRST RCMD SRST 00000000 00000000 00000000 XXXXX000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 11111000 00000000 00000000 00000000 00000000 00000000 00000000 XXXX00X1 XXXX001X 00000000 00X000XX 001000XX 00000000 00000000 BFARA DLARA XFRARA HXFRC-H HXFRC-M HXFRC-L HADRC-H HADRC-M HADRC-L SLADR-H SLADR-M SLADR-L CADRC-H CADRC-M CADRC-L SADRC-H SADRC-M SADRC-L INTSTS0 INTSTS1 INTEN0 INTEN1 25h 26h 27h 29h 2Ah 2Bh 2Dh 2Eh 2Fh 31h 32h 33h 35h 36h 37h 39h 3Ah 3Bh 3Ch 3Dh 3Eh 3Fh O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O
– 55 – CXD1812Q/R Application Circuit 10 0 55 5330 LRCK MDAT BCLK C2PO EXCK SBIN SCOR WFCK LRCK DA16 DA15 C2PO EXCK SBSO SCOR WFCK MCLK HCLK PSSL XTSL XTAI CXD2500 987691 9295 10 to 14, 1617 to 21, 23 to 25 subCPU XCS XRD XWR XINT D0 to 7 A0 to 5 HRST XPDI DASP REDY XS16 HINT HDRQ XHAC XHWR XHRD HA0 to 2 HCS0, 1 69 to 72 74 to 77 80 to 83 85 to 88 10kΩ ATAPI bus43 to 46, 48 to 51424139 MDB0 to 7 MA0 to 9 XMWR XCAS XRAS 26, 27, 30 to 33, 35 to 38 DRAM CXD1812Q 33.8688MHz XTL2 XTL1 XRST HDB0 to F Application circuits shown are typical examples illustrating the operation of the devices. Sony cannot assume responsibility for any problems arising out of the use of these circuits or for any infringement of third party patent and other right due to same.
– 56 – CXD1812Q/R Package Outline Unit: mm SONY CODE EIAJ CODE JEDEC CODE PACKAGE MATERIAL LEAD TREATMENT LEAD MATERIAL PACKAGE WEIGHT EPOXY RESIN SOLDER PLATING COPPER / 42 ALLOY PACKAGE STRUCTURE 23.9 ± 0.4 QFP-100P-L01 DETAIL A M 100PIN QFP (PLASTIC) 20.0 – 0.1 + 0.4 0° to 15° 0.15 – 0.05 + 0.1 + 0.4 2.75 – 0.15 + 0.35 A 0.65 ±0.12 0.15 0.8 ± 0.2 (16.3) ∗QFP100-P-1420-A 1.4g SONY CODE EIAJ CODE JEDEC CODE PACKAGE MATERIAL LEAD TREATMENT LEAD MATERIAL PACKAGE WEIGHT EPOXY/PHENOL RESIN SOLDER PLATING
42 ALLOY
∗QFP100-P-1414-A 100PIN LQFP (PLASTIC) 16.0 ± 0.2 ∗ 14.0 ± 0.1 75 51 251 + 0.08 (0.22) A 1.5 – 0.1 + 0.2 0.127 – 0.02 + 0.05 0.5 ± 0.2 (15.0) 0° to 10° 0.1 ± 0.1 0.5 ± 0.2 100 0.1 NOTE: Dimension “∗” does not include mold protrusion.