
AD1816A
–26–
REV. A
[Base+6]
PIO Data
7
6
5
4
3
2
1
0
PIO Playback/Capture [7:0]
RESET = [0x00]
PIO Playback/
Capture [7:0]
T he Programmed I/O (PIO) Data Registers for capture and playback are mapped to the same address. Writes
send data to the Playback Register and reads will receive data from the Capture Register.
Reading this register will increment the capture byte state machine so that the following read will be from the
next appropriate byte in the sample. T he exact byte may be determined by reading the PIO Status Register.
Once all relevant bytes have been read, the state machine will stay pointed to the last byte of the sample
until a new sample is received.
Writing data to this register will increment the playback byte tracking state machine so that the following
write will be to the correct byte of the sample. Once all bytes have been written, subsequent byte writes will be
ignored. T he state machine is reset when the current sample is transferred.
Note: All writes to the FIFO “MUST ” contain 4 bytes of data.
* 1 sample of 16-bit stereo
* 2 samples of 16-bit mono
* 2 samples of 8-bit stereo (Linear PCM,
μ
-law PCM, A-Law PCM)
* 4 samples of 8-bit mono (Linear PCM,
μ
-law PCM, A-Law PCM)
[Base+7]
Reserved
7
6
5
4
3
2
1
0
Reserved [7:0]
RESET = [0xX X ]
[Base+8]
Playback Configuration
7
6
5
PFMT [1:0]
4
3
2
1
0
T RD
DAZ
PC/L
PST
PIO
PEN
RESET = [0x00]
PEN
(RW)
Playback Enable. T his bit enables or disables programmed I/O data playback.
0
Disable
1
Enable
Programmed Input/Output. T his bit determines whether the playback data is transferred via DMA or PIO.
0
DMA transfers only
1
PIO transfers only
Playback Stereo/Mono select. T hese bits select stereo or mono formatting for the input audio data
streams. In stereo, the Codec alternates samples between channels to provide left and right channel in-
put. For mono, the Codec captures samples on the left channel stereo.
0
Mono
1
Stereo
Playback Companded/Linear Select. T his bit selects between a linear digital representation of the audio signal
or a nonlinear companded format for all output data. T he type of linear PCM or the type of companded for-
mat is defined by PFMT [1:0].
0
Linear PCM
1
Companded
Playback Format. Use these bits to select the playback data format for output data according to T able VI and
Figure 15.
DAC zero. T his bit forces the DAC to zero.
0
Repeat last sample
1
Force DAC to ZERO
T ransfer Request Disable. T his bit enables or disables Codec DMA transfers during a Codec interrupt (indi-
cated by the SS Codec Status register’s INT bit being set [1]). T his assumes Codec DMA transfers were en-
abled and the PEN or CEN bits are set.
0
T ransfer Request Enable
1
T ransfer Request Disable
After setting format bits, sample data into the AD1816A must be ordered according to Figure 15, T able VI.
PIO
(RW)
PST
(RW)
PC/L
(RW)
PFMT [1:0] (RW)
DAZ
(RW)
T RD
(RW)