Philips CEM2100/00 Service Manual page 351

Mini system
Hide thumbs Also See for CEM2100/00:
Table of Contents

Advertisement

Example :After chip erasure, the program in the RAM area writes data 3FH to address F000H.
DI
LD
LD
LD
LD
; #### Flash Memory Chip erase Process ####
LD
LD
LD
LD
LD
LD
sLOOP1:
LD
CMP
JR
SET
; #### Flash Memory Write Process ####
LD
LD
LD
LD
sLOOP2:
LD
CMP
JR
LD
sLOOP3:
JP
: Disable interrupts (IMF←"0")
(FLSCR),00111000B
: Enable command sequence execution.
IX,0F555H
IY,0FAAAH
HL,0F000H
(IX),0AAH
: 1st bus write cycle
(IY),55H
: 2nd bus write cycle
(IX),80H
: 3rd bus write cycle
(IX),0AAH
: 4th bus write cycle
(IY),55H
: 5th bus write cycle
(IX),10H
: 6th bus write cycle
W,(HL)
W,(HL)
NZ,sLOOP1
: Loop until the same value is read.
(FLSCR).3
: Set BANK1.
(IX),0AAH
: 1st bus write cycle
(IY),55H
: 2nd bus write cycle
(IX),0A0H
: 3rd bus write cycle
(HL),3FH
: 4th bus write cycle, (F000H)=3FH
W,(HL)
W,(HL)
NZ,sLOOP2
: Loop until the same value is read.
(FLSCR),11001000B
: Disable command sequence execution.
sLOOP3
Page 229
T5CL8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cem2100Cem2100/98

Table of Contents