loads the Current Count register with the values
in the Base registers.
For all data formats except ADPCM, the DMA
Base registers must be loaded with the number
of samples, minus one, to be transferred between
"DMA Interrupts". Stereo data contains twice as
many bytes as mono data but the same number
of samples. Likewise, 16-bit data contains twice
the number of bytes as 8-bit data but the same
number of samples. The equation for loading the
DMA Base registers is:
DMA Base register
16
= N
S
- 1
Where N
S
is the number of samples transferred
between interrupts and the "DMA Base regis-
ter
16
" consists of the concatenation of the upper
and lower DMA Base registers.
For the ADPCM data format, the contents of the
DMA Base registers are calculated differently
from any other data format. In the ADPCM for-
mat the data is transferred 4 bytes at a time.
Each four byte word transferred, decrements the
DMA Current Count register. The Base registers
must be loaded with the number of BYTES to be
transferred between "DMA interrupts", divided
by four, minus one. The same calculation is used
whether the data format is stereo or mono
ADPCM. The 4-byte word contains 8 mono
ADPCM samples or 4 stereo ADPCM samples.
The equation for loading the DMA Base regis-
ters is:
DMA Base register
16
= N
b
/4 - 1
Where N
b
is the number of BYTES transferred
between interrupts and the "DMA Base regis-
ter
16
" consists of the concatenation of the upper
and lower DMA Base registers.
Playback DMA Registers
The playback DMA registers (I14/15) are used
for sending playback data to the DACs in
MODE 2. In MODE 1 or when SDC = 1, these
registers (I14/15) are used for both playback and
capture.
When the playback Current Count register rolls
under, the Playback Interrupt bit, PI, (I24) is set
causing the INT bit (R2) to be set. The interrupt
is cleared by a write of any value to the Status
register (R2), or writing a "0" to the Playback
Interrupt bit, PI (I24). When SDC = 1, PI re-
flects the status of I14/I15 for both playback and
capture.
Capture DMA Registers
The Capture DMA Base registers (I30/31) pro-
vide a second pair of Base registers that allow
full-duplex DMA operation. With full-duplex op-
e rati on, c apt ure and pl ayb ack can occur
simultaneously utilizing different DMA channels.
These registers are only used in MODE 2 with
SDC = 0. If SDC in I9 is set, I14/I15 are used
for Capture DMA Base registers.
When the capture Current Count register rolls
under, the Capture Interrupt bit, CI, (I24) is set
causing the INT bit (R2) to be set. The interrupt
is cleared by a write of any value to the Status
register (R2), or by writing a "0" to the Capture
Interrupt bit, CI (I24). The CI bit is tied to the
Capture DMA base registers; therefore, when
SDC = 1, the CI bit is non-functional.
Digital Loopback
Digital Loopback is enabled via the LBE bit in
the Loopback Control register (I13). This loop-
back routes the digital data from the ADCs to
the DACs. This loopback can be digitally attenu-
ated via additional bits in the Loopback Control
register (I13). Loopback is then summed with
DAC data supplied at the digital bus interface.
When loopback is enabled, it will "freerun" syn-
chronous with the sample rate. The digital
loopback is shown in the CS4231A Block Dia-
gram on the front cover. This loopback can be
CS4231A
26
DS139PP2
Summary of Contents for CS4231A
Page 63: ...Figure 1 CS4231 Aux1 In CDB4231 4248 DS111DB7 63 ...
Page 64: ...Figure 2 Microphone In Figure 3 Mono Speaker Out CDB4231 4248 64 DS111DB7 ...
Page 65: ...Figure 4 Line In CDROM In Aux2 CDB4231 4248 DS111DB7 65 ...
Page 66: ...Figure 5 Line Headphone Out CDB4231 4248 66 DS111DB7 ...
Page 67: ...Figure 6 Address Decode and Board ID CDB4231 4248 DS111DB7 67 ...
Page 68: ...Figure 7 Analog Power Buffer CDB4231 4248 68 DS111DB7 ...
Page 72: ...Figure 8 Silk Screen CDB4231 4248 72 DS111DB7 ...
Page 73: ...Figure 9 Component Side Top 1st Layer CDB4231 4248 DS111DB7 73 ...
Page 74: ...Figure 10 Solder Side Bottom 4th Layer CDB4231 4248 74 DS111DB7 ...
Page 75: ...Figure 11 Ground 2nd Layer Inverse CDB4231 4248 DS111DB7 75 ...
Page 76: ...Figure 12 Power 3rd Layer Inverse CDB4231 4248 76 DS111DB7 ...