摘要 |
A method for error detection and correction in an electronic trip unit is presented. The electronic trip unit includes a ROM having trip unit application code, e.g., main functionality firmware, including initializing parameters, and boot code, stored therein and an EEPROM having operational parameter code, e.g., encoded enumerations for parameters such as 50/60 Hz., UL/ANSI/IEC, ect., stored therein The integrity of the code is monitored using CRC or checksum. Corrupted data is recovered by using encoded enumerations with at least two repetitive bit patterns of appropriate width. Encoding enumerations with greater that two repetitive bit patterns allows for each enumerated value to be recovered from any single bit corruption by replacing the corrupted pattern with the matching pattern. Alternatively, with a plurality of encoded enumeration groups stored in the EEPROM a corrupted enumeration can be properly selected and corrected by cross correlating the enumeration groups. Also, enumerations can be encoded with two identical bit patterns. An invalid bit pattern is then replaced with the other corresponding bit pattern, thereby restoring the bit pattern. The correct enumeration can then be identified, as one of the bit patterns continues to have the correct encoded enumeration identifying an enumeration.
|