Page 313
TMP89FM42
RA003
21.3.2 Sector erase (4-kbyte partial erase)
Data in the erased area is 0xFF.
Note 1: The data and code areas become mirror areas. As you access these areas, you are brought to the same
physical address in memory. When performing a sector erase, make sure that you erase data from either of
these two areas, not both.
Note 2: Do not perform a sector erase on areas other than those shown in Table 21-3.
21.3.3 Chip erase (all erase)
This command erases the entire flash memory.
The time needed to erase it is 30 ms maximum. The next command sequence cannot be executed if an ongo-
ing erase operation is not completed. To check the completion of the erase operation, perform read operations
twice on the same address in the flash memory, and perform polling until the same data is read from the flash
memory. During the erase operation, bit 6 is reversed each time a read is performed.
Data in the erased area is 0xFF.
This command erases the flash memory in units of 4 kbytes. The flash memory area to be erased is specified
by the upper 4 bits of the 6th bus write cycle address. The range of addresses that can be specified is shown in
Table 21-3. For example, to erase 4 kbytes from 0x8000 through 0x8FFF in the code area, set FLSCR1<FAR-
EA> to "0y10", set "0xD5" on FLSCR2<CR1EN>, and then specify either 0x8000 or 0x8FFF as the 6th bus
write cycle. The sector erase command is effective only in MCU and serial PROM modes, and it cannot be used
in parallel PROM mode.
The time needed to erase 4 kbytes is 30 ms maximum. The next command sequence cannot be executed if an
ongoing erase operation is not completed. To check the completion of the erase operation, perform read opera-
tions twice on the same address in the flash memory, and perform polling until the same data is read from the
flash memory. During the erase operation, bit 6 is reversed each time a read is performed.
Table 21-3 Range of Addresses Specifiable
Erase Area
FLSCR1
<FAREA>
Address specified by instruction
(Address of 6th bus write cycle)
AREA D1
(Data area)
0x8000 through 0x8FFF
00
0x8000 through 0x8FFF
0x9000 through 0x9FFF
0x9000 through 0x9FFF
0xA000 through 0xAFFF
0xA000 through 0xAFFF
0xB000 through 0xBFFF
0xB000 through 0xBFFF
0xC000 through 0xCFFF
0xC000 through 0xCFFF
0xD000 through 0xDFFF
0xD000 through 0xDFFF
0xE000 through 0xEFFF
0xE000 through 0xEFFF
0xF000 through 0xFFFF
0xF000 through 0xFFFF
AREA C1
(Code area)
0x8000 through 0x8FFF
10
0x8000 through 0x8FFF
0x9000 through 0x9FFF
0x9000 through 0x9FFF
0xA000 through 0xAFFF
0xA000 through 0xAFFF
0xB000 through 0xBFFF
0xB000 through 0xBFFF
0xC000 through 0xCFFF
0xC000 through 0xCFFF
0xD000 through 0xDFFF
0xD000 through 0xDFFF
0xE000 through 0xEFFF
0xE000 through 0xEFFF
0xF000 through 0xFFFF
0xF000 through 0xFFFF
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: ......