background image

SERIES IP330 INDUSTRIAL I/O PACK                                  16-BIT HIGH DENSITY ANALOG INPUT MODULE 
___________________________________________________________________________________________

 

- 17 - 

Programming Interrupts 

 

Interrupts can be enabled for generation after conversion of 

individual channels or after a group of channels have been 
converted.  Interrupts generated by the IP330 use interrupt request 
line INTREQ0* (Interrupt Request 0).  The interrupt release 
mechanism is Release On Acknowledge (ROAK) type.  That is, 
the IP330 will release the INTREQ0* signal during an interrupt 
acknowledge cycle from the carrier. 

 
The IP330 Interrupt Vector register can be used as a pointer to 

an interrupt handling routine.  The vector is an 8-bit value and can 
be used to point to any one of 256 possible locations to access the 
interrupt handling routine. 

 
This example assumes that the IP330 is installed onto an 

Acromag AVME9630/60 carrier board (consult your carrier board 
documentation for compatibility details). 

 

Interrupt Programming Example with AVME9630/60 Carrier 

 
1. 

Clear the global interrupt enable bit in the carrier board status 
register by writing a “0” to bit 3. 

2. 

Write the interrupt vector to the IP330 Module at base 
a 03H. 

3. 

Write to the carrier board interrupt Level Register to program 
the desired interrupt level per bits 2,1, & 0. 

4. 

Write “1” to the carrier board IP Interrupt Clear Register 
corresponding to the desired IP interrupt request being 
configured. 

5. 

Write “1” to the carrier board IP Interrupt Enable Register bit 
corresponding to the IP interrupt request to be enabled. 

6. 

Enable interrupts for the carrier board by writing a “1” to bit 3 
(the Global Interrupt Enable Bit) of the carrier board’s Status 
Register. 

7. 

Enable the IP330 for interrupt after each channel or after 
conversion of a group of channels by setting bits 12 and 13 of 
the Control register as required. 

8. 

Interrupts can now be generated after start of a scan mode of 
operation (burst, continuous, or external trigger only). 

 

General Sequence of Events for Processing an Interrupt

 

 
1. 

The IP330 asserts the Interrupt Request 0 Line (INTREQ0*) 
in response to an interrupt condition. 

2. 

The AVME9630/60 carrier board acts as an interrupter in 
making the VMEbus interrupt request (IRQx*) corresponding 
to the IP interrupt request. 

3. 

The VMEbus host (interrupt handler) asserts IACK* and the 
level of the interrupt it is seeking on A01-A03. 

4. 

When the asserted VMEbus IACKIN* signal (daisy-chained) 
is passed to the AVME9630/60, the carrier board will check if 
the level requested matches that specified by the host.  If it 
matches, carrier board will assert the INTSEL* line to the 
appropriate IP together with (carrier board generated) 
address bit A1 to select which interrupt request is being 
processed (A1 low corresponds to INTREQ0*). 

5. 

The IP330 puts the interrupt vector on the local data bus 
(D00-D07 for the D08 [O] interrupter) and asserts ACK* to the 
carrier board.  The carrier board passes this along to the 
VMEbus (D08[O]) and asserts DTACK*. 

6. 

The host uses the vector to form a pointer to an interrupt 
service routine for the interrupt handler to begin execution. 

7. 

Example of Generic Interrupt Handler Actions: 

a)  Disable the interrupting IP by writing “0” to the 

appropriate bit in the AVME9630/60 IP Interrupt Enable 
Register. 

b)  Service the interrupt by reading converted data resident 

in the Mail Box buffer of the IP330.  Use the New Data 
Available register to identify valid Mail Box Buffer data. 

c) 

Clear the interrupting IP by writing a “1” to the 
appropriate bit in the AVME9630/60 IP Interrupt Clear 
register. 

d)  Enable the interrupting IP by writing “1” to the 

appropriate bit in the AVME9630/60 IP Interrupt Enable 
Register. 

 
 

4.0  THEORY OF OPERATION 

 

This section contains information regarding the hardware of 

the IP330.  A description of the basic functionality of the circuitry 
used on the board is also provided.  Refer to the Block Diagram 
shown in Drawing 4501-592 as you review this material. 
 

FIELD ANALOG INPUTS 

 

The field I/O interface to the carrier board is provided through 

connector P2 (refer to Table 2.3).  

Field I/O signals are NON-

ISOLATED. 

 This means that the field return and logic common 

have a direct electrical connection to each other.  As such, care 
must be taken to avoid ground loops (see Section 2 for connection 
recommendations).  Ignoring this effect may cause operation 
errors, and with extreme abuse, possible circuit damage.  Refer to 
Drawing 4501-591 for example wiring and grounding connections. 

 
Analog inputs and calibration voltages are selected via analog 

multiplexers.  IP330 control logic automatically programs the 
multiplexers for selection of the required analog input channel.  
The multiplexer control is based upon selection of single ended or 
differential analog input and the Start and End channel register 
values. 

 
Single ended and differential channels cannot be mixed (i.e. 

they must all be single ended or differentially wired).  Up to 32 
single ended inputs can be monitored, where each channel’s + 
input is individually selected along with a single sense lead for all 
channels.  Up to 16 differential inputs can be monitored, where 
each channel’s + and - inputs are individually selected. 

 
A Programmable Gain (Instrumentation) Amplifier (PGA) takes 

as input the selected channel’s + and - inputs (or + and sense) and 
outputs a single ended voltage proportional to it.  The gain can be 
1, 2, 4, or 8 and is selected through the Gain Control registers. 

 
The output of the PGA feeds the A/D (Analog to Digital) 

Converter.  The A/D Converter is a state of the art, 16-bit, 
successive approximation converter with a built-in sample and hold 
circuit.  The sample and hold circuit goes into the hold mode when 
a conversion is initiated.  This maintains the selected channel’s 
voltage constant until the A/D has accurately digitized the input.  
Then it returns to sample mode to acquire the next channel.  Once 
a conversion has been started, control logic on the IP330 
automatically updates the multiplexer and PGA for the next 
channel to be converted as required.  This allows the input to 
settle for the next channel while the previous channel is 
converting.  This pipelined mode of operation facilitates a 
maximum system throughput. 

 

Summary of Contents for IP330 Series

Page 1: ...ut Module USER S MANUAL ACROMAG INCORPORATED 30765 South Wixom Road P O BOX 437 Wixom MI 48393 7037 U S A Tel 248 624 1541 Fax 248 624 9234 Copyright 1995 Acromag Inc Printed in the USA Data and speci...

Page 2: ...NCE 19 PRELIMINARY SERVICE PROCEDURE 19 6 0 SPECIFICATIONS 20 GENERAL SPECIFICATIONS 20 ANALOG INPUT 20 INDUSTRIAL I O PACK COMPLIANCE 21 APPENDIX 21 CABLE MODEL 5025 551 21 Recommended APC8600 Shiele...

Page 3: ...le ended channels Precision On Board Calibration Voltages Calibration autozero and autospan precision voltages are available to permit host computer correction of conversion errors Trimmed calibration...

Page 4: ...Library diskette Model IPSW LIB M03 MSDOS format to simplify communication with the board Example software functions are provided for both VMEbus and ISA bus PC AT applications All functions are writ...

Page 5: ...iguration Software configurable control registers are provided for control of external trigger mode data output format acquisition mode timer control interrupt mode convert channel s selection and cha...

Page 6: ...l has been driven low it should remain low for a minimum of 500n seconds As an output an active low TTL signal can be driven to additional IP330s thus providing a means to synchronize the conversions...

Page 7: ...elect Ch 07 27 28 Gain Select Ch 08 Gain Select Ch 09 29 2A Gain Select Ch 10 Gain Select Ch 11 2B 2C Gain Select Ch 12 Gain Select Ch 13 2D 2E Gain Select Ch 14 Gain Select Ch 15 2F 30 Gain Select Ch...

Page 8: ...10 Uniform Single 011 Burst Continuous 100 Burst Single 101 Convert on External Trigger Only 110 Not Used 111 Not Used See the Modes of Operation section for a description of each of these scan modes...

Page 9: ...z clock signal The output of this clock is input to the second counter the Conversion Timer and the output is used to generate periodic trigger pulses The time period between trigger pulses is describ...

Page 10: ...y 0CH Data Bit 15 14 13 12 11 10 09 08 SE or Diff Ch 15 14 13 12 11 10 09 08 Missed Data Register Read Only 0FH Data Bit 07 06 05 04 03 02 01 00 SE Channel 23 22 21 20 19 18 17 16 Diff Channel 07 06 0...

Page 11: ...niform continuous uniform single burst continuous burst single and convert on external trigger only In all modes a single channel or a sequence of channels may be converted The following sections desc...

Page 12: ...Box functions as a dual level data buffer The first half of the Mail Box is used to store all selected channel data for the initial pass through the channels defined by the Start and End Value regist...

Page 13: ...external trigger pulse no interrupt will be issued since data is not written to the Mail Box buffer If interrupt upon completion of a group of channels is selected an interrupt will be issued 8 secon...

Page 14: ...5 2 0 to 5 0 6125 CAL3 2 4500 CAL1 Input Range Volts PGA Gain ADC Range Volts Rec Low Calib Voltage VoltCALLO Volts Rec High Calib Voltage VoltCALHI Volts 0 to 1 25 4 0 to 5 0 6125 CAL3 1 2250 CAL2 0...

Page 15: ...are known It is now possible to correct input channel data from any input channel using the same input range i e 10 to 10 volts with a PGA gain 1 Repeat the above steps periodically to re measure the...

Page 16: ...CountCALHI Calculate Equation 2 Calculate m actual_slope from equation 2 since all parameters are known It is now possible to correct input channel data from any input channel using the same input ra...

Page 17: ...he host uses the vector to form a pointer to an interrupt service routine for the interrupt handler to begin execution 7 Example of Generic Interrupt Handler Actions a Disable the interrupting IP by w...

Page 18: ...from the Mail Box buffer Access to both ID and I O spaces are implemented with one wait state read or write data transfers There is one exception on a rare occasions read and write operations to the M...

Page 19: ...r is clocked by the 8MHz board clock The output of the Timer Prescaler counter is then used to clock the second counter Conversion Timer In this way the two counters are cascaded to provide variable t...

Page 20: ...ware limitations For example if an input may reach zero volts or less a bipolar input range should be selected 4 These ranges can only be achieved with 15 Volt external power supplies The input ranges...

Page 21: ...E Specification This module meets or exceeds all written Industrial I O Pack specifications per revision 0 7 1 Electrical Mechanical Interface Single Size IP Module IP Data Transfer Cycle Types Suppor...

Page 22: ...he field I O signals to the P2 connector on each of the Industrial I O Pack modules Field signals are accessed via screw terminal strips Each Industrial I O Pack IP has its own unique P2 pin assignmen...

Page 23: ...SERIES IP330 INDUSTRIAL I O PACK 16 BIT HIGH DENSITY ANALOG INPUT MODULE ___________________________________________________________________________________________ 23...

Page 24: ...SERIES IP330 INDUSTRIAL I O PACK 16 BIT HIGH DENSITY ANALOG INPUT MODULE ___________________________________________________________________________________________ 24...

Page 25: ...SERIES IP330 INDUSTRIAL I O PACK 16 BIT HIGH DENSITY ANALOG INPUT MODULE ___________________________________________________________________________________________ 25...

Page 26: ...SERIES IP330 INDUSTRIAL I O PACK 16 BIT HIGH DENSITY ANALOG INPUT MODULE ___________________________________________________________________________________________ 26...

Page 27: ...SERIES IP330 INDUSTRIAL I O PACK 16 BIT HIGH DENSITY ANALOG INPUT MODULE ___________________________________________________________________________________________ 27...

Page 28: ...SERIES IP330 INDUSTRIAL I O PACK 16 BIT HIGH DENSITY ANALOG INPUT MODULE ___________________________________________________________________________________________ 28...

Reviews: