44
eDisplay (OP7200)
4.4.2 Digital I/O
This functions is used to configure the high-current outputs as either a sinking or a sourcing type output.
Note that
brdInit
must be executed before calling this function.
PARAMETERS
outputMode
is an 8-bit parameter where each bit corresponds to a high-current output:
Bit 7 = OUT7
Bit 6 = OUT6
Bit 5 = OUT5
Bit 4 = OUT4
Bit 3 = OUT3
Bit 2 = OUT2
Bit 1 = OUT1
Bit 0 = OUT0
To set the outputs, set the corresponding bit to one of the following states:
0 = Sinking type circuit
1 = Sourcing type circuit
EXAMPLE
digOutConfig(0x81);
// OUT0 and OUT7 are sourcing, OUT1–OUNT6 are sinking
SEE ALSO
brdInit, digIn, digOut, triStateConfig, digOutTriState
Sets the state of a digital output (
OUT0–OUT7)
.
The output channel is set to the state that is specified. If the output is configured as sinking, set to 0 for
the driver to be sinking, or set to 1 for the driver to be OFF (high-impedance state). If the output is con-
figured as sourcing, set to 0 for the driver to be OFF (high-impedance state), or set to 1 for the driver to
be sourcing.
Remember to call
brdInit
and
digOutConfig
before executing this function.
A runtime error will occur for the following conditions:
1.
channel
or
state
out of range.
2.
brdInit
or
digOutConfig
was not executed before executing
digOut
.
3. Your tried to use a channel configured as a tri-state output.
PARAMETERS
channel
is the output channel number (0–7).
state
is the output value (0 or 1).
SEE ALSO
brdInit, digOutConfig, triStateConfig, digOutTriState
void digOutConfig(char outputMode);
void digOut(int channel, int state);
Содержание eDisplay OP7200
Страница 1: ...eDisplay OP7200 VGA Operator Control Panel User s Manual 019 0116 021001 A ...
Страница 6: ...eDisplay OP7200 ...
Страница 44: ...38 eDisplay OP7200 ...
Страница 117: ...User s Manual 111 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the OP7200 ...
Страница 128: ...122 eDisplay OP7200 ...
Страница 136: ...130 eDisplay OP7200 ...
Страница 144: ...138 eDisplay OP7200 ...
Страница 146: ...140 eDisplay OP7200 ...
Страница 150: ...144 eDisplay OP7200 ...
Страница 152: ......