Chapter 5: AD12-8 Driver Reference
Manual Number: 00650-014-4
Page 5-15
params[3] = 5000;/* upper range */
a12drv(FP_OFF(&task),FP_OFF(params),FP_OFF(&status));
/* call the driver */
/* replicate the assignment for point address 22 to point addresses 23-40 */
params[0] = 4;
/* replication subtask */
params[1] = 22;
/* source point address to replicate */
params[2] = 23;
/* lower point address in destination range */
params[3] = 40;
/* upper point address in destination range */
a12drv(FP_OFF(&task),FP_OFF(params),FP_OFF(&status));
/* call the driver */
Task 11: Reset Functions
Performs various reset function on the point list and function/curve assignment tables. Also pro-
vides a subtask to set the sample and hold settle time.
Notes:
1. SUBTASK 5 is provided to set the sample and hold settle time. High speed 80286, 80386, and
80486 computers often will start a conversion before the sample and hold has had time to settle
after changing a channel on the AT16-P. A value of 25-50 is usually sufficient for an 80386
machine.
Input:
params[0]:
Subtask to perform, 1, 2, 3, 4 or 5.
1: Reset the point list index to first point address in the point list.
2: Clears all point addresses from the point list.
3: Resets the point list to the default conditions, as described in TASK 0.
4: Clears all curve and scaling assignments.
5: Set the sample and hold settle time.
params[1]:
settle time count
Output:
Data:
None.
Error Codes:
status = 0: No error.
status = 1: Invalid task number, task > 17, or driver not initialized.
status = 15: Invalid reset sub task, not between 0 and 5.