
Table 22-5 Operation Command in Serial PROM Mode
Command data
Operation command
Description
0x86 or 0x30
Setup
(matching data 1, 2)
After a reset is released, the serial PROM mode always starts operation with this
command.
If matching data 1 is 0x86, communication starts in the UART format. If matching
data 1 is 0x30, communication starts in the SIO format.
0xF0
Flash memory erase
Data in the flash memory area (address 0xC000 through 0xFFFF) can be erased.
0x30
Flash memory write
Data can be written to the flash memory area (address 0xC000 through 0xFFFF).
0x40
Flash memory read
Data can be read from the flash memory area (address 0xC000 through 0xFFFF).
0x60
RAM loader
Data can be written to a specified RAM area (address 0x0060 through 0x083F).
0x90
Flash memory SUM output
0xFF check data and 2-byte checksums of the entire flash memory area (address
0xC000 through 0xFFFF) are output in descending order (from upper to lower
bytes).
0xC0
Product ID code output
Product ID codes are output.
0xC3
Flash memory status output
The security program status and other status codes are output.
0xD0
Mask ROM emulation setting
Flash products of 124K or 96Kbytes can be provisioned to emulate a small-capacity
mask ROM product.
0xFA
Flash memory security setting
The security program setting is enabled.
Each command is outlined below. For detailed information on how each command works, refer to
22.8.1 and
subsequent sections.
1. Flash memory erase command
Either Chip Erase (total erase of flash memory) or Sector Erase (erase of flash memory in 4K-byte units)
can be used to erase the data in flash memory. Data in the erased area is 0xFF. If the security program is
enabled or if the option code EPFC_OP is 0xFF, the flash erase command of Sector Erase cannot be executed.
To disable the security program setting, execute the flash erase command of Chip Erase. Before erasing
the data in flash memory, the TMP89FH46L performs password authentication except where a product is a
blank product or EPFC_OP is 0xFF. If a password is not authenticated, the flash memory erase command is
not executed.
2. Flash memory write command
Data can be written in single-byte units to a specified address in flash memory. Provision the external
controller so that it transmits data to write as binary data in the Intel Hex format. If errors do not occur until
the end record is reached, the TMP89FH46L calculates checksums in the entire flash memory area (0xC000
through 0xFFFF), and returns the calculation results. If the security program is enabled, the flash memory
write command cannot be executed. In this case, execute Chip Erase beforehand by using the flash memory
erase command. Before executing the flash memory write command, the TMP89FH46L performs password
authentication except where a product is a blank product. If a password is not authenticated, the flash memory
write command is not executed.
3. Flash memory read command
Data can be read from a specified address in flash memory in single-byte units. Provision the external
controller so that it transmits the address in memory where a read starts, as well as the number of bytes. After
outputting the number of data equal to the number of bytes, the TMP89FH46L calculates the checksums of
the output data, and returns the calculation results. If the security program is enabled, the flash memory read
command cannot be executed. In this case, execute Chip Erase beforehand by using the flash memory erase
command. Before executing the flash memory read command, the TMP89FH46L performs password au-
thentication except where a product is blank. If a password is not authenticated, the flash memory read
command is not executed.
4. RAM loader command
The RAM loader transfers the Intel Hex format data sent by the external controller to the built-in RAM.
If it completes the data transfer normally, it calculates the checksums, transmits the calculation results, jumps
TMP89FH46L
22. Serial PROM Mode
22.8 Operation Commands
Page 352
RA003