OP7100
Software 55
Display
Flash EPROM
The
WriteFlash
function in the Dynamic C
DRIVERS.LIB
library is
used to write data to the program flash EPROM.
•
int WriteFlash( unsigned long physical_addr,
char *buf, int count )
Writes
count
number of bytes pointed to by
buf
to the program flash
EPROM absolute data location
physical_adr
. Allocate data location
by declaring the byte arrays as initialized arrays or declare an initial-
ized
xdata
array. If byte array is declared, conert logical memory to
physical memory with
phy_adr(array)
. For initialized
xdata
, you
can pass the array name directly.
PARAMETERS:
physical_adr
is the absolute data location in the
flash EPROM.
*buf
is a pointer to the bytes to write.
count
is the number of bytes to write.
RETURN VALUES:
0 if
WriteFlash
is okay.
-1 if the program flash EPROM is not in used.
-2 if
physical_addr
is inside the BIOS area.
-3 if
physical_addr
is within the symbol area or the simulated
EEPROM area.
-4 if
WriteFlash
times out.
The
WriteFlash
function writes to the program flash
EPROM. See the
SYS.LIB
section later in this chapter for the
functions associated with the second flash EPROM.
Summary of Contents for OP7100
Page 1: ...OP7100 Serial Graphic Display User s Manual 019 0065 070831 O ...
Page 10: ...OP7100 x About This Manual ...
Page 16: ...OP7100 16 Overview ...
Page 74: ...OP7100 74 Software ...
Page 82: ...OP7100 82 Graphics Programming ...
Page 88: ...OP7100 88 Installation ...
Page 98: ...OP7100 98 Specifications ...
Page 108: ...OP7100 108 Memory I O Map and Interrupt Vectors ...
Page 112: ...112 Serial Interface Board 2 OP7100 ...
Page 113: ...OP7100 Backup Battery 113 APPENDIX E BACKUP BATTERY ...
Page 116: ...OP7100 116 Backup Battery ...
Page 124: ...OP7100 124 Index ...
Page 126: ...XX0000 Schematics ...