Sample Programs; Digital I/O - Z-World Wolf BL2600 User Manual

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

Advertisement

4.2 Sample Programs

Sample programs are provided in the Dynamic C
demonstrates the output to the
PONG.C
The various directories in the
trate the use of the corresponding Dynamic C libraries.
The
folder provides sample programs specific to the BL2600. Each sample pro-
BL2600
gram has comments that describe the purpose and function of the program. Follow the
instructions at the beginning of the sample program.
To run a sample program, open it with the
the
Compile
menu, and then run it by selecting
be in Program mode (see Section 3.7, "Programming Cable,") and must be connected to a
PC using the programming cable as described in Section 2.2, "BL2600 Connections."
More complete information on Dynamic C is provided in the Dynamic C User's Manual.
TCP/IP specific functions are described in the Dynamic C TCP/IP User's Manual. Infor-
mation on using the TCP/IP features and sample programs is provided in Section 5,
"Using the TCP/IP Features."
4.2.1 General BL2600 Sample Programs
The following sample programs are found in the
—This program is used to identify the model of BL2600 being used, and
BOARD_ID.C
displays that information in the

4.2.2 Digital I/O

The following sample programs are found in the
—Demonstrates the use of the digital inputs. Using the Demonstration Board,
DIGIN.C
you can see an input channel toggle from HIGH to LOW when pressing a pushbutton
on the Demonstration Board. See Appendix D for hookup instructions for the Demon-
stration Board. This sample program does not explicitly configure any of the config-
urable I/O, so all the configurable I/O are available by default as digital inputs.
—Demonstrates the use of
DIGINBANK.C
Demonstration Board, you can see an input channel toggle from HIGH to LOW when
pressing a pushbutton on the Demonstration Board. See Appendix D for hookup
instructions for the Demonstration Board. This sample program does not explicitly con-
figure any of the configurable I/O, so all the configurable I/O are available by default as
digital inputs.
—Demonstrates the use of the configurable I/O sinking outputs. Using the
DIGOUT.C
Demonstration Board, you can see an LED toggle on/off via a sinking output. See
Appendix D for hookup instructions for the Demonstration Board.
—Demonstrates the use of
DIGOUTBANK.C
sinking outputs. Using the Demonstration Board, you can see an LED toggle on/off via
a sinking output. See Appendix D for hookup instructions for the Demonstration Board.
User's Manual
Samples
window.
STDIO
folder contain specific sample programs that illus-
Samples
File
menu (if it is not still open), compile it using
Run
SAMPLES\BL2600
STDIO
window.
IO
digInBank
digInBank
folder. The sample program
in the
Run
menu. The BL2600 must
folder.
subdirectory in
SAMPLES\BL2600
to read digital inputs. Using the
to control the configurable I/O
.
35

Advertisement

Table of Contents
loading

Table of Contents