tmp89fm42a TOSHIBA Semiconductor CORPORATION, tmp89fm42a Datasheet - Page 343

no-image

tmp89fm42a

Manufacturer Part Number
tmp89fm42a
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tmp89fm42aUG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
21.3
Command Sequence
RA006
21.3
Table 21-1 Command Sequence
1
2
3
4
5
6
21.3.1
(partial erase in units of
Command sequence
in Table 21-1.
Security Program
Product ID Entry
Product ID Exit
Byte Program
Sector Erase
In MCU and serial PROM modes, the command sequence consists of six commands (JEDEC compatible), as shown
Note 1: Specify the address and data to be written (Refer to Table 21-2 about BA).
Note 2: The area to be erased is specified with the upper 4 bits of the address (Refer to Table 21-3 about SA).
Note 3: Do not start the STOP, IDLE0, IDLE1, IDLE2, SLEEP1 or SLEEP0 mode while a command sequence is being executed
Note 4: # ; 0x8 through 0xF should be specified as the upper 4bits of the address. Usually, it is recommended that 0xF is specified.
Note 5: XXX ; Don’t care
Chip Erase
(all erase)
Command Sequence
in the 4th bus write cycle. The range of addresses that can be specified is shown in Table 21-2. For example, to
write data to 0x8000 in the data area, set FLSCR1<FAREA> to "0y00", set "0xD5" on FLSCR2<CR1EN>, and
then specify 0x8000 as an address in the 4th bus write cycle. The time needed to write each byte is 40 μs maximum.
The next command sequence cannot be executed if an ongoing write operation is not completed. To check the
completion of the write 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 write operation, bit 6 is reversed
each time a read is performed.
4KB)
Note 1: To rewrite data to addresses in the flash memory where data (including 0xFF) is already written, make sure
Note 2: The data and code areas become mirror areas. As you access these areas, you are brought to the same
Note 3: Do not perform a Byte Program on areas other than those shown in Table 21-2.
This command writes the flash memory in units of one byte. The address and data to be written are specified
Byte program
or a task specified in a command sequence is being executed (write, erase or ID entry).
Table 21-2 Range of Addresses Specifiable (BA)
that you erase the existing data by performing a sector erase or chip erase before writing data.
physical address in memory. When performing a Byte Program, make sure that you write data to either of
these two areas, not both.
(Code area)
(Data area)
AREA D1
AREA C1
1st Bus Write Cy-
0x#555
0x#555
0x#555
0x#555
0x#555
0xXX
Add
cle
0xAA
0xAA
0xAA
0xAA
0xAA
Data
0xF0
Write Area
0x8000 through 0xFFFF
0x8000 through 0xFFFF
2nd Bus Write Cy-
0x#AAA
0x#AAA
0x#AAA
0x#AAA
0x#AAA
Add
-
cle
0x55
0x55
0x55
0x55
0x55
Data
-
Page 324
3rd Bus Write Cy-
0x#555
0x#555
0x#555
0x#555
0x#555
Add
-
<FAREA>
cle
FLSCR1
00
10
0xA0
0xA5
Data
0x80
0x80
0x90
-
(Note 1)
4th Bus Write Cy-
0xFF7F
0x#555
0x#555
Address specified by instruction
(Address of 4th bus write cycle)
Add
BA
-
-
0x8000 through 0xFFFF
0x8000 through 0xFFFF
cle
(Note 1)
0xAA
0xAA
0x00
Data
Data
-
-
0x#AAA
0x#AAA
5th Bus Write Cy-
Add
-
-
-
-
cle
Data
0x55
0x55
-
-
-
-
TMP89FM42A
(Note 2)
6th Bus Write Cy-
0x#555
Add
SA
-
-
-
-
cle
Data
0x30
0x10
-
-
-
-

Related parts for tmp89fm42a