English
Language : 

TMP88FW45FG Datasheet, PDF (254/276 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
20. Serial PROM Mode
20.7 Error Code
TMP88FW45FG
20.7 Error Code
When detecting an error, the device transmits the error code to the external controller, as shown in Table 20-14.
Table 20-14 Error Code
Transmit Data
62H, 62H, 62H
63H, 63H, 63H
A1H, A1H, A1H
A3H, A3H, A3H
Meaning of Error Data
Baud rate modification error.
Operation command error.
Framing error in the received data.
Overrun error in the received data.
Note: If a password error occurs, TMP88FW45FG does not transmit an error code.
20.8 Checksum (SUM)
20.8.1 Calculation Method
The checksum (SUM) is calculated with the sum of all bytes, and the obtained result is returned as a word.
The data is read for each byte unit and the calculated result is returned as a word.
Example:
A1H
B2H
C3H
D4H
If the data to be calculated consists of the four bytes,
the checksum of the data is as shown below.
A1H + B2H + C3H + D4H = 02EAH
SUM (HIGH)= 02H
SUM (LOW)= EAH
The checksum which is transmitted by executing the flash memory write command, RAM loader command,
or flash memory SUM output command is calculated in the manner, as shown above.
20.8.2 Calculation data
The data used to calculate the checksum is listed in Table 20-15.
Table 20-15 Checksum Calculation Data
Operating Mode
Flash memory writing mode
Flash memory SUM output
mode
RAM loader mode
Product ID Code
Output mode
Flash Memory Status Output mode
Flash Memory Erasing mode
Calculation Data
Description
Data in the entire area of the flash memory
Even when a part of the flash memory is written, the checksum
of the entire flash memory area (04000H to 21EFFH, and
FFF00H to FFFFFH) is calculated.
The data length, address, record type and checksum in Intel
Hex format are not included in the checksum.
RAM data written in the first received RAM
The length of data, address, record type and checksum in Intel
address through the last received RAM address Hex format are not included in the checksum.
9th through 18th bytes of the transferred data For details, refer to " 20.11 Product ID Code ".
9th through 12th bytes of the transferred data For details, refer to " 20.12 Flash Memory Status Code "
All data in the erased area of the flash memory
(the whole or part of the flash memory)
When the sector erase is executed, only the erased area is
used to calculate the checksum. In the case of the chip erase,
an entire area of the flash memory is used.
Page 242