RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
241
innovators for industry
Undelayed
Short
List Command
clear_io_cond_list
Function
clears the bits of the 16-bit digital output port on the EXTENSION 1 connector that are set
in the parameter
MaskClear
, if the current
IOvalue
at the 16-bit digital
input
port on the
EXTENSION 1 connector meets the following condition:
((IOvalue AND Mask1) = Mask1) AND (((not IOvalue) AND Mask0) = Mask0)
(i.e. if the bits specified in
Mask1
are
1
and the bits specified in
Mask0
are
0
).
Call
clear_io_cond_list( Mask1, Mask0, MaskClear )
Parameters
Mask1,
Mask0,
MaskClear
16-bit masks as unsigned 32-bit values
(only the least significant 16 bits are evaluated)
Comments
• The command clears only those bits of the digital output port that are set in the
parameter
MaskClear
and leaves the other bits unchanged.
• Also see section
"16-Bit Digital Input and Output", page 49
and
.
Examples
(Pascal)
• clear bit #4 of the output port (DIGITAL OUT4), if bit #0 of the input port (DIGITAL IN0)
is set and bits #1 to #3 (DIGITAL IN1…3) of the input port are not set:
clear_io_cond_list($0001, $000E, $0010)
• always clear bit #15 of the output port (and leave the other bits unchanged):
clear_io_cond_list(0, 0, $8000)
RTC
®
4
RTC
®
5 unchanged functionality
References