Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

CRC Algorithms Basics

FreshmanNewbie

Member level 1
Joined
May 10, 2020
Messages
34
Helped
0
Reputation
0
Reaction score
1
Trophy points
8
Activity points
362
I am reading about CRC algorithms. And have a few basic doubts

Referred Link - https://www.st.com/resource/en/application_note/dm00068118-using-the-crc-peripheral-in-the-stm32-family-stmicroelectronics.pdf

Suppose, I have a Microcontroller and another receiving device.

I have 3 questions :

1. If the receiving device is not capable for supporting CRC, How does the MCU Verify the integrity of the data that was sent to the receiving device? Does the MCU Take back the sent data once again and check for CRC? Or how does it happen?

2. Is checksum done for all data transactions or only specific data transactions? Is it a mandatory thing to do for each data transfer?

3. Last question, Is checksum only done for data values or address values too?
 

wwfeldman

Advanced Member level 2
Joined
Jan 25, 2019
Messages
649
Helped
162
Reputation
324
Reaction score
155
Trophy points
43
Activity points
4,729
are you building it, or are you dealing with an existing design?

I have 3 questions :

1. If the receiving device is not capable for supporting CRC, How does the MCU Verify the integrity of the data that was sent to the receiving device? Does the MCU Take back the sent data once again and check for CRC? Or how does it happen?

2. Is checksum done for all data transactions or only specific data transactions? Is it a mandatory thing to do for each data transfer?

3. Last question, Is checksum only done for data values or address values too?
1) if you're building it, make sure the receiver (which is likely another MCU) will handle CRC
if you're dealing with an existing device, what did it do?

2 & 3) if you're building it, you get to decide - are you checking the transmission for correct reception, or are you checking something else?
if the check is for correct reception, then all of the information transmitted is data and should be checked.
after that, you can separate data from address
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
46,775
Helped
13,884
Reputation
28,016
Reaction score
12,522
Trophy points
1,393
Location
Bochum, Germany
Activity points
272,973
The linked application note is specifically discussing CRC usage to verify code integrity in safety related applications. You have apparently a different application in mind, without explicitly telling what it is.

If a receiving device isn't able to calculate a CRC (any programmable device can at least at moderate speed), how should it be able to echo the date to the CPU?

What is the imagined communication that involves data and address values?
 

Toggle Sidebar

Part and Inventory Search


Welcome to EDABoard.com

Sponsor

Sponsor

Design Fast


×
Top