
17-2
Serial EEPROM
6000 Series user’s manual
Comments:
This function reads a word from the user area of the serial
EEPROM.
Programming example:
/* Read word 2 */
unsigned int seeData;
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov
ax,0fc00h
mov
bx,02h
/* Read word 2 */
mov
dx,0ffffh
int
17h
mov
seeData,ax /* store data in c environment */
}
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
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
}
Содержание 6000 Series
Страница 2: ...O C T A G O N S Y S T E M S Embedded PCs For Extreme Environments 6000 Series User s Manual 4738 0906 ...
Страница 7: ...Notice to user PC 500 user s manual ...
Страница 9: ...About this manual 6000 Series user s manual ...
Страница 37: ...2 20 Quick start 6000 Series user s manual ...
Страница 65: ...5 16 Serial ports 6000 Series user s manual ...
Страница 87: ...6 22 EZ I O 6000 Series user s manual ...
Страница 103: ...8 8 Analog I O 6000 Series user s manual ...
Страница 119: ...14 2 PC 104 expansion 6000 Series user s manual ...
Страница 133: ...16 4 Watchdog timer reset and remote reset 6000 Series user s manual ...
Страница 139: ...17 6 Serial EEPROM 6000 Series user s manual ...
Страница 157: ...21 2 Software utilities 6000 Series user s manual ...
Страница 161: ...22 4 Troubleshooting 6000 Series user s manual ...
Страница 177: ...A 16 6010 technical data 6000 Series user s manual ...
Страница 215: ...D 16 6040 technical data 6000 Series user s manual ...
Страница 229: ...F 2 Miscellaneous 6000 Series user s manual ...
Страница 231: ...G 2 Accessories 6000 Series user s manual ...
Страница 233: ...Warranty 6000 Series user s manual ...