| Electronic Components Datasheet Search |
|
AD4685 Datasheet(PDF) 25 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD4685 Datasheet(HTML) 25 Page - Analog Devices |
|
25 / 32 page ![]() Data Sheet AD4684/AD4685 INTERFACE analog.com Rev. 0 | 25 of 32 conversion result for ADC A and ADC B and is output on SDOA. A CRC is also calculated and appended to register read outputs. The CRC read function can be used in 2-wire SPI mode, 1-wire SPI mode, and resolution boost mode. CRC Write To enable the CRC write function, the CRC_W bit in the CONFIGU- RATION1 register must be set to 1. To set the CRC_W bit to 1 to enable the CRC feature, the request frame must have a valid CRC appended to the frame. After the CRC feature is enabled, all register write requests are ignored unless accompanied by a valid CRC command, requiring a valid CRC to both enable and disable the CRC write feature. CRC Polynomial For CRC checksum calculations, the following polynomial is always used: x8 + x2 + x + 1 To generate the checksum, the 16-bit data conversion results of the two channels are combined, which produces a 32-bit data. The eight MSBs of the 32-bit data are inverted and then shift by eight bits to create a number ending in eight Logic 0s. The polynomial is aligned such that its MSB is adjacent to the leftmost Logic 1 of the data. An exclusive OR (XOR) function is applied to the data to produce a new, shorter number. The polynomial is again aligned such that its MSB is adjacent to the leftmost Logic 1 of the new result, and the procedure is repeated. This process repeats until the original data is reduced to a value less than the polynomial, the 8-bit checksum. For example, the polynomial is 100000111. Let the original data of two channels be 0xAAAA and 0x5555, that is, 1010 1010 1010 1010 and 0101 0101 0101 0101. The data of the two channels is then appended, including eight 0s on the right. The data then becomes 1010 1010 1010 1010 0101 0101 0101 0101 0000 0000. Table 11 shows the CRC calculation of 16-bit, 2-channel data. In the final XOR operation, the reduced data is less than the polynomial. Thus, the remainder is the CRC for the assumed data. Figure 48 shows the CRC operation. Table 11. Example CRC Calculation for 2-Channel, 16-Bit Data Data 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 X1 X1 X1 X1 X1 X1 X1 X1 Process Data 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 1 0 1 0 0 0 1 1 0 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 0 1 0 0 0 0 0 1 1 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 0 1 1 1 1 0 0 1 0 0 1 0 0 1 0 0 0 0 0 1 1 1 1 0 0 0 1 1 1 0 1 1 0 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 1 0 0 0 0 0 1 1 1 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0 0 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 1 CRC 1 0 0 1 1 1 0 0 1 X = don’t care. |
|
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 |