English
Language : 

W88113C Datasheet, PDF (17/102 Pages) Winbond – ATAPI CD-ROM DECODER & CONTROLLER
W88113C
2. REGISTERS DESCRIPTION
IR - Index Register (read/write)
If DRA (5Bh.1) is high, the Index Register is latched at the falling edge of pin ALE1 (5) or pin ALE2
(64) depending on the setting of ALE2 (5Ch.3).
If DRA (5Bh.1) is low and pin URS (32) is low, the Index Register can be accessed by the
microprocessor. The value in IR specifies which internal register to be accessed by microprocessor
when pin URS (32) is high.
Note that the 4 least significant bits of IR will increment following each read or write to any register except for PFAR (00h,r). Since IR
does not automatically increment from 00h to 01h, consecutive reads to address 00h will repeatedly read register PFAR (00h,r). This
feature accelerates read operation of ATAPI Command Packet.
PFAR - Packet FIFO Access Register - (read 00h)
While SCoD (20h.2) is high, the ATAPI Command Packet issued from host is received by the 12-byte
Packet FIFO. Flag TENDb (01h.r6) is used to check if the Packet FIFO is full. The microprocessor
can read the ATAPI Command Packet by repeatedly read register PFAR (00h,r). Once the FIFO
becomes empty, the value FFh will be returned if microprocessor read PFAR.
The Packet FIFO can also be used to receive command parameter less than 12 bytes. First, the
control bit SCoD (20h.2) is set high to select the Packet FIFO to be addressed by the ATAPI Data
port. When DRQ (37h.3) changes from 0 to 1, the lower 4 bits of ATBLO (34h) is latched as the FIFO
threshold. Upon the number of bytes in the FIFO reaches the threshold, flag TENDb (01h.r6)
becomes active-low and flag FPKT (30h.r1) becomes active-high. Once FPKT becomes high, any
data writes to the ATAPI Data port is rejected.
INTCTL - Interrupt Control Register - (write 01h)
Bit 7: PFNEEN - Packet FIFO Not Empty Interrupt Enable
Pin UINTb (36) is activated when PFNEb(01h.r7) becomes active-low if this bit is high.
Bit 6: TENDEN - Transfer End Interrupt Enable
Pin UINTb (36) is activated when TENDb (01h.r6) becomes active-low if this bit is high. This
bit is also automatically enabled if the host issues the Packet Command (A0h) while HIIEN
(2Eh.w7) is high and drive is selected.
Bit 5: SRIEN - Sector Ready Interrupt Enable
Pin UINTb (36) is activated when SRIb (01h.r5) becomes active-low if this bit is high. This bit
is clear to 0 after chip reset, host reset, firmware reset and decoder reset.
- 13 -
Publication Release Date: Mar. 1999
Revision 0.61