![](http://datasheet.mmic.net.cn/390000/SAA7388GP_datasheet_16832300/SAA7388GP_29.png)
1996 Apr 26
29
Philips Semiconductors
Preliminary specification
Error correction and host interface IC for
CD-ROM (ELM)
SAA7388
Table 30
Description of registers
Table 31
ADRSEL register bits
Table 32
ADCTR register bits
Setting the SRST bit HIGH causes a SRSTI interrupt and the BSY bit to be set.
Bit nIEN is used to enable or disable the host interrupt. When nIEN is logic 0 and the drive is selected then the host
interrupt pin will be enabled. If nIEN is logic 1 or the drive is not selected then the host interrupt pin will be in a
high-impedance state.
REGISTER
DESCRIPTION
DATA
This is a 16-bit register and is used for transferring data to and from the host. This should only be
performed after the Sub-CPU has initiated the data transfer.
This is the ATAPI Features register.
This is the ATAPI Error register.
This is the ATAPI Interrupt Reason register.
This is the ATAPI Sector Count register.
These are the ATAPI Byte Count registers.
AFEAT
AERR
AINTR
ASAMT
DBCL and
DBCH
ADRSEL
This is the ATAPI Drive Select register (see Table 31). Bit 4 of this register is the DRV bit. When this bit
is the same as the RDRV bit in the DTCTR register then SAA7388 will be the selected ATAPI drive and
will respond to commands and produce interrupts. The host Interrupt pin will also be enabled when
SAA7388 is the selected drive.
This is the ATAPI Command register. A CMDI interrupt is generated when the host writes to this
register while SAA7388 is the selected drive (the DRV bit in ADRSEL is equal to the RDRV bit in
DTCTR) and when the host writes the execute drive diagnostic command (90H) to this register. If a
host interrupt is asserted then it will be cleared by writing to this register.
This is the ATAPI Status register. Bit-7 is the BSY bit and this will be set whenever the host writes to
the ACMD register and SAA7388 is the selected drive, when the host writes the execute drive
diagnostic command (90H) to the ACMD register, when the host writes to the ADCTR register and sets
the SRST bit and when there is a hardware reset. If a host interrupt is asserted then it will be cleared by
writing to this register.
ALT STATUS This is the ATAPI Alternative Status register. This is identical to the ASTAT register except reading this
register does not negate the host interrupt.
ADCTR
This is the ATAPI Device Control register (see Table 32)
ADRADR
This is the ATAPI Drive Address register. Bit 7 of this register is high impedance.
ACMD
ASTAT
BIT 7
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
BIT 0
1
1
1
DRV
BIT 7
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
BIT 0
reserved
1
SRST
nIEN
0