
Page 199
TMP86FS64FG
20.5 Operation Command
The eight commands shown in
Table 20-6 are used in the serial PROM mode. After reset release, the
TMP86FS64FG waits for the matching data (5AH).
20.6 Operation Mode
The serial PROM mode has seven types of modes, that are (1) Flash memory erasing, (2) Flash memory writing,
(3) RAM loader, (4) Flash memory SUM output, (5) Product ID code output, (6) Flash memory status output and (7)
Flash memory read protection setting modes. Description of each mode is shown below.
1. Flash memory erasing mode
The flash memory is erased by the chip erase (erasing an entire flash area) or sector erase (erasing sectors in
4-kbyte units). The erased area is filled with FFH. When the read protection is enabled, the sector erase in
the flash erasing mode can not be performed. To disable the read protection, perform the chip erase. Before
erasing the flash memory, TMP86FS64FG checks the passwords except a blank product. If the password is
not matched, the flash memory erasing mode is not activated.
2. Flash memory writing mode
Data is written to the specified flash memory address for each byte unit. The external controller must trans-
mit the write data in the Intel Hex format (Binary). If no error is encountered till the end record,
TMP86FS64FG calculates the checksum for the entire flash memory area (1000H to FFFFH), and returns
the obtained result to the external controller. When the read protection is enabled, the flash memory writing
mode is not activated. In this case, perform the chip erase command beforehand in the flash memory eras-
ing mode. Before activating the flash memory writing mode, TMP86FS64FG checks the password except a
blank product. If the password is not matched, flash memory writing mode is not activated.
3. RAM loader mode
The RAM loader transfers the data in Intel Hex format sent from the external controller to the internal
RAM. When the transfer is completed normally, the RAM loader calculates the checksum. After transmit-
ting the results, the RAM loader jumps to the RAM address specified with the first data record in order to
execute the user program. When the read protection is enabled, the RAM loader mode is not activated. In
this case, perform the chip erase beforehand in the flash memory erasing mode. Before activating the RAM
loader mode, TMP86FS64FG checks the password except a blank product. If the password is not matched,
flash RAM loader mode is not activated.
4. Flash memory SUM output mode
The checksum is calculated for the entire flash memory area (1000H to FFFFH), and the result is returned
to the external controller. Since the BOOTROM does not support the operation command to read the flash
memory, use this checksum to identify programs when managing revisions of application programs.
5. Product ID code output
The code used to identify the product is output. The code to be output consists of 13-byte data, which
includes the information indicating the area of the ROM incorporated in the product. The external control-
ler reads this code, and recognizes the product to write.
(In the case of TMP86FS64FG, the addresses from 1000H to FFFFH become the ROM area.)
Table 20-6 Operation Command in the Serial PROM Mode
Command Data
Operating Mode
Description
5AH
Setup
Matching data. Execute this command after releasing the reset.
F0H
Flash memory erasing
Erases the flash memory area (address 1000H to FFFFH).
30H
Flash memory writing
Writes to the flash memory area (address 1000H to FFFFH).
60H
RAM loader
Writes to the specified RAM area (address 0050H to 083FH).
90H
Flash memory SUM output
Outputs the 2-byte checksum upper byte and lower byte in this order for the
entire area of the flash memory (address 1000H to FFFFH).
C0H
Product ID code output
Outputs the product ID code (13-byte data).
C3H
Flash memory status output
Outputs the status code (7-byte data) such as the read protection condition.
FAH
Flash memory read protection setting
Enables the read protection.