![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Example description
The CRC example demonstrates using the CRC engine for 8-bit, 16-bit, and 32-bit CRC computation. The CRC engine will run via CRC computations for 8-bit, 16-bit, and 32-bit blocks and verify the CRC checksum. The expected and actual results of the test are output on the UART. If the test fails, the LED will be on.
Special connection requirements
There are no special connection requirements for this example.
Build procedures:
LPC17xx/40xx example quickstart for Keil uVision4
LPC17xx/40xx example quickstart for IAR EWARM
LPC17xx/40xx example quickstart for Code Red Xpresso
Supported boards and board setup:
Embedded Artists' LPC1788 Developer's Kit
Embedded Artists' LPC4088 Developer's Kit
Submitting LPCOpen issues:
Community support for LPCOpen
Macros | |
| #define | EXPECTED_CCIT_SUM (0xFD2F) |
| #define | EXPECTED_CRC16_SUM (0x2799) |
| #define | EXPECTED_CRC32_SUM (0x100ECE8C) |
| #define | BLOCK_SIZE 0x40 |
Functions | |
| static void | initBlockData (uint8_t *p8) |
| int | main (void) |
| Main program body. | |