Sample Program For 1-Mbit Flash Memory - Fujitsu MB90420/5 (A) Series Hardware Manual

F2mc-16lx family 16-bit microcontrollers
Table of Contents

Advertisement

25.9 Sample Program for 1-Mbit Flash Memory

A sample program for the 1-Mbit flash memory is given below.
n Sample program for 1-Mbit flash memory
;---------------------------------------------------------------------------
; 1 Mbit-FLASH Sample Program
;
; 1: Transfer program in flash (address FFBC00
; 2: Execute program on RAM.
; 3: Program PDR1 value to flash (address FE0000
; 4: Read programmed value (address FE0000
; 5: Erase programmed sector (SA0).
; 6: Output verification that data is erased.
; Conditions
• Count of bytes transferred to RAM: 100
;
• Completion of programming and erasing checked by:
;
;
;
;
• Action taken at error
;
;
;
;---------------------------------------------------------------------------
;
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
;
1-MBIT FLASH MEMORY
NAME
TITLE
Timing limit exceeding flag (DQ5)
Toggle bit flag (DQ6)
RDY (FMCS)
Output High level to P00 to P07.
Issue reset command.
ABS = 00
0000
H
1
1
1
1
0010
H
1
1
1
1
00A1
H
1
00AE
H
1
006F
H
1
0127
H
1
FLASHWE
FLASHWE
, sector SA4) to RAM (address 000700
H
, sector SA0).
H
, sector SA0) and output to PDR2.
H
(256
)
H
B
; Definition of "RESOUS" I/O segment
25-23
).
H

Advertisement

Table of Contents
loading

Table of Contents