In example 1):
5.11.3 [202] Bit OR/NOR operation
Type Function Type Function
I1 % input value 1
O1 %
O1=OR (I1 I2) if P2=1,
O1=OR (I1 P1) if P2=2,
O1=OR (I1 I2 P1) if P2=3
I2 % input value 2 O2 % inverted output = (NOR)
I3 b Master Set P1 % Mask
I4 b Master Reset P2 i Operation mode (1, 2 or 3)
Description:
The input value at I1 is OR combined. Via P2, you can select:
−
P2 = 1: I1, I2 are OR combined.
− P2 = 2: I1, P1 are OR combined.
− P2 = 3: I1, I2, P1 are OR combined.
Master Set sets all bits of the output value (Output = 0xFFFF).
Master Reset deletes all bits of the output value (Output = 0x0000).
Examples:
P2 I1 I2 P1 O1 O2
1) OR (I1 I2) 0xF00F 0x0F0F - 0xFF0F 0x00F0
2) OR (I1 P1) 0xF00F - 0x00FF 0xF0FF 0x0F00
3) OR (I1 I2 P1) 0xF00F 0x0F0F 0x00FF 0xFFFF 0x0000
Re example 1):