background image

SERIES IP440 INDUSTRIAL I/O PACK                                32-CHANNEL ISOLATED DIGITAL INPUT MODULE
___________________________________________________________________________________________

- 12 -

Change-Of-State Detection

Change-of-State signal detection requires that both a high-to-

low and low-to-high signal transition be detected.  On the IP440,
if change-of-state detection for an input signal is desired, two
channels connected to the same input signal would be required--
one sensing positive transitions, one sensing negative transitions.
Since channel polarity is programmable on a nibble basis (group
of four), the first nibble of a port could be configured for low-to-
high transitions, the second nibble for high-to-low transitions.  As
such, up to 16 change-of-state detectors may be configured.

Debounce Control

Debounce control is built into the on-board digital ASIC

employed by the IP440 and is enabled in the Enhanced Mode
only. With debounce, an incoming signal must be stable for the
entire debounce time before it is recognized as a valid input or
event at the ASIC input.  Note that the debounce time applies at
the ASIC input and does not include the optocoupler delay.  You
can combine debounce with event sensing to obtain “glitch-free”
edge detection of incoming signals for all 32 channels.  That is,
the debounce circutry will help filter out “glitches” or transients
that can occur on received signals, for error-free edge detection
and increased noise immunity.

The debounce circuitry uses the 8MHz carrier clock to derive

the debounce times (see the Debounce Clock Select register to
enable the 8MHz clock to be used).  With the 8MHz carrier clock,
a debounce value of 3-4us, 48-64us, 0.75-1ms, or 6-8ms may be
selected (see the Debounce Duration Register).  As such, an
incoming ASIC signal must be stable for the debounce time
before it is recognized as a valid input or event.

Upon initialization of the debounce circuitry, be sure to delay

at least the programmed debounce time before reading any of the
input ports or event signals to ensure that the input data is valid
prior to being used by the software.

Interrupt Generation

This model provides control for generation of interrupts on

positive or negative events, for all 32 channels.  Interrupts are
only generated in the Enhanced Mode for event channels when
enabled via the Event Sense/Status Register.  Writing 0 to the
corresponding event sense bit in the Event Sense/Status
Register will clear the event sense flip/flop.  Successive interrupts
will only occur if the event channel has been reset by writing a 1
to the corresponding event sense bit in the Event Sense/Status
Register (after writing 0 to clear the event sense flip/flop).
Interrupts may be reflected internally and reported by polling the
module, or optionally reported to the carrier by enabling control of
the Interrupt Request line (Intreq0).  Control of this line is initiated
via Bit 0 of the Interrupt Enable Register (IER).

After pulling the IntReq0 line low and in response to an

Interrupt Select cycle, the module will read (serve) the 8-bit
interrupt vector stored in the Interrupt Vector Register.  The
IntReq0 line will be released as soon as the conditions generating
the interrupt have been cleared or return to normal, and the event
sense flip/flop has been cleared by writing 0 to the corresponding
bit position of the Event Sense Status Register, or until the
Interrupt Enable Register bit is cleared.  Zero wait states are
required to complete an interrupt select cycle.

Note that the state of the inputs (on/off) is determined by

reading the corresponding port address while in bank 0 of the
Enhanced Mode.  However, the event sense status can only be
read by reading the corresponding port address while in bank 1 of
the Enhanced Mode.  Remember, the event sense status is a flag
that is raised when a specific positive or negative transition has
occurred for a given input point, while the state refers to its
current level.

Note that the Interrupt Enable Register and Interrupt Vector

Register are cleared following a power-up or bus initiated
software reset, but not a software reset initiated via writing a one
to bit 1 of the Interrupt Enable Register.  Keep this in mind when
you wish to preserve the information in these two registers
following a reset.

Programming Example

The following example outlines the steps necessary to

configure the IP440 for Enhanced Mode operation, to setup
event-generated interrupts, configure debounce, and read and
write inputs.  It is assumed that the module has been reset and
no prior (non-default) configuration exists.

For this example, we  will configure port 0 input points as a

four-channel change-of-state detector.  For change-of-state
detection, both positive and negative polarities must be sensed
and thus, two channels are required to detect a change-of-state
on a single input signal.  IN00-IN03 will be used to detect positive
events (low-to-high transitions), IN04-IN07 will be used to detect
negative events (high-to-low transitions).  IN00 and IN04 will be
tied to the first input signal, IN01 & IN05 to the second, IN02 &
IN06 to the third, and IN03 & IN07 to the fourth.  Any change-of-
state detected on these input signal lines will cause an interrupt
to be generated.

1.    After power-up or reset, the module is always placed in the

Standard Operating Mode.  To switch to the Enhanced Mode,
execute four consecutive write cycles to port 7 with the
following data: 07H first, followed by 0DH, followed by 06H,
then 12H.

At this point, you are in Enhanced Mode bank 0.  Port 7
would now be used to access register banks 1 & 2.

2.   Write 80H to the port 7 address to select register bank 2

where debounce will be configured for our port 0 input
channels.

At this point, you are in Enhanced Mode Bank 2 where
access to the debounce configuration registers is obtained.

3.   We need to enable the 8MHz system clock to generate our

debounce time.  By default, the debounce clock is not
enabled.  Select the 8MHz system clock as the debounce
clock by writing 01H to the port 3 address of this bank
(Debounce Clock Select Register).

4.   The default debounce duration is 3-4us with the 8MHz clock

enabled in step 3.  This time applies to the ASIC input signal
and does not include optocoupler delay.  Write 01H to the
port 1 address of this bank to select a 48-64us debounce
time (Debounce Duration Register 0).  An incoming signal
must be stable for the entire debounce time before it will be
recognized as a valid input transition by the ASIC.

Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com

Summary of Contents for IP440 Series

Page 1: ...ess underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing Rentals Demo...

Page 2: ...RATED 30765 South Wixom Road P O BOX 437 Wixom MI 48393 7037 U S A Tel 248 624 1541 Fax 248 624 9234 Copyright 1996 Acromag Inc Printed in the USA Data and specifications are subject to change without...

Page 3: ...his is especially important where economic property loss or human life is involved It is important that the user employ satisfactory overall system design It is agreed between the Buyer and Acromag th...

Page 4: ...your carrier board to ensure compatibility with the following interface products Cables Model 5025 551 X Shielded Cable or Model 5025 550 X Non Shielded Cable A Flat 50 pin cable with female connector...

Page 5: ...in the mating area Threaded metric M2 screws and spacers are supplied with the module to provide additional stability for harsh environments see Mechanical Assembly Drawing 4501 434 The field and logi...

Page 6: ...d to avoid incorrect assembly 3 0 PROGRAMMING INFORMATION ADDRESS MAPS This board is addressable in the Industrial Pack I O space to control the configuration and status monitoring of 32 digital input...

Page 7: ...IN24 IN31 07 08 Not Driven4 READ WRITE2 Port 4 NOT USED 09 0A Not Driven4 READ WRITE2 Port 5 NOT USED 0B 0C Not Driven4 READ WRITE2 Port 6 NOT USED 0D 0E Not Driven4 READ WRITE Port 7 WRITE MASK REGI...

Page 8: ...0 ODD Base Addr INDEPENDENT FIXED FUNCTION REGISTERS 10 1C NOT USED2 11 1D 1E Not Driven1 READ WRITE Interrupt Enable Register Bit 0 1 enables INTREQ0 Software Reset Generator Bit 1 1 Generates Reset...

Page 9: ...of this model Writing a 1 to bits 0 3 of the Mask Register will mask ports 0 3 respectively from inadvertent writes A read of this register will return the status of the mask in bits 0 3 Enhanced Mode...

Page 10: ...IN31 Bank Select Register Enhanced Mode Bank 1 Port 7 Write Only Bits 6 7 of this register are used to select monitor the bank of registers to be addressed In Enhanced Mode three banks banks 0 2 of e...

Page 11: ...t Cycles INTSEL to occur This bit is cleared following a system reset but not a software reset see below Writing a 1 to the bit 1 position of this register will cause a software reset to occur be sure...

Page 12: ...440 2 models and 38 60V IP440 3 models Inputs are non inverting and inputs left floating not recommended will register a low false 0 input indication In both the Standard and Enhanced operating modes...

Page 13: ...ting the interrupt have been cleared or return to normal and the event sense flip flop has been cleared by writing 0 to the corresponding bit position of the Event Sense Status Register or until the I...

Page 14: ...ity of data contention between the built in output circuitry and the devices driving these inputs Write 01H to the port 7 address to mask writes to port 0 11 Read 01H from the port 7 address to verify...

Page 15: ...cedures in Section 2 Preparation For Use have been followed Also refer to the documentation of your carrier board to verify that it is correctly configured Replacement of the module with one that is k...

Page 16: ...aximum Diode I R Series input current limiting resistors are 2 2K IP440 1 12K IP440 2 or 27K IP440 3 and installed on board Input Current Varies per model number and input signal voltage level For Mod...

Page 17: ...ensity ribbon cable connectors coming from the APC8600 carrier board Acromag cable Model 5029 900 to screw terminals for direct wired interfaces This panel facilitates the connection of up to 50 field...

Page 18: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...

Page 19: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...

Page 20: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...

Page 21: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...

Page 22: ...uipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentat...

Reviews: