beautypg.com

6 comparing input patterns, 7 writing output data, Comparing input patterns - 12 – Kontron CP384 User Manual

Page 58: Writing output data - 12, Configuration cp384

background image

Kontron Modular Computers GmbH

ID 31440, Rev. 01

P R E L I M I N A R Y

Re

vNr. = CP384

-

31440

_01 -

06

0503

/14

4232

Page 4 - 12

Configuration

CP384

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.

4.4.7

Writing Output Data

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.

Table 4-12: Output Data Register

BITS

TYPE

DEFAULT

FUNCTION

31-8

r/w

0

Reserved

7-0

r/w

0

Data, 8-bit digit

Note ...
Output data is 8 bit; this register is read/write enable.