These writes allow the SS /HSA pin to toggle three times. See the
The ADE7816 has two interrupt pins, IRQ0 and IRQ1 . Each pin is
on, the ADE7816 ignores spurious toggling of the SS /HSA pin,
the interrupt mask register is Logic 1, the IRQx logic output goes
clear the status flag to 0. The IRQx pin remains low until the
register does not have any functionality. The IRQ1 pin always
I 2 C and SPI ports by manipulating the SS /HSA pin after power-up
or after a hardware reset. If the SS /HSA pin is held high, the
If the SS /HSA pin is toggled high to low three times after power-up
new hardware reset is executed. This manipulation of the SS /HSA
the SS /HSA pin of the master device (that is, the microcontroller)
address byte is a read/ write bit. Because this is a write operation,
DataSheet
OUTPUTS
This section describes the outputs from the ADE7816 .
INTERRUPTS
E E
A A A
managed by a 32-bit interrupt mask register, MASK0 and MASK1
(Address 0xE50A and Address 0xE50B), respectively. To enable
an interrupt, a bit in the MASKx register must be set to 1. To
disable an interrupt, the bit must be cleared to 0. Two 32-bit
status registers, STATUS0 and STATUS1 (Address 0xE502 and
Address 0xE503, respectively), are associated with the interrupts.
When an interrupt event occurs in the ADE7816,thecorre-
sponding flag in the interrupt status register is set to a Logic 1
(see Table 30 and Table 31). If the mask bit fo r this interrupt in
E
A A
active low. The flag bits in the interrupt status register are set,
irrespective of the state of the mask bits. To determine the source
of the interrupt, the microcontroller must perform a read of the
corresponding STATUSx register and identify which bit is set to 1.
To erase the flag in the status register, write back to the STATUSx
register with the flag set to 1. After an interrupt pin goes low, the
status register is read and the source of the interrupt is identified.
Then, the status register is written back, with no changes, to
E
A A
status flag is cancelled.
By default, all interrupts are disabled, with the exception of
the RSTDONE interrupt. This interrupt can never be masked
(disabled) and, therefore, Bit 15 (RSTDONE) in the MASK1
E
A A
goes low, and Bit 15 (RSTDONE) in the STATUS1 register is set
to 1 whenever a power-up or a hardware/software reset process
ends. To cancel the RSTDONE status flag, the STATUS1 register
nust be written with Bit 15 (RSTDONE) set to 1.
COMMUNICATION
Serial Interface Selection
After reset, the HSDC port is always disabled. Choose between the
E
A A
E
A A
ADE7816 uses the I 2 C port until a new hardware reset is executed.
E
A A
or after a hardware reset, the ADE7816 uses the SPI port until a
E
A A
pin can be accomplished in two ways. The first option is to use
E
A A
as a regular I/O pin and toggle it three times. The second option is
to execute three SPI write operations to a location in the address
space that is not allocated to a specific ADE7816 register (such as
Address 0xEBFF, where 8-bit writes can be executed).
ADE7816
E
A A
SPI Write Operation section for details on the write protocol
that is involved.
After the serial port choice is completed, it must be locked.
If I 2 C is the active serial port, Bit 1 (I2C_LOCK) of the CONFIG2
register (Address 0xEC01) must be set to 1 to lock it in. From then
E
A A A
and an eventual switch to use of the SPI port is no longer possible.
If the SPI is the active serial port, any write to the CONFIG2
register locks the port. From then on, a switch to the I 2 C port is no
longer possible.
The functionality of the ADE7816 is accessible via several on-chip
registers. The contents of these registers can be updated or read,
using either the I 2 C or SPI interfaces. The HSDC port provides the
instantaneous values of the voltages and current channels.
I 2 C-Compatible Interface
The ADE7816 supports a fully licensed I 2 C interface. The I 2 C
interface is implemented as a full hardware slave. SDA is the data
I/O pin, and SCL is the serial clock. These two pins are shared with
the MOSI and SCLK pins, respectively, of the on-chip SPI interface.
The maximum serial clock frequency supported by this interface is
400 kHz.
The SDA and SCL pins are used for data transfer and are con-
figured in a wire-AND’ed format that allows arbitration in a
multimaster system.
The transfer sequence of an I 2 C system consists of a master device
initiating a transfer by generating a start condition while the bus
is idle. The master transmits the address of the slave device and the
direction of the data transfer in the initial address transfer. If the
slave acknowledges, the data transfer is initiated. This continues
until the master issues a stop condition and the bus becomes idle.
I 2 C Write Operation
The write operation, using the I 2 C interface of the ADE7816 ,
initiated when the master generates a start condition, consists
of one byte representing the address of the ADE7816 , followed
by the 16-bit address of the target register and by the value of
the register.
The most significant seven bits of the address byte constitute
the address of the ADE7816 , which is 0111000b. Bit 0 of the
E
A A
it must be cleared to 0; therefore, the first byte of the write
operation is 0x70. After every byte is received, the ADE7816
generates an acknowledge. The register can be 8, 16, or 32 bits
in length. After the last bit of the register is transmitted and the
ADE7816 acknowledges the transfer, the master generates a
stop condition. The addresses and the register content are sent
with the most significant bit first. See Figure 39 for details of the
I 2 C write operation.
Rev. A | Page 31 of 48
相关PDF资料
EVAL-ADE7878EBZ BOARD EVAL FOR ADE7878
EVAL-ADE7880EBZ BOARD EVAL FOR ADE7880
EVAL-ADE7953EBZ BOARD EVAL FOR ADE7953
EVAL-ADF4002EBZ1 BOARD EVAL FOR ADF4002
EVAL-ADG788EBZ BOARD EVALUATION FOR ADG788
EVAL-ADM1021AEB BOARD EVAL FOR ADM1021
EVAL-ADM1023EB BOARD EVAL FOR ADM1023
EVAL-ADM1031EB BOARD EVAL FOR ADM1031
相关代理商/技术参数
EVAL-ADE7854EBZ 制造商:Analog Devices 功能描述:EVALUATION BOARDS - Boxed Product (Development Kits)
EVAL-ADE7858EBZ 制造商:AD 制造商全称:Analog Devices 功能描述:Poly Phase Multifunction Energy Metering IC with per Phase Active and Reactive Powers
EVAL-ADE7878EBZ 功能描述:BOARD EVAL FOR ADE7878 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:PCI Express® (PCIe) 主要目的:接口,收发器,PCI Express 嵌入式:- 已用 IC / 零件:DS80PCI800 主要属性:- 次要属性:- 已供物品:板
EVAL-ADE7880EBZ 功能描述:BOARD EVAL FOR ADE7880 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:* 产品培训模块:Obsolescence Mitigation Program 标准包装:1 系列:- 主要目的:电源管理,电池充电器 嵌入式:否 已用 IC / 零件:MAX8903A 主要属性:1 芯锂离子电池 次要属性:状态 LED 已供物品:板
EVAL-ADE7880EBZ 制造商:Analog Devices 功能描述:ADE7880, ENERGY METER, 3 PH, SPI, I2C, E
EVAL-ADE7913EBZ 制造商:AD 制造商全称:Analog Devices 功能描述:3-Channel, Isolated, Sigma-Delta ADC with SPI
EVAL-ADE7953EBZ 功能描述:BOARD EVAL FOR ADE7953 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:PSoC® 主要目的:电源管理,热管理 嵌入式:- 已用 IC / 零件:- 主要属性:- 次要属性:- 已供物品:板,CD,电源
EVAL-ADF4001EBZ2 制造商:Analog Devices 功能描述:Evaluation Board For Pll Frequency Synthesizer 制造商:Analog Devices 功能描述:ADF4001 PLL SYNTHESIZER EVAL BOARD