8-6
Analog I/O
6000 Series user’s manual
Return registers:
Carry flag cleared if successful
Carry flag set if error
AL
Error code
Programming example:
unsigned int dtoa0Data;
asm {
mov ax,0f801h
mov bl,1
/*D/A channel 1 */
mov cx,0800h /*D/A output at about ½ way of full range
*/
mov dx,0ffffh
int 17h
}
Analog to digital average sample size select
Function:
f8h
Subfunction:
02h
Purpose:
To set the number of samples to average for following
Subfunction 00h calls. This affects all channels, however,
this can be interspersed between A to D reads, giving
different samplings per channel. The default is 1.
Calling registers:
AH f8h
AL
02h
CX
number of samples (1,2,4,8,16)
DX
ffffh
Return registers:
Carry flag cleared if successful
AH 00 success
Carry flag set if error
AL
Error code
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov ax,0f802h
mov dx,0ffffh
mov cx,4
/* set to 4 samples on following */
int 17h
/* A to D conversions */
}
print(“Number of samples set to %d.\n”,4);
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 ...