EVAL-ADE7816EBZ AD [Analog Devices], EVAL-ADE7816EBZ Datasheet - Page 34

no-image

EVAL-ADE7816EBZ

Manufacturer Part Number
EVAL-ADE7816EBZ
Description
Six Current Channels, One Voltage Channel
Manufacturer
AD [Analog Devices]
Datasheet
ADE7816
HSDC Interface
The high speed data capture (HSDC) interface is disabled by
default. It can be used only if the
an I
simultaneously with the HSDC port.
Bit 6 (HSDCEN) in the CONFIG register (Address 0xE618)
activates HSDC when set to 1. If the HSDCEN bit is cleared to 0,
the default value, the HSDC interface is disabled. Setting the
HSDCEN bit to 1 when the SPI is in use does not have any effect.
The HSDC port is an interface for sending up to four 32-bit
words to an external device (usually a microprocessor or a DSP).
The words represent the instantaneous values of the currents and
voltage. The registers that are transmitted are IAWV/IDWV,
IBWV/IEWV, ICWV/IFWV, and VWV. All are 24-bit registers
that are sign extended to 32 bits.
The HSDC port can be interfaced with the SPI or similar interfaces.
HSDC is always a master of the communication and consists of
three pins: HSA, HSD, and HSCLK. HSA represents the select
signal. It stays active low or high when a word is transmitted,
and it is usually connected to the select pin of the slave. HSD
sends data to the slave, and it is usually connected to the data
input pin of the slave. HSCLK is the serial clock line that is
generated by the ADE7816, and it is usually connected to the
serial clock input of the slave. Figure 43 shows the connections
between the
interface.
The HSDC communication is managed by the HSDC_CFG
register, Address 0xE706 (see Table 28). It is recommended that
the HSDC_CFG register be set to the desired value before enabling
the port, using Bit 6 (HSDCEN) in the CONFIG register. In this
way, the state of various pins belonging to the HSDC port do not
take levels that are inconsistent with the desired HSDC behavior.
After a hardware reset or power-up, the MISO/HSD and SS /HSA
pins are set high.
Bit 0 (HCLK) in the HSDC_CFG register determines the serial
clock frequency of the HSDC communication. When HCLK is 0
(the default value), the clock frequency is 8 MHz. When HCLK is 1,
the clock frequency is 4 MHz. A bit of data is transmitted for every
HSCLK high-to-low transition. The slave device that receives data
from HSDC samples the HSD line on the low-to-high transition
of HSCLK.
2
C interface. The
Figure 43. Connecting the
ADE7816
ADE7816
MISO/HSD
ADE7816
SS/HSA
HSCLK
HSDC and slave devices containing a SPI
SPI interface cannot be used
ADE7816
ADE7816
MISO
SCK
SS
SPI DEVICE
HSDC with a SPI
is configured with
Rev. 0 | Page 34 of 48
The words can be transmitted as 32-bit or 8-bit packages. When
Bit 1 (HSIZE) in the HSDC_CFG register is 0 (the default value),
the words are transmitted as 32-bit packages. When Bit HSIZE is 1,
the registers are transmitted as 8-bit packages. The HSDC interface
transmits the words MSB first.
When Bit 2 (HGAP) is set to 1, a gap of seven HSCLK cycles is
introduced between packages. When the HGAP bit is cleared to 0
(the default value), no gap is introduced between packages and
the communication time is shortest. In this case, HSIZE does
not have any influence on the communication, and a data bit is
placed on the HSD line with every HSCLK high-to-low transition.
For correct operation, Bits[4:3] (HXFER[1:0]) must be set to a
value of 01b. The words representing the instantaneous values
of currents and voltage are transmitted in the following order:
IAWV/IDWV, VWV, IBWV/IEWV, VWV, ICVW/IFWV, and
VWV, followed by one 32-bit word of all 0s. Note that the voltage
waveform is sent three times. Bit 14 (CHANNEL_SEL) of the
COMPMODE register (Address 0xE60E) can be used to select
which group of current channels is transmitted (see the
Selecting a Current Channel Group section).
Bit 5 (HSAPOL) of the HSDC_CFG register determines the
HSA function polarity of the SS /HSA pin during communication.
When the HSAPOL bit is 0 (the default value), HSA is active low
during the communication. This means that HSA stays high
when no communication is in progress. When the communication
starts, HSA goes low and stays low until the communication ends.
Then it goes back to high. When HSAPOL is 1, the HSA function
of the SS /HSA pin is active high during the communication.
This means that HSA stays low when no communication is in
progress. When the communication starts, HSA goes high and
stays high until the communication ends; then it goes back to low.
Bits[7:6] of the HSDC_CFG register are reserved. Any value
written into these bits has no consequence on HSDC behavior.
Figure 44 shows the HSDC transfer protocol for HGAP = 0,
HXFER[1:0] = 01, and HSAPOL = 0. Note that the HSDC
interface sets a data bit on the HSD line every HSCLK high-
to-low transition, and the value of Bit HSIZE is irrelevant.
Figure 45 shows the HSDC transfer protocol for HSIZE = 0,
HGAP = 1, HXFER[1:0] = 01, and HSAPOL = 0. Note that the
HSDC interface introduces a gap of seven HSCLK cycles between
every 32-bit word.
Figure 46 shows the HSDC transfer protocol for HSIZE = 1,
HGAP = 1, HXFER[1:0] = 01, and HSAPOL = 0. Note that the
HSDC interface introduces a gap of seven HSCLK cycles between
every 8-bit word.
See Table 28 for the HSDC_CFG register and descriptions for
the HCLK, HSIZE, HGAP, HXFER[1:0], and HSAPOL bits.
Data Sheet

Related parts for EVAL-ADE7816EBZ