User’s Manual
41
4.4.2 Digital I/O
Configures a high-current output to be either a sinking or a sourcing output. This configuration informa-
tion is also used to initially set the output to the off state for the given hardware output configuration. The
configuration options are described below.
NOTE:
Configuring a given output channel for tristate operation using the
digHTriState-
Config
function will override the configuration set by the
digHoutConfig
function.
NOTE:
The
brdInit
function must be executed before calling
digHOutConfig
.
NOTE:
You must execute the
digHOutConfig
function to set the high-current drivers to be
either sinking or sourcing. A runtime error will occur in
digHOut
if
digHOutConfig
has
not executed.
NOTE:
The extra digital outputs resulting from the configuration of DIO00–DIO15 as digital out-
puts are sinking outputs only and cannot be configured with
digHOutConfig
.
PARAMETER
configuration
is a 1-byte parameter where 4 bits are used for the high-current outputs HOUT0–
HOUT3.
Bit 3 = high-current output channel HOUT3
Bit 2 = high-current output channel HOUT2
Bit 1 = high-current output channel HOUT1
Bit 0 = high-current output channel HOUT0
(bits 4–7 are not used)
The high-current outputs can be configured to be sinking or sourcing outputs by setting the correspond-
ing bit to an 0 or 1: 0 = sinking, 1 = sourcing.
RETURN VALUE
None.
SEE ALSO
brdInit, digHout, digHTriStateConfig, digHoutTriState
EXAMPLE
configuration = 0x0C
0x06 = 00001100 (bits 7–0)
HOUT3 is sourcing
HOUT2 is sourcing
HOUT1 is sinking
HOUT0 is sinking
void digHoutConfig(char configuration);
Содержание Wolf BL2600
Страница 1: ...Wolf BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142 040731 B ...
Страница 36: ...32 Wolf BL2600 ...
Страница 66: ...62 Wolf BL2600 ...
Страница 100: ...96 Wolf BL2600 ...
Страница 104: ...100 Wolf BL2600 ...
Страница 106: ......