Data Programming - Fujitsu F2MC-16LX MB90580 Series Hardware Manual

16-bit microcontrollers
Hide thumbs Also See for F2MC-16LX MB90580 Series:
Table of Contents

Advertisement

C.6 Details of Flash Memory Programming/Erasing
C.6.2 Data Programming
This section will describe how to issue the programming command to program the flash memory.
To initiate Automatic Program Algorithm in the flash memory, the programming command found in
command sequence table (refer to Section C.4, Automatic Algorithm Initiation Method, Table C.4a) can be
used and it needs to be sent continuously to the target sector in the flash memory. Automatic Algorithm
will be initiated and automatic programming will start when data programming to the target address is
completed at the 4th cycle.
Specifying Address
Specified programming address must be even number. It is not possible to program correctly on odd
numbered addresses, so that it is necessary to program by word data unit with the even numbered
address. Programming can be done in any address and can go over sector boundary. However, only
one word can be programmed with a single programming command.
Precautions on Data Programming
It is impossible to program data from "1" to "0". When programming data from "1" to "0", data polling
function (DQ7) and toggle bit function (DQ6) will not be completed. In this case, either the flash
memory is considered to have error and programming timing limit will exceed making the exceeded
timing limits flag (DQ5) to output an error, or "1" will be assumed to have been programmed. When
reading data in the read/reset status, the data remains "0". Only erase operation can change data from
"0" to "1".
While automatic programming the flash memory is under processing, all other command will be
ignored. If hardware reset is initiated during programming, take a good care on it. It is because the data
being programmed to the address will not be guaranteed.
Data Programming Procedure
Figure C.6.2a shows the example procedure of programming the flash memory.
hardware sequence flag (refer to Section C.5, Execution Status of Automatic Algorithm), the status of
Automatic Algorithm in flash Memory can be determined. Data polling flag (DQ7) is used to check
whether programming is completed. The data read from DQ7 is the data found in the next programming
address. It is necessary to re-check the data polling flag bit (DQ7) even if the exceeded timing limits
flag (DQ5) is "1". It is because data polling flag (DQ7) and the exceed time limit flag (DQ5) will change
in the same time. Furthermore, it is not need to re-check the toggle bit flag(DQ6) since it will stop at the
same time when exceeded timing limits flag (DQ5) changes to "1".
368
Appendix C: The Flash Memory in the MB90F583
By checking the
MB90580 Series

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx mb90v580F2mc-16lx mb90583F2mc-16lx mb90f583

Table of Contents