SL092030 - NXP.com
SL092030 - NXP.com
SL092030 - NXP.com
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Philips Semiconductors Product Specification Revision 3.0 2004 January 30I•CODE UIDSL2 ICS11fclose(fp);return 0;}else if (st == 1) break;elsecontinue;}crc_reg = PRESET;printf("\n Preset ==> ");printf("CRC8-Register: %02X hex\n", crc_reg);for (i = 0; i < n; i++){printf("%2d. Input-Byte: %02X hex ==> ", i + 1, byte[i]);crc8(byte[i], &crc_reg);printf("CRC8-Register: %02X hex\n", crc_reg);}fclose(fp);printf("\nPress any key to continue ...\n");}if (!getch()) getch(); return 0;CRC8_UID Example Input File30000025CRC8_UID Example OutputPreset ==> CRC8-Register: FD hex1. Input-Byte: 30 hex ==> CRC8-Register: B4 hex2. Input-Byte: 00 hex ==> CRC8-Register: 18 hex3. Input-Byte: 00 hex ==> CRC8-Register: 25 hex4. Input-Byte: 25 hex ==> CRC8-Register: 00 hexPress any key to continue ...29