> ADAMLink Home
 


What is Pattern Match and Change-of-State?

For digital input cards, the most commonly used triggers are rising edge, falling edge and level triggers (high or low). For more advanced digital input signals such as those used for chipset function tests and FPGA algorithm verifications, more advanced triggers are necessary. With Pattern Match an interrupt can be generated when the status of the digital input channels match a wanted pattern. And with Change-of-State, an interrupt is generated when a pattern no longer matches a specific digital input signal.

One of the most obvious advantages is realized when we consider the fact that a CPU will deal with interrupts one-by-one. While the CPU is busy dealing with an interrupt, it will ignore other interrupts! Both Pattern Match and Change-of-State make it possible to simultaneously monitor several channels, and are therefore very useful in applications with many input channels.

Pattern Match is for applications where you want a specific signal pattern to trigger an action. All the digital input channels will be monitored while they continuously change, and when all input channels have the wanted state simultaneously, an interrupt will be created.

Change-of-State is mainly for applications where you want to monitor irregularities. For example, if monitoring eight alarms in a building, the normal state would be 11111111. If the third alarm in a building malfunctions or is actually triggered, the third input channel changes to 0, making the input pattern 11011111. This will make the Change-of-State function create an interrupt.

Combining the two functions can allow for more intelligent applications. Let's continue with the example above. Pattern Match combined with Change-of-State could be used to differentiate the alarms. Change-of-State can trigger low-priority alarms since one abnormal channel could simply mean that an alarm has malfunctioned and needs a repairman. However, if all channels simultaneously change to 0, it would mean the whole alarm system is down! Pattern Match could be set to monitor the input channels for 00000000 reading, and then trigger a high-priority alarm if this pattern occurs.

The Pattern Match and Change-of-State functions make it possible to design more intelligent solutions for digital input signals. There is a steady increase of channels on today's digital input cards. These functions show how you can take advantage of it.

 


Contact your Geo-Regional
Industrial I/O Product
Specialist ...
click here

Advantech Industrial Automation

ADVANTECH Automation 1320 Kemper Meadow Dr., Ste 500, Cincinnati, OH 45240. 877-294-8989
Copyright 2003 Advantech Automation Corporation. All Rights Reserved.

 

 
 

SUBSCRIPTION MANAGEMENT
If you would like to change your email address or be removed from future Advantech Automation mailings,
send an email to: ia@advantech.com.tw.
Please be sure to include your name and the email address to which this message was sent and indicate if you want to change your address or
be removed.

Advantech Automation is committed to protecting your privacy. We do not sell, rent, or give away any of your personal information. For more
information, view our Privacy Policy.

© 2004 Advantech Automation Corporation. All Rights Reserved. 1320 Kemper Meadow Dr., Ste 500, Cincinnati, OH 45240. Toll Free Tel: 877-294-8989,
Web: www.advantech.com/ia.