5.31. ORΒΆ

../_images/image975.png

Purpose

To perform a logical OR operation.

Procedure

The output becomes TRUE (=1) if at least one input signal is TRUE. Only when all input signals are FALSE does the output become FALSE (=0).

Parameters

None.

Remarks

None.

Examples

Table 1 presents the possible output values that can result from two input signals. Table 2 presents the possible output values that can result from three input signals.

Table 1: Possible output values for two input signals

Scenario

input 1

input 2

Output

1

TRUE

TRUE

TRUE

2

TRUE

FALSE

TRUE

3

FALSE

TRUE

TRUE

4

FALSE

FALSE

FALSE

Table 2: Possible output values for three input signals

Scenario

input 1

input 2

input 3

Output

1

TRUE

TRUE

TRUE

TRUE

2

TRUE

TRUE

FALSE

TRUE

3

TRUE

FALSE

TRUE

TRUE

4

TRUE

FALSE

FALSE

TRUE

5

FALSE

TRUE

TRUE

TRUE

6

FALSE

TRUE

FALSE

TRUE

7

FALSE

FALSE

TRUE

TRUE

8

FALSE

FALSE

FALSE

FALSE