Input Edge Detection; Edge Detection Examples - Keysight E1459A User & Scpi Programming Manual

64-channel isolated input interrupt module
Table of Contents

Advertisement

Functional Description
bits" or the occurrence of an interrupt), no timing relationship will necessarily
exist with the debounced event. As a result, a small window of uncertainty exists
between input latch timing and debounce circuit timing.

Input Edge Detection

Each channel may be programmed to sense the occurrence of a qualified edge
transition of either polarity, or both concurrently. All channels are preprocessed
via the debounce circuits before presentation to the edge detect logic. Edge
detection is performed (by sampling methods) within each of the four ports, in
groups of 16 channels per port. If enabled, each port will post an "Edge Interrupt
Marker" to the control logic circuitry on the occurrence of a qualified edge event
for any active channel within its channel group. (The static state of these markers
may be tested via the "Edge Interrupt Status Register" These markers are also
accessible at the front panel.)
Each marker bit is forced inactive for a two clock (16 MHz) periods each time
either edge detect register is read. (The edge detect register is then cleared at
the end of the cycle.) If the register that is not being read is inactive and remains
inactive, the marker will continue to remain inactive. If the register that is not
read is active or becomes active, the marker is again posted to the "control"
logic. The control logic detects this event and stores this occurrence in a flip-flop
which marks the pending need for service. If this marking register, (now active),
is then read and ultimately cleared, the marker will become inactive and will
remain inactive until the subsequent occurrence of another qualified edge event.
The control logic detects this "cleared marker condition" and consequently clears
the pending service request flip-flop.
External edge events which occur concurrently with a register read/clear cycle
are queued and post-processed on completion of the cycle.

Edge Detection Examples

Figure 3 demonstrates a typical example. A channel that has been programmed
to detect both positive and negative edge transitions posts a marker at the
occurrence of a positive edge. Before user software can service this interrupt, a
Keysight E1459A/Z2404B User and SCPI Programming Guide
Edge Detect Markers are cleared by a read of the register causing
the marker to be posted. Since there is no high-level method of
determining whether a positive or negative edge event is
generating the marker, both edge detect registers (positive and
negative) within a channel group, MUST be read during the
service interval to identify ALL edge events which may have
potentially occurred.
Installing and Configuring the E1459A
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Z2404a

Table of Contents