38 / 66 page

Avance Logic Inc.
ALS300
38
Bit 0
X
reserved
FIFO will reset when ESP receives any digital audio I/O command.
FIFO is always on.
a. ESP_WRITE(CXh)
b. ESP_WRITE(mode)
c. ESP_WRITE(length.low)
d. ESP_WRITE(length.high)
Mode
Bit 7
X
reserved
Bit 6
X
reserved
Bit 5
0
MONO
1stereo
Bit 4
0
unsigned (0--80h--FFh)
1
signed (80h--0--7Fh)
Bit 3
X
reserved
Bit 2
X
reserved
Bit 1
X
reserved
Bit 0
X
reserved
Length = # of 8 bit sample -1
ESP will generate an interrupt after the specified size of data transferred (if non-continuous) or every
block(if continuous).
Control DMA And Digital Audio
DXh
D0h
pause non BX type DMA transfer
ESP_WRITE(D0h)
The DMA request is stopped after this command. Internal FIFO will continue until the FIFO is empty
(playback) or full (record). The DMA request will resume after command D4h or any of new DMA
command is issued.
D1h
turn digital audio on
ESP_WRITE(D1h)
Set digital audio status flag for D8h command.
D3h
turn digital audio off
ESP_WRITE(D3h)
Reset digital audio status flag for D8h command.
Audio status flag is reset after system reset or ESP_RESET().
D4h
resume non BX type DMA transfer
ESP_WRITE(D4h)
The DMA request that is suspended by the command D0h is enable again. The internal FIFO is working
as usual in pause or resume DMA mode.