}
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
90
Содержание 2060 PC/104
Страница 20: ...Figure 2 1 2060 CPU Card component diagram top 20 ...
Страница 21: ...Figure 2 2 2060 CPU Card component diagram bottom 21 ...
Страница 22: ...Figure 2 3 2060 CPU Card dimensions 22 ...