Page 333
TMP89FM42
RA002
Each command is outlined below. For detailed information on how each command works, refer to 22.8.1 and sub-
sequent 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 pro-
gram 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 TMP89FM42 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 TMP89FM42 calculates checksums in the entire flash memory area
(0x8000 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 TMP89FM42 per-
forms password authentication except where a product is a blank product. If a password is not authenti-
cated, 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 TMP89FM42 calculates the check-
sums 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 TMP89FM42 per-
forms password authentication except where a product is blank. If a password is not authenticated, the
flash memory read command is not executed.
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 0x8000 through 0xFFFF) can be erased.
0x30
Flash memory write
Data can be written to the flash memory area (address 0x8000 through 0xFFFF).
0x40
Flash memory read
Data can be read from the flash memory area (address 0x8000 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
0x8000 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.
Summary of Contents for TLCS-870/C1 Series
Page 1: ...8 Bit Microcontroller TLCS 870 C1 Series TMP89FM42 查询TMP89FM42供应商 捷多邦 专业PCB打样工厂 24小时加急出货 ...
Page 3: ...Revision History Date Revision 2007 10 25 1 First Release 2007 11 3 2 Contents Revised ...
Page 4: ......
Page 14: ......
Page 18: ...1 3 Block Diagram TMP89FM42 1 3 Block Diagram Figure 1 2 Block Diagram ...
Page 22: ...1 4 Pin Names and Functions TMP89FM42 ...
Page 60: ...2 CPU Core 2 5 Revision History TMP89FM42 ...
Page 76: ...3 Interrupt Control Circuit 3 8 Revision History TMP89FM42 ...
Page 86: ...4 External Interrupt control circuit 4 3 Function TMP89FM42 ...
Page 102: ...7 Voltage Detection Circuit 7 5 Revision History TMP89FM42 ...
Page 126: ...8 I O Ports 8 3 I O Port Registers TMP89FM42 Note 2 i 0 to 1 ...
Page 136: ...8 I O Ports 8 5 Revision History TMP89FM42 ...
Page 142: ...9 Special Function Registers 9 3 SFR3 0x0E40 to 0x0EFF TMP89FM42 ...
Page 146: ...10 Low Power Consumption Function for Peripherals TMP89FM42 ...
Page 149: ...TMP89FM42 11 3 Revision History Rev Description RA001 Deleted SLEEP2 description ...
Page 150: ...11 Divider Output DVO 11 3 Revision History TMP89FM42 ...
Page 220: ...15 Real Time Clock RTC 15 4 Real Time Clock Operation TMP89FM42 ...
Page 250: ...16 Asynchronous Serial Interface UART 16 15 Revision History TMP89FM42 ...
Page 302: ...18 Serial Bus Interface SBI 18 7 Revision History TMP89FM42 ...
Page 338: ...21 Flash Memory 21 4 Toggle Bit D6 TMP89FM42 ...
Page 384: ...22 Serial PROM Mode 22 15 Revision History TMP89FM42 ...
Page 388: ...24 Input Output Circuit 24 1 Control Pins TMP89FM42 ...
Page 404: ...25 Electrical Characteristics 25 11 Revision History TMP89FM42 ...
Page 406: ...26 Package Dimensions TMP89FM42 ...
Page 408: ......