HP 8-Channel 196 kSa/sec Digitizer plus DSP E1433A manual HP E1433A Interrupt Behavior

Models: 8-Channel 196 kSa/sec Digitizer plus DSP E1433A

1 220
Download 220 pages 41.78 Kb
Page 70
Image 70

HP E1433A User's Guide

Using the HP E1433A

HP E1433A Interrupt Behavior

Interrupt Setup

For an example of interrupt handling see the program event.c in the examples directory.

The HP E1433A VXI module can be programmed to interrupt a host computer using the VME interrupt lines. VME provides seven such lines. Using hpe1432_setInterruptPriority, you can set up the HP E1433A module to use any one of them.

The HP 1432A can interrupt the host computer in response to different events. Using hpe1432_setInterruptMask you can specify a mask of events on which to interrupt. This mask is created by OR-ing together the various conditions for an interrupt. The following table shows the conditions that can cause an interrupt:

Interrupt Mask Bit Definitions

Define (in e1432.h)

HPE1432_IRQ_BLOCK_READY HPE1432_IRQ_MEAS_ERROR HPE1432_IRQ_MEAS_STATE_CHANGE HPE1432_IRQ_MEAS_WARNING HPE1432_IRQ_OVERLOAD_CHANGE HPE1432_IRQ_SRC_STATUS HPE1432_IRQ_TACHS_AVAIL

HPE1432_IRQ_TRIGGER

HP E1433A Interrupt Handling

Description

Scan of data ready in FIFO

FIFO overflow

Measurement state machine changed state Measurement warning

Overload status changed

Source channel interrupt

Raw tach times ready for transfer to other modules

Trigger ready for transfer to other modules

To make the HP E1433A module do the interrupt, both a mask and a VME Interrupt line must be specified, by calling hpe1432_setInterruptMask and hpe1432_setInterruptPriority respectively. Once the mask and line have been set, and an interrupt occurs, the cause of the interrupt can be obtained by reading the HPE1432_IRQ_STATUS_REG register (using hpe1432_getInterruptReason). The bit positions of the interrupt mask and status registers match so the defines can be used to set and check IRQ bits.

3-32

Page 70
Image 70
HP 8-Channel 196 kSa/sec Digitizer plus DSP E1433A HP E1433A Interrupt Behavior, Scan of data ready in Fifo Fifo overflow