Microchip Technology ARD00330 データシート

ページ / 480
PIC18F87J72 FAMILY
DS39979A-page 460
Preliminary
 2010 Microchip Technology Inc.
B.6.4
STATUS AND COMMUNICATION 
REGISTER
This register contains all settings related to the
communication, including data ready settings and
status, and Read mode settings.
B.6.4.1
Data Ready (DR) Latency Control – 
DR_LTY
This bit determines if the first data ready pulses
correspond to settled data, or unsettled data, from each
SINC
3
 filter. Unsettled data will provide DR pulses
every DRCLK period. If this bit is set, unsettled data will
wait for 3 DRCLK periods before giving DR pulses and
will then give DR pulses every DRCLK period.
B.6.4.2
Data Ready (DR) Pin High-Z – 
DR_HIZN
This bit defines the non-active state of the Data Ready
pin (logic ‘1’ or high-impedance). Using this bit, the
user can connect multiple chips with the same DR pin
with a pull-up resistor (DR_HIZN = 0) or a single chip
with no external component (DR_HIZN = 1).
B.6.4.3
Data Ready Mode – DRMODE<1:0>
If one of the channels is in Reset or shutdown, only one
of the data ready pulses is present and the situation is
similar to DRMODE = 01 or 10. In the ‘01’, ‘10’ and ‘11’
modes, the ADC channel data to be read is latched at
the beginning of a reading, in order to prevent the case
of erroneous data when a DR pulse happens during a
read. In these modes the two channels are independent.
When these bits are equal to ‘11’, ‘10’ or ‘01’, they con-
trol which ADC’s data ready is present on the DR pin.
When DRMODE = 00, the Data Ready pin output is
synchronized with the lagging ADC channel (defined by
the PHASE register) and the ADCs are linked together.
In this mode, the output of the two ADCs are latched
synchronously at the moment of the DR event. This
prevents having bad synchronization between the two
ADCs. The output is also latched at the beginning of a
reading in order not to be updated during a read and
not to give erroneous data.
This mode is very useful for power metering
applications because the data from both ADCs can be
retrieved using this single data ready event which is
processed synchronously, even in case of a large
phase difference. This mode works as if there was one
ADC channel and its data would be 48 bits long, and
contain both channel data. As a consequence, if one
channel is in Reset or shutdown when DRMODE = 00,
no data ready pulse will be present at the outputs (if
both channels are not ready in this mode, the data is
not considered as ready).
See Section B.5.9 “Data Ready Pin (DR)” for more
details about Data Ready pin behavior.
B.6.4.4
DR Status Flag – DRSTATUS<1:0>
These bits indicate the DR status of both channels,
respectively. These flags are set to logic high after each
read of the STATUS/COM register. These bits are
cleared when a DR event has happened on its
respective ADC channel. Writing these bits has no
effect.
Note:
These bits are useful if multiple devices
share the same DR output pin
(DR_HIZN = 0) in order to understand
from which device the DR event has
happened. This configuration can be used
for three-phase power metering systems
where all three phases share the same
Data Ready pin. In case the DRMODE = 00
(linked ADCs), these data ready status bits
will be updated synchronously upon the
same event (lagging ADC is ready). These
bits are also useful in systems where the
DR pin is not used to save MCU I/O.