SDAA287 March   2026 ADS112C04 , ADS112U04 , ADS114S06 , ADS114S08 , ADS122C04 , ADS122U04 , ADS124S06 , ADS124S08 , ADS125H01 , ADS125H02 , ADS1260 , ADS1261 , ADS1262 , ADS1263 , ADS127L01 , ADS127L11 , ADS127L14 , ADS127L18 , ADS127L21 , ADS131A02 , ADS131A04 , ADS131M02 , ADS131M02-Q1 , ADS131M03 , ADS131M03-Q1 , ADS131M04 , ADS131M04-Q1 , ADS131M06 , ADS131M06-Q1 , ADS131M08 , ADS131M08-Q1 , ADS7028 , ADS7038 , ADS7066 , ADS7067 , ADS7128 , ADS7138 , AFE78101 , AFE781H1 , AFE78201 , AFE782H1 , AFE88101 , AFE881H1 , AFE88201 , AFE882H1 , DAC60504 , DAC60508 , DAC61401 , DAC61402 , DAC61404 , DAC61408 , DAC61416 , DAC70504 , DAC70508 , DAC71408 , DAC71416 , DAC7750 , DAC7760 , DAC80504 , DAC80508 , DAC81401 , DAC81402 , DAC81404 , DAC81408 , DAC81416 , DAC8741H , DAC8742H , DAC8750 , DAC8760 , DAC8771 , DAC8775 , HDC3020 , HDC3020-Q1 , HDC3021 , HDC3021-Q1 , HDC3022 , HDC3022-Q1 , LMP90077 , LMP90078 , LMP90079 , LMP90080 , LMP90097 , LMP90098 , LMP90099 , LMP90100 , TMAG5173-Q1 , TMP114 , TMP126 , TMP126-Q1 , TMP1826 , TMP1827

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Browser Based CRC Calculator Example
    1. 2.1 CRC-8-CCITT, 0x00 Initial Value
    2. 2.2 CRC-8-CCITT, 0xFF Initial Value
    3. 2.3 CRC-8-One-Wire, 0xFF Initial Value
    4. 2.4 CRC-16-CCITT, 0xFFFF Initial Value
    5. 2.5 Input and Output Data Reflection
  6. 3Summary
  7. 4References

Summary

In this application note, the example code can be used to generate a simple CRC calculator. By clipping the code out of this applications note and pasting into an html file, this CRC code can be run in a browser. The original example runs a CRC-8-CCITT calculator, which is used in many TI devices. With a few small modifications, the code can be adapted to CRC algorithms of different initial values, generation polynomials, and CRC lengths. The last example also shows how to add reflection to the input data or the output CRC calculation by adding a new function to the script. These modifications can be used for CRC calculators used in many other TI devices.