Write A Single Word To The Serial Eeprom; Read Multiple Words From The Serial Eeprom - Octagon Systems XE–700 Reference Manual

Table of Contents

Advertisement

}

Write a single word to the serial EEPROM

Function:
Subfunction:
Purpose:
Calling registers:
Return registers:
Error code
Comments:
Programming example:
/* Write 0x1234 to word 3*/
unsigned int seeData = 0x1234;
/* Inline assembly code for Borland C++ 3.1*/
asm {
mov ax,0fc01h
mov bx,03h /* Write word 3*/
mov cx,seeData/* Get write data from c environment */
mov dx,0ffffh
int 17h
}

Read multiple words from the serial EEPROM

Function:
Subfunction:
Purpose:
Calling registers:
Return registers:
Error Code
fch
01h
To write a single word to the on–board serial
EEPROM.
AH
fch
AL
01h
BX
Word address (zero based)
CX
Data word to write
DX
ffffh (User area relative address)
9876h (Absolute address)
Carry flag cleared if successful
Carry flag set if error
AL
Error code
Meaning
ffh
Unknown error
01h
Function not implemented
02h
Defective serial EEPROM
03h
Illegal access
This function writes a word to the user area of
the serial EEPROM.
fch
02h
To read multiple words from the on–board serial
EEPROM.
AH
fch
AL
02h
BX
Word address (zero based)
CX
Word count
DX
ffffh (User area relative address)
ES:DI Destination pointer
Carry flag cleared if successful
AX
Word read
Carry flag set if error
AL
Error code
Meaning
ffh
Unknown error
01h
Function not implemented
85

Advertisement

Table of Contents
loading

Table of Contents