AD1846 Analog Devices, AD1846 Datasheet - Page 24

no-image

AD1846

Manufacturer Part Number
AD1846
Description
Low Cost Parallel-port 16-bit Soundport Stereo Codec
Manufacturer
Analog Devices
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AD1846JP
Manufacturer:
AD
Quantity:
2 316
Part Number:
AD1846JP
Manufacturer:
MACOM
Quantity:
29
Part Number:
AD1846JP
Manufacturer:
AD
Quantity:
1 000
Part Number:
AD1846JP
Manufacturer:
AD
Quantity:
2 000
Part Number:
AD1846JP
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
AD1846XP
Manufacturer:
ADI/亚德诺
Quantity:
20 000
AD1846
DMA Interrupt
Writing to the internal 16-bit Base Count Register sets up the
count value for the number of samples to he transferred. Note
that the number of bytes transferred for a given count will be a
function of the selected global data format. The internal Cur-
rent Count Register is updated with the current contents of the
Upper and Lower Base Count Registers when a write occurs to
the Upper Base Count Register.
The Current Count Register cannot be read by the host. Read-
ing the Base Count Registers will only read back the initializa-
tion values written to them.
The Current Count Register is decremented every sample pe-
riod when either the PEN or CEN bit is enabled and also either
the Transfer Request Disable (TRD) bit or the Interrupt Status
(INT) bit is zero. An interrupt event is generated after the Cur-
rent Count Register is zero and an additional playback sample is
transferred. The INT bit in the Status Register always reflects
the current internal interrupt state defined above. The external
INT pin will only go active HI if the Interrupt Enable (IEN) bit
in the Interface Configuration Register is set. If the IEN bit is
zero, the external INT pin will always stay LO, even though the
Status Register’s INT bit may be set.
POWER UP AND RESET
The PWRDWN pin should be held in its active LO state when
power is first applied to the AD1846. Analog Devices recom-
mends waiting one full second after deasserting PWRDWN be-
fore commencing audio activity with the AD1846. This will
allow the analog outputs to fully settle to the V
prior to system autocalibration. At any point when powered, the
AD1846 can be put into a state for minimum power consump-
tion by asserting PWRDWN LO. All analog and digital sections
are shut down. The AD1846’s parallel interface does not func-
tion; all bidirectional signal lines are in high impedance state.
Deasserting PWRDWN by bringing it HI begins the AD1846’s
initialization. While initializing, the AD1846 ignores all writes
and all reads will yield “1000 0000 (80h).” At the conclusion of
reset initialization, all registers will be set to their default values
as listed in “Control Registers” above. The conclusion of the
initialization period can be detected by polling the index register
for some value other than “1000 0000 (80h).”
It is imperative to autocalibrate on power up for proper opera-
tion. See next section.
AUTOCALIBRATION
The AD1846 can calibrate its ADCs and DACs to minimize dc
offsets. Autocalibration occurs whenever the AD1846 returns
from the Mode Change Enable state and the ACAL bit in the
Interface Configuration register has been set. If the ACAL bit is
not set, the RAM normally containing ADC and DAC offset
compensations will he saved, retaining the offsets of the most re-
cent autocalibration. Therefore, it is imperative to autocalibrate
on power up for proper operation.
REF
voltage level
–24–
The completion of autocalibration can be determined by polling
the Autocalibrate-In-Progress (ACI) bit in the Test and Initial-
ization Register, which will be set during autocalibration. Trans-
fers enabled during autocalibration do not begin until the
completion of autocalibration.
The following summarizes the procedure for autocalibration:
• Mute left and right AUX1 and AUX2 inputs, and digital mix.
• Set the Mode Change Enable (MCE) bit.
• Set the Autocalibration (ACAL) bit.
• Clear the Mode Change Enable (MCE) bit.
• The Autocalibrate-In-Progress (ACI) bit will transition from
• Set to desired gain/attenuation values, and unmute DAC
During the autocalibration sequence, data output from the
ADCs is meaningless. Inputs to the DACs are ignored. Even if
the user specified the muting of all analog outputs, near the end
of the autocalibration sequence, analog outputs very close to
V
CHANGING SAMPLE RATES
To change the selection of the current sample rate requires a
Mode Change Enable sequence since the bits which control that
selection are in the Clock and Data Format Register. The fact
that the clocks change requires a special sequence which is sum-
marized as follows:
• If autocalibration will take place at the end of this sequence,
• Set the Mode Change Enable (MCE) bit.
• In a single write cycle, change the Clock Frequency Divide
• The AD1846 now needs to resynchronize its internal states to
• Clear the Mode Change Enable (MCE) bit.
• If ACAL is set, follow the procedure described in
• Poll the ACI bit until it transitions LO (approximately 128
• Set to desired gain/attenuation values, and unmute DAC out-
REF
then mute AUX1 and AUX2 inputs and the digital mix.
Select (CFS2:0) and/or the Clock Source Select (CSS).
the new clock. Writes to the AD1846 will be ignored. Reads
will produce “1000 0000 (80h)” until the resynchronization is
complete. Poll the Index Register until something other than
this value is returned.
“Autocalibration” above.
sample cycles).
puts (if muted).
(It is unnecessary to mute the DAC outputs, as this will hap-
pen automatically.)
LO to HI within five sample periods. It will remain HI for
approximately 384 sample periods. Poll the ACI bit until it
transitions from HI to LO.
outputs (if muted), AUX inputs, and digital mix.
will be produced at the line output.
REV. A

Related parts for AD1846