Question
ADUC845 has two ADC core and I think they must can work at the same time.
But there is only one ADC interrupt and there is no explanation on our
datasheet for the issue below.
Would you kindly give the confirmation for the issue below. Many thanks!
Answer
AD0CON1/2
Any write to this SFR during an active mode with AD0EN =1, and the main ADC has
not completed its single conversion / calibration, causes both ADCs to be
interrupted, and a new conversion / calibration to commence. The contents of
ADSTAT (except
NOXREF) are cleared when this occurs (This may take a number of machine cycles).
AD1CON
Any write to this SFR during an active mode with AD1EN = 1 causes the auxiliary
ADC to be interrupted, and a new conversion / calibration to commence. The
conversion
will not commence until the next chop edge if the main ADC is already
converting;
but if the main ADC has completed its single conversion / calibration then the
auxiliary ADC will re-start immediately. The RDY1 and ERR1 bits of ADSTAT are
cleared when this occurs. The CAL bit will also be cleared, unless the main ADC
has
just completed its single conversion / calibration.
ADMODE
Any writes to this SFR that involve a change in the MD bits, or set AD0EN, or
rewrite
the same information will cause both ADCs to be interrupted, and a new
conversion
/ calibration to be initiated.The contents of ADSTAT (except NOXREF) are
cleared when this occurs. When the ADC clears the MD bits, it will not clear
the MD bits until each enabled ADC has completed
its single conversion or calibration.