}
Write a single word to the serial EEPROM
Function: fch
Subfunction: 01h
Purpose:
To write a single word to the on–board serial
EEPROM.
Calling registers:
AH
fch
AL
01h
BX
Word address (zero based)
CX
Data word to write
DX
ffffh (User area relative address)
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 a word to the user area of
the serial EEPROM.
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: fch
Subfunction: 02h
Purpose:
To read multiple words from the on–board serial
EEPROM.
Calling registers:
AH
fch
AL
02h
BX
Word address (zero based)
CX
Word
count
DX
ffffh
ES:DI
Destination
pointer
Return registers:
Carry flag cleared if successful
AX
Word
read
Carry flag set if error
AL
Error
code
Error Code
Meaning
ffh
Unknown
error
01h
Function not implemented
83
Содержание XE-800
Страница 18: ...Figure 2 1 XE 800 SBC component diagram top 18 ...
Страница 19: ...Figure 2 2 XE 800 SBC component diagram bottom 19 ...
Страница 20: ...Figure 2 3 XE 800 SBC dimensions 20 ...
Страница 89: ...MOV AX 0fb0bh MOV DX 0ffffh INT 17h MOV aData AL if aData 1 printf U1 jumper is ON n 89 ...