Digital I/O - Z-World Wolf BL2600 User Manual

C-programmable single-board computer with ethernet
Table of Contents

Advertisement

4.4.2 Digital I/O

void digHoutConfig(char configuration);
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
User's Manual
41

Advertisement

Table of Contents
loading

Table of Contents