| 数据搜索系统,热门电子元器件搜索 |
|
ADE1202 数据表(PDF) 26 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE1202 数据表(HTML) 26 Page - Analog Devices |
|
26 / 42 page ![]() ADE1202 Data Sheet Rev. 0 | Page 26 of 42 CHIP_ ADDR REGISTER ADDRESS 15 0 1 14 4 3 2 0 0 REGISTER VALUE CRC VALUE 15 15 CS SCLK MOSI MISO 0 Figure 43. SPI Read Operation with Appended Cyclic Redundancy Check (CRC) CHIP_ ADDR REGISTER ADDRESS 15 1 0 14 4 3 2 0 REGISTER VALUE 15 0 CS SCLK MOSI Figure 44. SPI Broadcast Write Operation Each time a register is written, the register value must be verified by reading it back. If multiple ADE1202 devices share the same SPI bus (as shown in Figure 38) and the same register in multiple chips must be initialized with an identical value, the broadcast write functionality is available. Set Bit 15 in the SPI header word to 1 to enable a broadcast write, as shown in Figure 44. Bits[2:0] (CHIP_ADDR) of the header word that indicate the chip address on the SPI bus are ignored during a broadcast write. SPI Read Operation The registers of the ADE1202 can be read one at a time following the protocol shown in Figure 42. A read operation is initiated when the host controller sets the CS pin low and begins sending a 16-bit command word (see Figure 39). When the ADE1202 receives the last bit of the header word, the device begins to transmit the register contents on the MISO line when the next SCLK high to low transition occurs. The host controller samples the data on the low to high SCLK transition. For an SPI read operation, Bit 3 of the command header must be set to 1 (see Figure 39). To ensure the integrity of the SPI read operation, a 16-bit CRC (CRC-16) of the register value sent out on the MOSI pin can be included in the transaction. If enabled, the ADE1202 appends the CRC-16 value during the SPI read operation after the register value (see Figure 43). If Bit 0 (SPI_CRC_APPEND_EN) in the CTRL register is cleared to 0 (the default value), no CRC value is appended during an SPI read operation. If the bit is set to 1, the CRC-16 value is appended to the register value read during the SPI read operation. The CRC algorithm is based on the standard CRC-16-CCITT polynomial. The registers are introduced into a linear feedback shift register (LFSR)-based generator one byte at a time, most significant byte first, as shown in Figure 45. Each byte is then used with the MSB first. Figure 46 shows how the LFSR is used for CRC calculation. The ADE1202 register forms Bits[a15:a0] used by the LFSR. Bit a0 is Bit 15 of the register. Bit a15 is Bit 0 of the register. + LFSR GENERATOR 0 7 8 15 ADE1202 REGISTER 07 8 15 a15 a0 Figure 45. CRC Calculation g0 g1 b0 LFSR FB + g2 b1 + g3 b2 a15,a14,...a2,a1,a0 + g15 b15 + + Figure 46. LFSR Generator Used for CRC Calculation Bits bi(0) = 1, where i = 0, 1, 2, … 15, the initial state of the bits that form the CRC. Bit b0 is the LSB, and Bit b15 is the MSB. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |