internetuser2k12
Banned
How are you calculating checksum?
I think CR = 0A and 0D
I think CR = 0A and 0D
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How are you calculating checksum?
I think CR = 0A and 0D
There are 3 types of checksum, I am using 2's complement:show an example of checksum calculation.
dont_read_now = 0;
dont_write_now = 0;
if(dont_write_now == 0) {
for(i = 0; i < 5; i++) {
eepromwrite(i, result[i]);
dont_read_now = 1;
dont_write_now = 1;
}
}
if(dont_read_now == 0) {
for(i=0;i<5;i++) {
WriteUSART(eeprom_read(i);
}
dont_read_now = 1;
}