Nov 12, 2015
02:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 12, 2015
02:03 AM
We are using the UART to receive standard 8 bit data streams of variable length. These messages have a CCITT CRC-16 bit checksum.
I want to use the FCE module to check the CRC, but it seems the FCE requires 16 bit data and an even number of bytes. Is this correct?
Is there any way to use the FCE with serial UART 8 bit data? The CCITT CRC-16 is the standard CRC for serial interfaces so it seems strange if the FCE cannot be used in this normal situation.
I want to use the FCE module to check the CRC, but it seems the FCE requires 16 bit data and an even number of bytes. Is this correct?
Is there any way to use the FCE with serial UART 8 bit data? The CCITT CRC-16 is the standard CRC for serial interfaces so it seems strange if the FCE cannot be used in this normal situation.
- Tags:
- IFX
5 Replies
Nov 12, 2015
02:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 12, 2015
02:44 AM
Yes, you can use CRC kernel 3 which offer CRC 8 bit checking.
Nov 12, 2015
07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 12, 2015
07:32 AM
The problem is that the CRC kernel 3 does not use the CCITT CRC 16 polynomial.
I need to enter the data byte (8 bit) wise and then read a 16 CRC.
I need to enter the data byte (8 bit) wise and then read a 16 CRC.
Nov 12, 2015
09:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 12, 2015
09:08 PM
Hi,
Do you have to do it sequentially for every 8bit? Otherwise you can consider combine 2 x 8bit within an array before the CRC check.
Do you have to do it sequentially for every 8bit? Otherwise you can consider combine 2 x 8bit within an array before the CRC check.
Nov 12, 2015
10:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 12, 2015
10:48 PM
I had already thought of that, but some of the messages have an odd number of data bytes, so that does not work.
Nov 16, 2015
02:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 16, 2015
02:34 AM
amanning wrote:
I had already thought of that, but some of the messages have an odd number of data bytes, so that does not work.
Well I think you have to implement some kind of buffering FIFO.