18-3
PC-500 user’s manual
Serial EEPROM and CMOS RAM
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 (relative to user area)
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
}
Summary of Contents for PC-500
Page 7: ...Notice to user PC 500 user s manual ...
Page 17: ...xii Contents PC 500 user s manual ...
Page 23: ...About this manual PC 500 user s manual ...
Page 25: ...Overview of Section 1 PC 500 user s manual ...
Page 35: ...2 2 Quick start PC 500 user s manual Figure 2 1 PC 500componentdiagram ...
Page 36: ...2 3 PC 500 user s manual Quick start Figure 2 2 PC 500center to centerholedimensions ...
Page 53: ...3 10 SETUP programs PC 500 user s manual ...
Page 57: ...4 4 Save and run programs PC 500 user s manual ...
Page 59: ...Overview of Section 2 PC 500 user s manual ...
Page 71: ...5 12 Serial ports PC 500 user s manual ...
Page 75: ...6 4 LPT1 parallel port PC 500 user s manual ...
Page 81: ...7 6 Console devices PC 500 user s manual ...
Page 89: ...10 2 IRQ routing and opto IRQs PC 500 user s manual Figure 10 1 Interruptroutingmatrix ...
Page 103: ...11 12 EZ I O PC 500 user s manual ...
Page 117: ...14 2 PC 104 expansion PC 500 user s manual ...
Page 119: ...15 2 SCSI PC 500 user s manual ...
Page 121: ...16 2 Ethernet PC 500 user s manual ...
Page 123: ...Overview of Section 3 PC 500 user s manual ...
Page 127: ...17 4 Watchdog timer and hardware reset PC 500 user s manual ...
Page 143: ...19 8 Transferring files remote disks PC 500 user s manual ...
Page 173: ...22 22 CPU power management PC 500 user s manual ...
Page 177: ...23 4 Troubleshooting PC 500 user s manual ...
Page 179: ...Overview of Section 4 PC 500 user s manual ...
Page 225: ...B 28 Software utilities PC 500 user s manual ...