OP7100
Software
s
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 020418 J ...
Page 10: ...OP7100 x s About This Manual ...
Page 16: ...OP7100 16 s Overview ...
Page 50: ...OP7100 50 s Hardware ...
Page 72: ...OP7100 72 s Software ...
Page 80: ...OP7100 80 s Graphics Programming ...
Page 86: ...OP7100 86 s Installation ...
Page 96: ...OP7100 96 s Specifications ...
Page 110: ...110 s Serial Interface Board 2 OP7100 ...
Page 111: ...OP7100 Backup Battery s 111 APPENDIX E BACKUP BATTERY ...
Page 114: ...OP7100 114 s Backup Battery ...
Page 122: ...OP7100 122 s Index ...