전자부품 데이터시트 검색엔진 |
|
TLE4998S3 데이터시트(PDF) 38 Page - Infineon Technologies AG |
|
TLE4998S3 데이터시트(HTML) 38 Page - Infineon Technologies AG |
38 / 39 page TLE4998S SENT Output Definition (SAE J2716) Data Sheet 38 V 1.0, 2008-07 13.3 Checksum Nibble Details The Checksum nibble is a 4-bit CRC of the data nibbles including the status nibble. The CRC is calculated using a polynomial x4 +x3 + x2 + 1 with a seed value of 0101. In the TLE4998S it is implemented as a series of XOR and shift operations as shown in the following flowchart: Figure 14 CRC Calculation A microcontroller implementation may use an XOR command plus a small 4-bit lookup table to calculate the CRC for each nibble. Figure 15 Example Code for CRC Generation GENERATOR = 1101 SEED = 0101 , use this constant as old CRC value at first call Pre-initialization : VALUE xor SEED xor only if MSB = 1 VALUE SEED 0 <<1 GENPOLY xor VALUE xor SEED 4x CRC calculation Nibble next Nibble // Fast way for any µC with low memory and compute capabilities char Data[8] = {…}; // contains the input data (status nibble , 6 data nibble , CRC) // required variables and LUT char CheckSum, i; char CrcLookup[16] = {0, 13, 7, 10, 14, 3, 9, 4, 1, 12, 6, 11, 15, 2, 8, 5}; CheckSum= 5; // initialize checksum with seed "0101" for (i=0; i<7; i++) { CheckSum = CheckSum ^ Data[i]; CheckSum = CrcLookup[CheckSum]; } ; // finally check if Data [7] is equal to CheckSum |
유사한 부품 번호 - TLE4998S3_V01 |
|
유사한 설명 - TLE4998S3_V01 |
|
|
링크 URL |
개인정보취급방침 |
ALLDATASHEET.CO.KR |
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 |