28.10 Example Of Programming 3M-Bit Flash Memory - Fujitsu MB90390 Series Hardware Manual

Table of Contents

Advertisement

28.10 Example of Programming 3M-bit Flash Memory

This section presents a programming example of 3M-bit flash memory.
■ Programming Example of 3M-bit Flash Memory
Flash Memory Sample Program
;-------------------------------------------------------------------------------
;3M-bit-Flash test program
;
;1: Transmits the program (address: FF8000H, sector: SA6) from Flash to RAM
;
(address: 001500H).
;2: Executes the program on RAM.
;3: Writes the PDR1 value to Flash (address: F90000H, sector: SA1).
;4: Reads the written value (address: F90000H, sector: SA1) and outputs it to PDR2.
;5: Erases the written sector (SA1).
;6: Checks and outputs erase data.
;Conditions
;
- Number of bytes transmitted to RAM: 100H (256B)
;
- Write/erase termination judgment
;
Judgment according to DQ5 (timing limit excess flag)
;
Judgment according to DQ6 (toggle bit flag)
;
Judgment according to RDY (FMCS)
;
- Error handling
;
"H" output to P00 to P07
;
Reset command issuance
;-------------------------------------------------------------------
;
RESOUS
IOSEG
ORG
PDR0
RB
PDR1
RB
PDR2
RB
PDR3
RB
ORG
DDR0
RB
DDR1
RB
DDR2
RB
DDR3
RB
ORG
CKSCR
RB
ORG
FMCS
RB
ORG
ROMM
RB
RESOUS
ENDS
;
SSTA
SSEG
RW
STA_T
RW
SSTA
ENDS
;
DATA
DSEG
ORG
COMADR2 RW
ORG
COMADR1 RW
DATA
ENDS
NAME
FLASHWE
TITLE
FLASHWE
ABS=00
;"RESOUS" I/O segment definition
0000H
1
1
1
1
0010H
1
1
1
1
00A1H
1
00AEH
1
006FH
1
0127H
1
ABS=0FFH
;Flash command address
5554H
1
0AAAAH
1
CHAPTER 28 3M-BIT FLASH MEMORY
587

Advertisement

Table of Contents
loading

Table of Contents