This simple example shows how to use the CRC module driver by using the I/O interface by using the CPU and writing the data to the DATAIN register.
All AVR XMEGA AU/B/C devices with a CRC module can be used. This example has been tested with the following setup:
The example will generate both CRC-32 and CRC-16 for a data buffer, append the checksums to the data, generate new checksums and check that these are zero. Leds will light up if this is the case.
This example depends on the following modules:
This software was written for the GNU GCC. Other compilers may or may not work.
For further information, visit Microchip.