sd_card_crc

CRC (Cyclic Redundancy Check) Library for SD Card Communication

Author AI Assistant
Adapted-by
Compiler >=2.4q3

Description

This library provides CRC7 and CRC16 calculations for SD card
             communication in SPI mode. CRC7 is used for command frames,
             CRC16 is used for data blocks.


Sources

SD Card Physical Layer Simplified Specification Version 2.00
SanDisk Secure Digital Card - http://www.cs.ucr.edu/~amitra/sdcard/ProdManualSDCardv1.9.pdf


Notes

- CRC7 polynomial: x^7 + x^3 + 1 (0x89)
- CRC16 polynomial: x^16 + x^12 + x^5 + 1 (0x1021)
- CRC7 is used for SD card command frames
- CRC16 is used for SD card data blocks


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

Functions


Related samples

Here are the list of samples which use this library:

18f67j5018f67j50_sd_card_crc_test.jal