User`s manual

16 digi.com Quick Tutorial
3.1 Run DEMO1.C
This sample program will be used to illustrate some of the functions of Dynamic C. Open the file
Samples/DEMO1.C using the File menu or the keyboard shortcut <Ctrl+O>. The program will appear
in a window, as shown in Figure 3.2 (minus some comments). Use the
mouse to place the cursor on the
function name
printf
in the program and press
<Ctrl+H>
.
This brings up a Function Description window
for printf(). You can do this with all functions in the Dynamic C libraries, including libraries you
write yourself.
Figure 3.2 Sample Program DEMO1.C
To run DEMO1.C compile it using the Compile menu, and then run it by selecting “Run” in the
Run menu. (The keyboard shortcut <F9> will compile and run the program. You may also use the
green triangle toolbar button as a substitute for <F9>.)
The value of the counter should be printed repeatedly to the Stdio window if everything went well. If this
doesn’t work, review the following points:
The target should be ready, indicated by the message “BIOS successfully compiled...” If you did not
receive this message or you get a communication error, recompile the BIOS by pressing <Ctrl+Y> or
select “Reset Target / Compile BIOS” from the Compile menu.
A message reports “No Rabbit Processor Detected” in cases where the wall transformer is not con-
nected or not plugged in.
The programming cable must be connected to the controller. (The colored wire on the programming
cable is closest to pin 1 on the programming header on the controller). The other end of the program-
ming cable must be connected to the PC serial port. The COM port specified in the Communications