Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

TMP89FS60 Datasheet(PDF) 332 Page - Toshiba Semiconductor

Part # TMP89FS60
Description  8 Bit Microcontroller
PDF  410 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TOSHIBA [Toshiba Semiconductor]
Direct Link  http://www.semicon.toshiba.co.jp/eng
Logo TOSHIBA - Toshiba Semiconductor

TMP89FS60 Datasheet(HTML) 332 Page - Toshiba Semiconductor

Back Button TMP89FS60 Datasheet HTML 328Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 329Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 330Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 331Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 332Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 333Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 334Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 335Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 336Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 332 / 410 page
background image
Page 318
21. Flash Memory
21.4 Toggle Bit (D6)
TMP89FS60
RA003
21.5 Access to the Flash Memory Area
A read or a program fetch cannot be performed on the whole of the flash memory area if data is being written to
the flash memory, if data in flash memory is being erased or if a security setting is being made in the flash memory.
When performing these operation on the flash memory area, the flash memory cannot be directly accessed by using
a program in the flash memory; the flash memory must be accessed using a program in the BOOTROM area or the
RAM area.
Data can be written to and read from the flash memory area in units of one byte. Data in the flash memory can be
erased in units of 4 kbytes, and all data in the flash memory can be erased at one stroke. A read can be performed
using one memory transfer instruction. A write or erase, however, must be performed using more than one memory
transfer instruction because the command sequence method is used. For information on the command sequence,
refer to Table 21-1.
Note 1: To allow a program to resume control on the flash memory area that is rewritten, it is recommended that you let
the program jump (return) after verifying that the program has been written properly.
Note 2: Do not reset the MCU (including a reset generated due to internal factors) when data is being written to the flash
memory, data is being erased from the flash memory or the security command is being executed. If a reset
occurs, there is the possibility that data in the flash memory may be rewritten to an unexpected value.
21.5.1 Flash memory control in serial PROM mode
The serial PROM mode is used to access the flash memory by using a control program provided in the
BOOTROM area. Since almost all operations relating to access to the flash memory can be controlled simply
using data supplied through the serial interface (UART or SIO), it is not necessary to operate the control regis-
ter for the user. For details of the serial PROM mode, see "Serial PROM Mode".
To access the flash memory in serial PROM mode by using a user-specific program or peripheral functions
other than UART and SIO, it is necessary to execute a control program in the RAM area by using the RAM
loader command of the serial PROM mode. How to execute this control program is described in "21.5.1.1 How
to transfer and write a control program to the RAM area in RAM loader mode of the serial PROM mode".
21.5.1.1 How to transfer and write a control program to the RAM area in RAM loader mode of
the serial PROM mode
How to execute a control program in the RAM area in serial PROM mode is described below. A control
program to be executed in the RAM area must be generated in the Intel-Hex format and be transferred
using the RAM loader of the serial PROM mode.
Steps 1 and 2 shown below are controlled by a program in the BOOTROM, and other steps are con-
trolled by a program transferred to the RAM area. The following procedure is linked with a program
example to be explained later.
1. Transfer the write control program to the RAM area in RAM loader mode.
2. Jump to the RAM area.
3. Set a nonmaskable interrupt vector in the RAM area.
4. Set FLSCR1<FLSMD> to "0y101", and specify the area to be erased by making the appropriate
FLSCR1<FAREA> setting. (Make the appropriate FLSCR1<ROMSEL> setting as required.)
Then set "0xD5" on FLSCR2<CR1EN>.
5. Execute the erase command sequence.
6. Read the same flash memory address twice consecutively.
(Repeat step 6 until the read values become the same.)
7. Specify the area (area erased in step 5 above) to which data is written by making the appropriate
FLSCR1<FAREA> setting. (Make the appropriate FLSCR1<ROMSEL> setting as required.)
Then set "0xD5" on FLSCR2<CR1EN>.
8. Execute the write command sequence.
9. Read the same flash memory address twice consecutively.
(Repeat step 9 until the read values become the same.)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com