beautypg.com

5 latching on input events, 6 comparing input patterns, Latching on input events - 12 – Kontron CP383 User Manual

Page 58: Comparing input patterns - 12, Configuration cp383

background image

Configuration

CP383

Page 4 - 12

© 2004 Kontron Modular Computers GmbH

ID 27784, Rev. 01

27784

.01.VC.040308/162544

P R E L I M I N A R Y

4.4.5

Latching on Input Events

In addition to the standard event detection described above, there is a latch mode extension.
This mode is used in cases where it is necessary to capture the inputs when one of the defined
events occurs.

4.4.6

Comparing Input Patterns

In addition to the Event Detection Mode, it is also possible to detect a complete input pattern
automatically. In this mode the input vector is continuously compared with the content of the
Input Pattern Compare Register. In the case of a match a flag is set within the Input Status Reg-
ister. Single inputs can also be masked out individually in the Input Pattern Mask Register.

Table 4-9: Input Latch-on-Event Register

BITS

TYPE

DEFAULT

FUNCTION

31-16

r

0

Not used

15 – 0

r

0

Latch on event, enable bits to activate

Note ...
A set bit means that a detected event on the corresponding input is latched. If
all bits are enabled, all inputs are latched immediately. To switch back from latch
mode into active mode, all detected events and the input latch-on-event status
flag have to be reset by writing a "1" to the corresponding bits in the Input Status
Register.

Table 4-10: Input Pattern Mask Register

BITS

TYPE

DEFAULT

FUNCTION

31-16

r/w

0

Not used

15 - 0

r/w

1

Input event mask bits

Note ...
A set bit means that the corresponding input is masked out for pattern recogni-
tion. There is no special enable for pattern recognition since it is switched off by
default as long as all mask bits are set.

Table 4-11: Input Pattern Compare Register

BITS

TYPE

DEFAULT

FUNCTION

31-16

r/w

0

Not used

15 - 0

r/w

1

Input pattern compare bits

Note ...
This register stores the input compare data. A compare match is reported within
the Input Status Register (Bit 31). To reset a compare match, the status flag
must be reset by writing a "1" to it and also the match condition must cease.