![]() ![]() How exactly do you implement a checksum into your code. However Im looking for a more generic explanation. If you save it to program memory, then you might consider using the DT directive, or if you save it to data EE, use the DE directive. You should also exclude the locations where the checksum is saved from the checksum calculation. At any rate, if you add it all up, just save it to RAM and compare it against some value saved into data EE or saved as a table in program memory. Also, the processor does not have the capability to read its own configuration words, so the checksum that you obtain should not include the configuration word, nor the configuration ID. You will need to generate code to read the program memory and possibly the data EEPROM, then add it all up. The PIC16F877 doesn't do a checksum calculation on its own. In response to the questions you've posed: My user name is Santana484 The thread is checksum calculation. Please reply to the message board as my email account does currently work. For example.ġ) Once I obtain the checksum calculation from MPLAB's IDE where do I store it in the code for comparision later?Ģ)How does the Microchip itself perform the computation? How do I perform a check against the checksum value. I have looked at the checksum calculation on that data sheet sevral times however I guess my real question is. For historical purposes, here's a copy of what you sent:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |