English
Language : 

ALS300 Datasheet, PDF (40/66 Pages) List of Unclassifed Manufacturers – Media Audio Controller SPEC
Avance Logic Inc.
ALS300
Major version = CR18
Minor version = CR19
*E2 DMA testing
Computes The Subroutine’s Starting Address for Digital Sound
Playback or Recording According to The Dedicated Algorithm.
Sends Back The Result To System via DMA Method(Two Bytes Transfered).
a.
ESP_WRITE(E2h)
b.
ESP_WRITE(first byte b1),return r1 via DMA
c.
ESP_WRITE(E2h)
d.
ESP_WRITE(second byte b2),return r2 via DMA
Formula for r1:
r1 = ( b1.7..5 + 1 ) * 0x40 + b1.3 * 0x10 + b1.0 * 0x02 - b1 (this is 8 bit unsigned operation)
Formula for r2:
1.
r2_h = 0xe0 + b2.4 * 0x20 - b2.6 * 0x80
2.
r2_h = r2_h + b1 & 0xe0 - b2 & 0xf0
3.
r2_l = 0x05 + b2.1 * 0x04 - b2 & 0x0f
4.
r2 = r2_h & 0xf0 + r2_l & 0x0f + b1.0 * 0x01 - b1 & 0x1e
5.
r2 = r2 + b1.3 * 0x10
(this is 8 bit unsigned operation)
*E3 copyright message
a. ESP_WRITE(E3h)
b. ESP_READ(message)
Message :
TEXT
"COPYRIGHT (C) CREATIVE TECHNOLOGY LTD, 1992.",0h)
HEX
43 4F 50 59 52 49 47 48 54 20 28 43 29 20
43 52 45 41 54 49 56 45 20 54 45 43 48 4E 4F 4C 4F 47 59 20
4C 54 44 2C 20 31 39 39 32 2E 00
This command is valid only when CR3A.0 = 1.
*E4 send test byte for command E8h
a. ESP_WRITE(E4h)
b. ESP_WRITE(test-data)
*E8 read diagnostic byte
a. ESP_WRITE(E4h)
b. ESP_WRITE(test-data)
c. ESP_WRITE (E8h)
c. ESP_READ(result)
d. If result = test-data, ESP is working
Testing
FXh
*F2h generate an interrupt for test
ESP_WRITE(F2h)
ESP will generate an interrupt immediately after this command.
40