English
Language : 

TMP86FH46ANG Datasheet, PDF (173/214 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
TMP86FH46ANG
15.5 Operation Command
The eight commands shown in Table 15-6 are used in the serial PROM mode. After reset release, the
TMP86FH46ANG waits for the matching data (5AH).
Table 15-6 Operation Command in the Serial PROM Mode
Command Data
5AH
F0H
30H
60H
90H
C0H
C3H
FAH
Operating Mode
Setup
Flash memory erasing
Flash memory writing
RAM loader
Flash memory SUM output
Product ID code output
Flash memory status output
Flash memory read protection setting
Description
Matching data. Execute this command after releasing the reset.
Erases the flash memory area (address C000H to FFFFH).
Writes to the flash memory area (address C000H to FFFFH).
Writes to the specified RAM area (address 0050H to 023FH).
Outputs the 2-byte checksum upper byte and lower byte in this order for the
entire area of the flash memory (address C000H to FFFFH).
Outputs the product ID code (13-byte data).
Outputs the status code (7-byte data) such as the read protection condition.
Enables the read protection.
15.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, TMP86FH46ANG 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,
TMP86FH46ANG calculates the checksum for the entire flash memory area (C000H 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 mem-
ory erasing mode. Before activating the flash memory writing mode, TMP86FH46ANG checks the pass-
word 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, TMP86FH46ANG 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 (C000H 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 TMP86FH46ANG, the addresses from C000H to FFFFH become the ROM area.)
Page 159