42
SBC BL2600
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), then compile
and run it by pressing
F9
. The BL2600 must be in
Program
mode (see Section 3.7, “Serial
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 C for hookup instructions for the Demon-
stration Board. This sample program does not explicitly configure any of the configu-
rable I/O, so all the configurable I/O are available by default as digital inputs.
•
DIGIN_BANK.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 C 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 C for hookup instructions for the Demonstration Board.
•
DIGOUT_BANK.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 C for hookup instructions for the Demonstration Board.
Summary of Contents for BL2600
Page 1: ...SBC BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142_L...
Page 6: ...SBC BL2600...
Page 14: ...8 SBC BL2600...
Page 96: ...90 SBC BL2600...
Page 112: ...106 SBC BL2600...
Page 116: ...110 SBC BL2600...