| 数据搜索系统,热门电子元器件搜索 |
|
AD4056BCPZ-R2 数据表(PDF) 41 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD4056BCPZ-R2 数据表(HTML) 41 Page - Analog Devices |
|
41 / 67 page ![]() Data Sheet AD4050/AD4056 SERIAL INTERFACE analog.com Rev. A | 41 of 67 Register Access CRC The AD4050/AD4056 include optional error checking for register reads and writes based on CRC-8, using the following polynomial: x8+x2+x+1 (6) The CRC is enabled by setting the CRC_EN and CRC_EN_B bit fields to 0x1 and 0x2, respectively. When the CRC is enabled, an 8-bit checksum code is appended to each register data byte, as shown in Figure 63. The value of the checksum is calculated from the data read or written over the SPI, which allows the AD4050/AD4056 and the digital host to detect corrupted serial communications. When the AD4050/AD4056 receive a checksum that is inconsistent with its corresponding SPI transaction, the transaction is considered invalid, and the SPI_CRC_ERR bit in the INTERFACE_STATUS register is set to 1. The SPI_CRC_ERR bit is a write-1-to-clear bit (R/W1C). When the CRC is enabled, it is recommended to check the SPI_CRC_ERR bit after each register read and write attempt. When a register write has an invalid CRC, the contents of the register are not updated. For bulk register writes such as those shown in Figure 63, the AD4050/AD4056 also ignore data for registers following the invalid CRC. When a register read has an invalid CRC, the digital host must discard the received data and retry the register read. The CRC-8 calculation is seeded by a nonzero value to detect if the data lines are stuck low. The seed for the first CRC following each CS falling edge is 0xA5. When performing bulk reads or writes, the seed for all subsequent CRCs is the least significant byte (LSByte) of the current register address. Table 18 summarizes the data and seed values for all possible register read and write transactions in configuration mode. Table 18. CRC Data and Seed Values for Configuration Mode SPI Transactions SPI Transaction Type Pin First CRC Subsequent CRCs Write SDI Seed = 0xA5, Data = [instruction phase data, register write data] Seed = LSByte of register address, Data = register write data SDO Seed = 0xA5, Data = [instruction phase data, register write data] Seed = LSByte of register address, Data = register write data Read SDI Seed = 0xA5, Data = [instruction phase data, padding] Not applicable SDO Seed = 0xA5, Data = [instruction phase data, register read data] Seed = LSByte of register address, Data = register read data |
|
链接网址 |
| 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 |