Example Of The 1M-Bit Flash Memory Program - Fujitsu F2MC-16LX Hardware Manual

Mb90550a/b series, 16-bit
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 23 1M-BIT FLASH MEMORY

23.8 Example of the 1M-Bit Flash Memory Program

This section provides an example of the 1M-bit flash memory program.
■ Example of the 1M-bit Flash Memory Program
;-------------------------------------------------------------------
;1M-bit FLASH sample program
;
;1: Transferring the program (address FFBC00H, sector SA4)
;
;2: Executing the program on the RAM
;3: Writing a PDR1 value to FLASH (address FE0000H, sector SA0)
;4: Reading the written value (address FE0000H, sector SA0) and
;
;5: Deleting the written sector (SA0)
;6: Outputting the deletion data confirmation
; Conditions
;
;
;
;
;
;
;
;
;-------------------------------------------------------------------
;
RESOUS
PDR0
PDR1
PDR2
PDR3
DDR0
DDR1
DDR2
DDR3
CKSCR
FMCS
ROMM
RESOUS
;
366
NAME
FLASHWE
TITLE
FLASHWE
in FLASH to the RAM (address 000700H)
outputting it to PDR2
-Number of RAM transfer bytes:
-Judgment for the end of writing and deletion
Judgment with DQ5 (timing limit excess flag)
Judgment with DQ6 (toggle bit flag)
Judgment with RDY (FMCS)
-Error handling
Outputting Hi to P00 to P07
Issuing the reset command
IOSEG
ABS=00
ORG
0000H
RB
1
RB
1
RB
1
RB
1
ORG
0010H
RB
1
RB
1
RB
1
RB
1
ORG
00A1H
RB
1
ORG
00AEH
RB
1
ORG
006FH
RB
1
ENDS
100H (256B)
;Definition of the RESOUS I/O
;segment

Advertisement

Table of Contents
loading

Table of Contents