| 전자부품 데이터시트 검색엔진 |
|
AD7616BSTZ 데이터시트(PDF) 40 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD7616BSTZ 데이터시트(HTML) 40 Page - Analog Devices |
|
40 / 51 page ![]() Data Sheet AD7616 Rev. 0 | Page 39 of 50 If the CRC function is enabled, a CRC is calculated on the conversion results for Channel VxA and Channel VxB. The CRC is calculated and transferred on the serial or parallel interface after the conversion results are transmitted, depending on the configuration of the device. The Hamming distance varies relative to the number of bits in the conversion result. For conversions with ≤119 bits, the Hamming distance is 4. For >119 bits, the Hamming distance is 1, that is, 1-bit errors are always detected. The following is a pseudocode description of how the CRC is implemented in the AD7616: crc = 8’b0; i = 0; x = number of conversion channel pairs; for (i=0, i<x, i++) begin crc1 = crc_out(An,Crc); crc = crc_out(Bn,Crc1); i = i +1; end where the function crc_out(data, crc) is crc_out[0] = data[14] ^ data[12] ^ data[8] ^ data[7] ^ data[6] ^ data[0] ^ crc[0] ^ crc[4] ^ crc[6]; crc_out[1] = data[15] ^ data[14] ^ data[13] ^ data[12] ^ data[9] ^ data[6] ^ data[1] ^ data[0] ^ crc[1] ^ crc[4] ^ crc[5] ^ crc[6] ^ crc[7]; crc_out[2] = data[15] ^ data[13] ^ data[12] ^ data[10] ^ data[8] ^ data[6] ^ data[2] ^ data[1] ^ data[0] ^ crc[0] ^ crc[2] ^ crc[4] ^ crc[5] ^ crc[7]; crc_out[3] = data[14] ^ data[13] ^ data[11] ^ data[9] ^ data[7] ^ data[3] ^ data[2] ^ data[1] ^ crc[1] ^ crc[3] ^ crc[5] ^ crc[6]; crc_out[4] = data[15] ^ data[14] ^ data[12] ^ data[10] ^ data[8] ^ data[4] ^ data[3] ^ data[2] ^ crc[0] ^ crc[2] ^ crc[4] ^ crc[6] ^ crc[7]; crc_out[5] = data[15] ^ data[13] ^ data[11] ^ data[9] ^ data[5] ^ data[4] ^ data[3] ^ crc[1] ^ crc[3] ^ crc[5] ^ crc[7]; crc_out[6] = data[14] ^ data[12] ^ data[10] ^ data[6] ^ data[5] ^ data[4] ^ crc[2] ^ crc[4] ^ crc[6]; crc_out[7] = data[15] ^ data[13] ^ data[11] ^ data[7] ^ data[6] ^ data[5] ^ crc[3] ^ crc[5] ^ crc[7]; The initial CRC word used by the AD7616 is an 8-bit word equal to zero. The XOR operation described in the preceding code is executed to calculate each bit of the CRC word for the conversion result, AN. This CRC word (crc1) is then used as the starting point for calculating the CRC word (crc) for the conversion result, BN. The process repeats cyclically for each channel pair converted. Depending on the mode of operation of the AD7616, the status register value is appended to the conversion data and read out via an extra read command over the serial or parallel interface. The user can then repeat the XOR calculation described in the preceding code for the received conversion results to check whether both CRC words match. See Figure 68 or a description of how the CRC word is appended to the data for each mode of operation. Figure 68. CRC Readback for All Modes CONVST BUSY Ax Bx CRCAB(x) DATA Ax Bx Az Bz CRCAB(x:z) DATA Ax CRCAB(x) SDOA Bx CRCAB(x) SDOB Ax Az CRCAB(x:z) SDOA Bx Bz CRCAB(x:z) SDOB PARALLEL/SERIAL (1-WIRE), SEQUENCER/MANUAL MODE PARALLEL/SERIAL (1-WIRE), BURST SERIAL (2-WIRE), SEQUENCER/MANUAL MODE SERIAL (2-WIRE), BURST |
|
링크 URL |
| 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 |