BL4S100 User’s Manual
36
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
SAMPLES\BL4S1xx
folder provides sample programs specific to the BL4S100. Each
sample program has comments that describe the purpose and function of the program. Fol-
low 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 BL4S100 must be in
Program
“USB Programming Cable,”) and must be connected to a PC using the programming cable
as described in Section 2.1, “BL4S100 Connections.” See Appendix C for information on
the power-supply connections to the Demonstration Board.
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
, which
is included in the online documentation set. Information on using the TCP/IP features and
sample programs is provided in Chapter 5, “Using the Ethernet TCP/IP Features.”
ZigBee specific functions are described in
An Introduction to ZigBee
, which is included
in the online documentation set. Information on using the TCP/IP features and sample pro-
grams is provided in Chapter 6, “Using the ZigBee Features.”