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
84
Содержание 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 ...