User`s guide

PCI-2513 User's Guide Functional Details
32
Figure 20. Channel 3 in hysteresis mode
Detecting setpoints on a totalizing counter
In the following figure, Channel 1 is a counter in totalize mode. Two setpoints define a point of change for
Detect 1 as the counter counts upward. The detect output is high when inside the window (greater than Limit B
(the low limit) but less than Limit A (the high limit).
In this case, the Channel 1 setpoint is defined for the 16 lower bits of channel 1's 32-bit value. The
FIRSTPORTC digital output port could be updated on a True condition (the rising edge of the detection signal).
Alternatively, timer outputs could be updated with a value.
At this point you can update FIRSTPORTC or DACs
Figure 21. Channel 1 in totalizing counter mode, inside the window setpoint
Detection setpoint details
Controlling digital and timer outputs
You can program each setpoint with an 8-bit digital output byte and corresponding 8-bit mask byte. When the
setpoint criteria is met, the FIRSTPORTC digital output port can be updated with the given byte and mask. Any
setpoint can also be programmed with a timer update value.