Questions tagged [crc]
CRC, or Cyclic Redundancy Check, is a technique commonly used to detect accidental changes to data
51
questions
-2
votes
0
answers
35
views
Implementing CRC Encoder in ISE using VHDL [closed]
In the below CRC Encoder, first, 22 bits of input are transmitted to the output, then 6 bits of parity are added to it. I did the following to implement the Encoder:
...
3
votes
1
answer
77
views
Which error mechanism would serve best for large data?
I have a microcontroller (mcu) communicating with Raspberry Pi (rpi) using SPI communication. The mcu is a slave device and rpi is the master device. I am transmitting ~800 kB of data from mcu to rpi. ...
3
votes
5
answers
1k
views
Ways to send data with CRC validation
The data frames that are always sent using CRC are as follows:
a CRC calculated for each byte (DATA)
But to make the connection faster, could you send a single CRC for a whole frame of data? the ...
1
vote
2
answers
91
views
Testing the reliability of RS485
I have implemented an RS485 communication with CRC data validation and some algorithms to manage errors when the data received is lossy.
How can I test the packet loss during RS485 communication? Is ...
0
votes
2
answers
229
views
Maximum message size for polynomial CRC-8 0x07 and hamming distance = 3
I am looking for maximum message size for my CRC-8 0x07 polynomial for Hamming distance = 3. Do you know some website with these types of information? Or possibly, do you know how to calculate it? I ...
3
votes
2
answers
551
views
CRC calculations by hand do not match online calculator
I have been trying to understand what is the trick behind online calculator which gives me CRC value for any input. The thing is that results I get with doing maths by hand do not match results this ...
0
votes
1
answer
65
views
Microchip 48LM01 memory secure read operation CRC and STM32 hardware CRC
I'm trying to use STM32 hardware CRC calculation mechanism to get CRC value from this data (3 byte address and 128 bytes of data):
...
0
votes
1
answer
245
views
CRC calculation
I have been attempting to understand the CRC calculation. I have found online CRC calulator and I have done an experiment.
I have tried to calculate with this calculator the CRC16-CCITT (in the ...
0
votes
1
answer
2k
views
How to create a nested for-loop in Verilog?
I try to create a CRC module on Verilog.
The CRC calculating use an LFSR and can be fully-sequential (with two cycles), semi-sequential (with one cycle) or parallel. I have already made sequential ...
0
votes
0
answers
43
views
How to calculate resultant of 32 bit CRCs
Im working on automotive controller and I have following question
I have list(about 6) of 32 bit CRCs and I want to combine them to get a resultant one
can I 'OR' or 'XOR' them to get resultant one?
...
1
vote
0
answers
78
views
Does libusb_bulk_transfer add CRC?
0
I'm writing a user interface program for USB device in C++ using Visual Studio 2019. I'm using libusb library. I want to do bulk transfer to the device, and I'm trying to understand the exact ...
3
votes
2
answers
294
views
CRC calculation different for IC
I try to read out data from the AS5047U sensor (https://ams.com/documents/20143/36005/AS5047U_DS000637_1-00.pdf/8639418f-6c3a-1624-4e6f-18f52c962099) over SPI, but somehow my CRC is always different ...
0
votes
1
answer
83
views
CRC Algorithms Basics
I am reading about CRC algorithms. And have a few basic doubts
Referred Link
I have 3 questions :
Suppose, I have a Microcontroller and an EEPROM. I have read that CRC employs different algorithms....
0
votes
2
answers
322
views
What is the method to determine the XOR placing in CRC code with random generator
I'm reading a lot of different tutorials about how to implement CRC gates for different generators, But I couldn't understand the method.
For example, for the following generator, this example states ...
2
votes
2
answers
857
views
Append calculated CRC to data and recalculate does not yield zero
I have been working on understanding CRC calculations for implementation in VHDL. Specifically I have implemented the CRC-32C (polynomial = 0x1EDC6F41) a couple of ways. First using an LFSR approach ...
0
votes
0
answers
75
views
CRC in CAN Messages
I would like to know the difference between CRC calculation in CAN physical layer vs CRC calculation in the application layer. How does the CRC calculation in these layers affect the ASIL (Automobile ...
1
vote
1
answer
663
views
Calculate CRC-16/Maxim in VHDL
I try to do a CRC-16/Maxim calculation in VHDL.
My current implementation looks as follows
...
1
vote
1
answer
207
views
Revising CRC value after data adjustment
I have a 181 bytes data stream with 4 bytes CRC32 value at the end. The entire message length is 185 bytes.
The data stream is stored in the FPGA onchip memory and waiting to put into wire by TCP.
...
2
votes
1
answer
184
views
CRC generator polynomial for data flash memory storage
I have been facing a problem how to implement embedded software configuration parameters management system. It means how to implement a software module which will be responsible for storage of for ...
0
votes
0
answers
111
views
Incorrect ethernet crc code
I am trying to use the ethernet phy on my FPGA. I am at the point where I can receive a frame. The frame I can see using chipscope matches the data of the frame sent from my computer which I can ...
2
votes
2
answers
342
views
Calculating number of errors that is undetected by a CRC using a particular polynomial
My goal is to determine optimal generator polynomial and size of the Frame Check Sequence (CRC field) for protocol that I am developing. Reading the paper, "Cyclic Redundacy Code (CRC) Polynomial ...
4
votes
3
answers
2k
views
CRC hardware implementation
What is the difference between these two implementations as the feedback is in first implementation the last reg only but the second implementation last reg xored with the input bit, so, what is the ...
1
vote
1
answer
1k
views
Verilog parallel CRC with arbitrary polynomial
for my next project I need to implement a CRC IP core in Verilog HDL. It must use 16bit polynomial and 16bit CRC result register. Data is being fed into it in 8bit chuncks / bytes. I have allready ...
4
votes
1
answer
2k
views
How is crc5 calculated for a usb token?
I captured the usb packets on a usb1.1 mouse using a generic 24mhz logic analyzer.
here is the sigrok capture for the first token.
as per the usb docs.. a CRC5 is calculated for the token by taking ...
1
vote
1
answer
412
views
How does the rollback work in a FIFO?
From reading the book titled "Advanced Chip Design practical examples by verilog", I faced some questions about when the Ethernet packet is read from the FIFO and how the rollback works for the ...
0
votes
1
answer
544
views
C++ - Help Interpreting the instructions of a CRC error-checking programming assignment
This is unconventional, based on what I've seen, but I can't get a hold of my professor's aides to clarify this assignment. I hope this is still ok to post here.
I would greatly appreciate some help ...
5
votes
1
answer
1k
views
CRC implementation for ethernet
With an example for data with a hexadecimal value of 0xda and a polynomial 0x07, I would find the CRC as follows (using the ...
0
votes
2
answers
4k
views
How to use the data CRC of SD cards in SPI mode?
I am interfacing an SD card through SPI using an AVR microcontroller (more specifically it is the Uzebox console).
I can successfully initialize the card with turning CRC check ON with CMD59 (so I ...
1
vote
2
answers
3k
views
SENT CRC calculation
I am using SENT protocol in my project.
In my SENT implementation, the data nibbles are 3. So 12 bit data, including a status nibble and CRC nibble.
I need to calculate the CRC for 3 data nibbles.
...
7
votes
1
answer
2k
views
Help identifying checksum
I need help identifying the checksum algorithm in the following packets please.
So, packets format is:
sd ?? dd dd dd ??
where
s = start nibble
d = data (binary coded decimal)
? = unknown - ...
0
votes
3
answers
220
views
Best value to overwrite old to tell if memory is not used on eeprom
I have an EEPROM I want to store CRC32 hashes on between 0x0000 and 0x008C. In this range I need a way that I can erase one of the hashes and overwrite its bytes to a default number. By doing this I ...
2
votes
3
answers
1k
views
Understanding IR Protocol Checksum generation
To control my AC with an Arduino, I'm trying to emulate the IR Remote. Not with another IR LED, but directly connected to the IR Receivers Signal wire on the board.
Using the Arduino as a Logic ...
0
votes
2
answers
775
views
How to get up to 24 I/O pins from the PIC4550
Im trying to implement and understand the CRC by making a circuit, by using 1 byte (8 bits), and a highest power of the polynomial of four, these 2 values should be XORed until i get a final output, ...
3
votes
2
answers
5k
views
FCS verification of ethernet frame
i am trying to transmit a Ethernet frame from fpga to pc.
my udp frame is:
...
2
votes
0
answers
1k
views
CRC32 on SAM D20 (Cortex M0+)
I've been having a hard time debugging the DSU module on a SAM D20 (datasheet). I mean to utilize it to calculate CRC32 for a program I'm uploading through a custom bootloader (bootloader not mine).
...
0
votes
1
answer
177
views
Parallel-In-Serial-Out with Parity?
Can someone recommend a shift register IC with integrated parity or CRC generator? Is there such a thing anyway?
3
votes
0
answers
492
views
Help reverse engineering a CRC-8 [closed]
I have an arduino based home temperature monitoring system using Ambient Weather F007th wireless Thermo-Hygrometers as sensors. I am trying to work out the CRC and add some code to my project to ...
2
votes
1
answer
367
views
CRC/Parity/Hamming Protect 16-bit parallel bus
I've got a Cortex-M4 based MCU linked to a FPGA via a 16-bit parallel memory bus interface. In essence the FPGA behaves like an external memory mapped to the memory space of the MCU: the MCU presents ...
1
vote
1
answer
479
views
CRC polynomial and Parity Error detection
My question is about the CRC generator polynomial.
If I have a generator of level 5, say:
$$X^5+X^4+X^2+1$$
How can I know if it can or cannot detect a parity error?
Also how can I know the error ...
1
vote
2
answers
428
views
Finding an input sequence given a generating polynomial and CRC
I am working on a circuit that inputs a 31-bit pseudo-random binary string into a CCITT CRC-16 block which generates a 16-bit CRC output.
I know that M(x)/G(x) = Q(x) + R(x) and the transmitted code ...
4
votes
3
answers
1k
views
Reverse-engineering IR check bits/CRC
I'm trying to build a simple Arduino-based IR remote control for a cheap toy IR-controlled helicopter (same as this one - it's called "Diamond Gyro" or "Diamond Force"). I've decoded the IR protocol ...
2
votes
2
answers
1k
views
My CRC8 is dysfunctional and I'm not sure why!
So I'm interfacing an arduino with a Melexis temperature sensor, and it's going okay--aside from the fact that I can't seem to get the CRC check to work.
I've gotten read operations to complete ...
1
vote
2
answers
5k
views
Implementing parallel CRC in verilog
I am trying to implement a parallel CRC in Verilog but having trouble getting it to work. This is a snippet of the code that I'm having trouble with.
...
2
votes
1
answer
949
views
What is the purpose of CRC_IDR in STM32 processors?
The STM32's CRC calculation unit has a register named CRC_IDR. This 32 bit register allows the user to store 8bits of data. There seems to be no link between this register and rest of the CRC ...
4
votes
2
answers
5k
views
CRC for eeprom data check
I wanted to check redundancy in eeprom and crosscheck the data for any errors occurred or not and I ended up reading CRC code. I found it useful but have some doubts that need clarity.
My objective ...
3
votes
2
answers
3k
views
EEPROM data check
I am communicating with an EEPROM chip with micro controller.
I am writing certain data in to specific addresses in EEPROM and needs to check the data occasionally. But I have no idea other than ...
1
vote
2
answers
4k
views
How can I implement Bluetooth Low Energy CRC in 24 bits?
According to the Bluetooth Core 4.0 specification, the Bluetooth Low Energy air packet has a 24-bit CRC with the following polynomial:
...
1
vote
3
answers
2k
views
Why is the data output of some ICs in two's complement form?
I've been looking into some ICs now. Some of them have the calculated result (data) in twos complement form, placed in register to be read by other IC. What is the logic behind converting the data to ...
7
votes
2
answers
44k
views
Calculating a simple CRC
In the datasheet for the ET1200 EtherCAT ASIC (page 94), I am told that I need to calculate a CRC of some of the 16-bit data in its EEPROM. The only description of this CRC is:
Low byte [of word 7] ...
5
votes
2
answers
1k
views
What's the correct form of this CRC algorithm
We are working on communication between AVR and a Crous PTZ.
We found its protocol and now we can turn it on and so.
We have problem with its CRC. This is Crous protocol doc (Got it here), at end of ...