ADLINK PCI-8164 User Manual

Page 102

Advertising
background image

90

Operation Theory

ASIC. Data in Pre-Register2 is then moved to Pre-
Register1.

7. The ASIC will inform the CPU generating an interrupt

that a motion is completed. Users can then write the 4th
motion command into Pre-Register2.

Procedures for continuous motion (by interrupt)

The following procedures are to help user making continuous
motion.

1. (If under DOS): Enable the interrupt service using

_8164_int_contol()
(If under Windows): Enable the interrupt service using
_8164_int_contol() and _8164_int_enable().

2. Set bit “2” of INT factor to be “True” using

_8164_set_int_factor().

3. Set the “conti_logic” to be “1” by:

_8164_set_continuous_move()

4. Call the first three motion functions.

5. Wait for interrupt in ISR (under DOS) or Event (under

Windows) of 2nd pre-register empty.

6. Call the fourth motion function.

7. Wait for interrupt in ISR (under DOS) or Event (under

Windows) of 2nd pre-register empty.

8. Repeat steps 6 and 7 until all motion functions are

called.

Procedures for continuous motion (by polling)

Another method to determine a motion-completed action is by
polling buffer empty status. User may constantly check the
buffer status using the
_8164_check_continuous_buffer() function before call-

ing a new motion function.

Advertising