User’s Manual
35
4.2 Sample Programs
Sample programs are provided in the Dynamic C
Samples
folder. The sample program
PONG.C
demonstrates the output to the
STDIO
window.
The various directories in the
Samples
folder contain specific sample programs that illus-
trate the use of the corresponding Dynamic C libraries.
The
BL2600
folder provides sample programs specific to the BL2600. Each sample pro-
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
File
menu (if it is not still open), compile it using
the
Compile
menu, and then run it by selecting
Run
in the
Run
menu. The BL2600 must
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
SAMPLES\BL2600
folder.
•
BOARD_ID.C
—This program is used to identify the model of BL2600 being used, and
displays that information in the
STDIO
window.
4.2.2 Digital I/O
The following sample programs are found in the
IO
subdirectory in
SAMPLES\BL2600
.
•
DIGIN.C
—Demonstrates the use of the digital inputs. Using the 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 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.
•
DIGINBANK.C
—Demonstrates the use of
digInBank
to read digital inputs. Using the
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.
•
DIGOUT.C
—Demonstrates the use of the configurable I/O 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.
•
DIGOUTBANK.C
—Demonstrates the use of
digInBank
to control the configurable I/O
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.
Содержание 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: ......