02h
Defective serial EEPROM
03h
Illegal
access
Comments:
This function reads multiple words from the user
area of the serial EEPROM.
Programming example:
/* Read 10 words starting at word 5*/
unsigned int far*seeDataPtr = new unsigned int[10];
/* Allocate storage /
/ Inline assembly code for Borland C++ 3.1*/
asm {
mov
ax,0fc02h
mov
bx,05h /* Read starts at
word
5*/
mov
cx,10 /* Read 10 words */
mov
dx,0ffffh
les
di,seeDataPtr
int
17h
}
Write multiple words to the serial EEPROM
Function: fch
Subfunction: 03h
Purpose:
To write multiple words to the on–board serial
EEPROM.
Calling registers:
AH
fch
AL
03h
BX
Word address (zero based)
CX
Word
count
DX
ffffh
DS:SI
Source
pointer
Return registers:
Carry flag cleared if successful
Carry flag set if error
AL
Error
code
Error Code
Meaning
ffh
Unknown
error
01h
Function not implemented
02h
Defective serial EEPROM
03h
Illegal
access
Comments:
This function writes multiple words to the
user area of the serial EEPROM.
Programming example:
/* Write 8 words starting at word 6*/
unsigned int far*seeDataPtr = new unsigned int[8];
/* Allocate storage /
unsigned int far tmpPtr = seeDataPtr;
for(int I=0;I<8;I++)
seeDataPtr = I; / initialize data /
/ Inline assembly code for Borland C++ 3.1*/
asm {
push ds
mov
ax,0fc03h
mov
bx,06h /* Write starts at
word
6*/
mov
cx,8
/* Write 8 words */
mov
dx,0ffffh
lds
si,seeDataPtr
int
17h
91