CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Curiosity about Data integrity (off topic)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ortegahernandes



Joined: 14 Feb 2020
Posts: 23

View user's profile Send private message

Curiosity about Data integrity (off topic)
PostPosted: Sat Feb 13, 2021 7:14 am     Reply with quote

Good morning everyone.

Most of the protocols available for communication between electronic components on the same PCB (I2C, SPI, etc.) there is no "checksum", that is, what arrived, arrived ....

Some electronic components examples like
eeprom memory is still able to either do redundancy (using two addresses), or do a final check comparing the recorded value and the read value.

In a "Safety" equipment where failures are practically not tolerated, how do these items proceed?

Is it just a charge for good PCB and filtering and noise blocking?
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Sat Feb 13, 2021 7:43 am     Reply with quote

On a well built board, the chance of error should be next to zero. However
at heart that is where programming comes in. For example, I have a set
of parameters stored in EEPROM, that are 'critical'. So the data structure
stored has the data and then a checksum. When the code reads the
EEPROM, it verifies the checksum is correct. If it is not, it tries again. If it
still is not right, it switches back to a 'default' set of values, and raises an alarm.
It also checks that the checksum is right on the data set in RAM. Every
few minutes an integrity check is done, and if this is wrong, it'll then try to
reload the values from the EEPROM, with the same tests applied.
Data transfers to/from a device like EEPROM, should really be as good as
to the processor's RAM itself. However everything has the potential for
error. A particle in particular can flip a cell in EEPROM, in the
processor's own ROM, or the RAM. The physical design of the enclosure
can massively reduce this, and the normal rate is reaching up to 'winning
the lottery' type numbers. You should not get 'transfer' errors, provided the
electrical layout is even remotely competent. If the unit is going into a
plant or lab, where radiation sources exist, this should be considered when
placing the equipment or designing the casing.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group