15 position compare and latch – ADLINK PCI-8158 User Manual

Page 194

Advertising
background image

184

Function Library

6.15 Position Compare and Latch

@ Name

_8158_set_trigger_logic – Set the CMP signal’s logic

_8158_set_trigger_comparator – Set the trigger compara-

tor

_8158_set_error_comparator – Set the error comparator

_8158_set_general_comparator – Set the general compara-

tor

_8158_set_latch_source – Set the latch timing for a counter

_8158_set_ltc_logic – Set the logic of LTC signal

_8158_get_latch_data – Get the latch data from counter

@ Description

_8158_set_trigger_logic:

This function is used to set the logic of CMP single.

_8158_set_error_comparator:

This function is used to set the comparing method and value
for the error comparator. When the position error counter’s
value reaches the comparing value, the 8158 will generate an
interrupt to the host PC. Also see section 6.14 “Interrupt con-
trol”.

_8158_set_general_comparator:

This function is used to set the comparing source counter, com-
paring method and value for the general comparator. When the
comparison conditions are met, there is one of the 4 reactions
will be done. The detail setting, see the argument description.

_8158_set_trigger_comparator:

This function is used to set the comparing source counter, com-
paring method and value for the trigger comparator. When the
comparison source counter’s value reaches the comparing
value, the 8158 will generate a pulse output via CMP and an
interrupt (event_int_status, bit 12) will also be sent to host PC.

Advertising