up: embedded systems - modbus  
embedded systems - modbus - crc calculationWhat links here?
//##############################################################################
int crc16(char* string, int length) 
{
    int     crc = 0xFFFF;


for (int x = 0; x < length; x++ ) { crc = crc ^ string[x]; for (int y = 0; y < 8; y++) { if ( (crc & 0x0001) == 0x0001 ) { crc = ( (crc >> 1 ) ^ 0xA001 ); } else { crc = crc >> 1; } } }

return crc; }
embedded systems - modbus - crc calculation
AutoCAD LISP - CONS
electronics - links
AutoCAD LISP - ASSOC
software links - php
todo
AutoCAD LISP - ENTGET
embedded systems - SPI and I2C
programming:microchip pics:pic assembly language:literals
Model Railroading - HO Scale
filename:embedded systems - modbus - crc calculation
filename:embedded%20systems%20%2D%20modbus%20%2D%20crc%20calculation
last edit:September 27 2019 20:03:06 (2093 days ago)
ct = 1750536910.000000 = June 21 2025 16:15:10
ft = 1569628986.000000 = September 27 2019 20:03:06
dt = 180907924.000000