17-3
6000 Series user’s manual
Serial EEPROM
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
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.
Summary of Contents for 6000 Series
Page 7: ...Notice to user PC 500 user s manual ...
Page 9: ...About this manual 6000 Series user s manual ...
Page 37: ...2 20 Quick start 6000 Series user s manual ...
Page 65: ...5 16 Serial ports 6000 Series user s manual ...
Page 87: ...6 22 EZ I O 6000 Series user s manual ...
Page 103: ...8 8 Analog I O 6000 Series user s manual ...
Page 119: ...14 2 PC 104 expansion 6000 Series user s manual ...
Page 133: ...16 4 Watchdog timer reset and remote reset 6000 Series user s manual ...
Page 139: ...17 6 Serial EEPROM 6000 Series user s manual ...
Page 157: ...21 2 Software utilities 6000 Series user s manual ...
Page 161: ...22 4 Troubleshooting 6000 Series user s manual ...
Page 177: ...A 16 6010 technical data 6000 Series user s manual ...
Page 215: ...D 16 6040 technical data 6000 Series user s manual ...
Page 229: ...F 2 Miscellaneous 6000 Series user s manual ...