| Electronic Components Datasheet Search |
|
ADE7878ACPZ Datasheet(PDF) 66 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE7878ACPZ Datasheet(HTML) 66 Page - Analog Devices |
|
66 / 92 page ![]() ADE7878 Rev. 0 | Page 66 of 92 1 0 15 14 SCLK MOSI MISO 10 31 30 1 0 0 0 0 000 REGISTER VALUE REGISTER ADDRESS SS Figure 83. SPI Read Operation of a 32-Bit Register 0 15 14 SCLK MOSI 10 31 30 10 0 0 0 000 0 REGISTER ADDRESS REGISTER VALUE SS Figure 84. SPI Write Operation of a 32-Bit Register HSDC is an interface that is used to send to an external device, usually a microprocessor or a DSP, up to sixteen 32-bit words. The words represent the instantaneous values of the phase currents and voltages, neutral current, and active, reactive, and apparent powers. The registers being transmitted are: IAWV[23:0], VAWV[23:0], IBWV[23:0], VBWV[23:0], ICWV[23:0], VCWV[23:0], AVA[23:0], INWV[23:0], BVA[23:0], CVA[23:0], AWATT[23:0], BWATT[23:0], CWATT[23:0], AVAR[23:0], BVAR[23:0], and CVAR[23:0]. All are 24-bit registers that are sign extended to 32-bits (see Figure 34 for details). HSDC can be interfaced with 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 is usually connected to the select pin of the slave. HSD is used to send data to the slave and is usually connected to the data input pin of the slave. HSCLK is the serial clock line. It is generated by the ADE7878 and is usually connected to the serial clock input of the slave. Figure 85 presents the connections between the ADE7878 HSDC and slave devices containing an SPI interface. The HSDC communication is managed by the HSDC_CFG[7:0] register (see Table 22). It is recommended to set the HSDC_CFG register to the desired value before enabling the port using Bit 6 (HSDCEN) in the CONFIG[15:0] register. In this way, the state of various pins belonging to the HSDC port do not take levels incon- sistent with the desired HSDC behavior. After a hardware reset or after power-up, the MISO/HSD and SS/HSA pins are set high. Bit 0 (HCLK) in the HSDC_CFG[7:0] 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. HSD HSCLK HSA ADE7878 MOSI SCK SS SPI DEVICE Figure 85. Connecting the ADE7878 HSDC with an SPI The words can be transmitted as 32-bit packages or as 8-bit packages. When Bit 1 (HSIZE) in the HSDC_CFG[7:0] 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 pack- ages. The HSDC interface transmits the words MSB first. Bit 2 (HGAP) introduces a gap of seven HSCLK cycles between packages, when Bit 2 (HGAP) is set to 1. When Bit HGAP 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 bit is put on the HSD line every HSCLK high-to-low transition. Bits[4:3] (HXFER[1:0]) decide how many words are transmitted. When HXFER[1:0] is 00, the default value, then all 16 words are transmitted. When HXFER[1:0] is 01, only the words representing the instantaneous values of the phase and neutral currents and phase voltages are transmitted in the following order: IAWV, VAWV, IBWV, VBWV, ICWV, VCWV, and one 32-bit word that is always equal to INWV. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |