PG-FP6 V1.06 Appendix B. Supplementary Information
R20UT4469EJ0800 Rev.8.00 Page 175 of 188
Oct.01.21
/* Check flash read buffer and fill if needed */
if (rd_ptr == 0)
{
Memory_Read (address, 4, data);
rd_ptr= 4;
address+= 4;
}
byte= (crc_accum >> 8) ^ data [--rd_ptr];
crc_accum= (crc_accum << 8) ^ CRC16_Tab [byte];
}
return crc_accum;
Figure B.3 16-bit CRC Calculation Specifications