Bitwise Boolean instructions
551
Part III FP Instructions
F182_FILTER
Time constant processing
For bits stored in the area specified by s1_InputData a debouncing is executed if the resulting
value for s2_InputMask is "1". The result of the debouncing operation is output to d_OutputData.
The debouncing time is defined via s3_FilterTime (0 to 30000ms). If s2_InputMask is "0" no
debouncing takes place and the corresponding bit at s1_InputData passes unchanged to
d_OutputData.
In the following figure, the bits in d_OutputData and their values will be the same as s1_InputData
after the filter time has elapsed or, for example, if no masking takes place, e.g. s2_InputMask is
assigned the value 0.
1
0 0
1
0 0
1
0
1
3
6
9
12
1
3
6
9
12
00
. . .
. . .
. . .
s1_InputData
d_OutputData
s2_InputMask
s3_FilterTime
Bit 0
Bit F
(if InputMask = 1)
Description
Filter processing is executed for specified bits and output bitwise. The instruction can be useful to
negate the effects of bounce, e.g. for a switching device.