Datasheet

ADuC836
–16–
ADuC836
–17–
ADC SFR INTERFACE
Both ADCs are controlled and congured via a number of SFRs that are summarized here and described in more detail in the
following sections.
ADCSTAT ADC Status Register. Holds general status of the
primary and auxiliary ADCs.
ADCMODE ADC Mode Register. Controls general modes of
operation for primary and auxiliary ADCs
ADC0CON Primary ADC Control Register. Controls specic
conguration of primary ADC.
ADC1CON Auxiliary ADC Control Register. Controls
specic conguration of auxiliary ADC.
SF Sinc Filter Register. Congures the decimation
factor for the Sinc
3
lter and thus the primary
and auxiliary ADC update rates.
ICON Current Source Control Register. Allows the user
to control of the various on-chip current source
options.
ADC0M/H Primary ADC 16-bit conversion result is held in
these two 8-bit registers.
ADC1L/H
Auxiliary ADC 16-bit conversion result is held
in
these two 8-bit registers.
OF0M/H Primary ADC 16-bit Offset Calibration Coefcient
is held in these two 8-bit registers.
OF1L/H Auxiliary ADC 16-bit Offset Calibration Coefcient
is held in these two 8-bit registers.
GN0M/H Primary ADC 16-bit Gain Calibration
Coefcient
is held in these two 8-bit registers.
GN1L/H Auxiliary ADC 16-bit Gain Calibration Coefcient
is held in these two 8-bit registers.
ADCSTAT (ADC Status Register)
This SFR reects the status of both ADCs including data ready, calibration, and various (ADC related) error and warning conditions
such as reference detect and conversion overow/underow ags.
SFR Address D8H
Power-On Default Value 00H
Bit Addressable Yes
Table IV. ADCSTAT SFR Bit Designations
Bit Name Description
7 RDY0 Ready Bit for Primary ADC.
Set by hardware on completion of ADC conversion or calibration cycle.
Cleared directly by the user or indirectly by writing to the mode bits to start another primary ADC conversion
or calibration. The primary ADC is inhibited from writing further results to its data or calibration registers
until the RDY0 bit is cleared.
6 RDY1 Ready Bit for Auxiliary ADC. Same denition as RDY0 referred to the auxiliary ADC.
5 CAL Calibration Status Bit.
Set by hardware on completion of calibration.
Cleared indirectly by a write to the mode bits to start another ADC conversion or calibration.
4 NOXREF No External Reference Bit (only active if primary or auxiliary ADC is active).
Set to indicate that one or both of the REFIN pins is oating or the applied voltage is below a specied threshold.
When set, conversion results are clamped to all ones, if using external reference.
Cleared to indicate valid V
REF
.
3 ERR0 Primary ADC Error Bit.
Set by hardware to indicate that the result written to the primary ADC data registers has been clamped to all
zeros or all ones. After a calibration, this bit also ags error conditions that caused the calibration registers not
to be written.
Cleared by a write to the mode bits to initiate a conversion or calibration.
2 ERR1 Auxiliary ADC Error Bit. Same denition as ERR0 referred to the auxiliary ADC.
1 ––– Reserved for Future Use
0 ––– Reserved for Future Use
REV. A
REV. A