101-0412 Rabbit Semiconductor, 101-0412 Datasheet - Page 81

no-image

101-0412

Manufacturer Part Number
101-0412
Description
INTERFACE PROG 12KEY DISP OP6700
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0412

Module/board Type
Single Board Computer Module
For Use With/related Products
OP6700
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
take place. You can toggle the break point off with the
the
D.2.1.3 Editing the Program
Click on the
you can change the program. Use the
a new name so as not to change the demo program. Save the file as
change the number 20000 in the
recompile and run the program. The LEDs will start flashing, but it will flash much faster
than before because you have changed the loop counter terminal value from 20000 to
10000.
D.2.1.4 Watching Variables Dynamically
Go back to edit mode (select edit) and load the program
Open
has been added along with a statement to increment
The statement:
has been added. This is a debugging statement that makes it possible to view variables
while the program is running.
Use the
window and add the watch expression
type
incrementing about 5 times a second.
As an experiment add another expression to the watch window:
Then type
D.2.1.5 Summary of Features
So far you have practiced using the following features of Dynamic C.
• Loading, compiling and running a program. When you load a program it appears in an
• Single-stepping. This is done with the
User’s Manual
edit window. You can compile by selecting
pile
downloaded to the target over the serial port. The execution proceeds to the first state-
ment of main where it pauses, waiting for you to command the program to run, which
you can do with the
and start the program running with one keystroke, use
gram is not already compiled, the run command will compile it first.
stepping. If the
F8
stepped over.
F9
<ctrl-U>
runwatch();
k*5
key the subroutine is executed at full speed when the statement that calls it is
command. This program is the same as the first program, except that a variable
key. Try this a few times to get the feel of things.
menu. When you compile the program, it is compiled into machine language and
F9
<ctrl-U>
key to compile and run
Edit
. Each time you type
box on the task bar. This will set Dynamic C into the edit mode so that
F7
several times to observe the watch expressions
key is used, then descent into subroutines will take place. With the
F9
key or by selecting
for (..
<ctrl-U>
DEMOBRD2.C
Save as
k
to the top of the list of watch expressions. Now
F8
statement to 10000. Then use the
, you will see the current value of
key. The
choice on the
Run
Compile
. Now type
on the
k
F7
F2
each time around the endless loop.
DEMOBRD2.C
on the task bar or from the
key can also be used for single-
key and continue execution with
F9
Run
File
, the run command. If the pro-
<ctrl-W>
menu. If want to compile
menu to save the file with
k
MYTEST.C
and
using the
to open the watch
k*5
F9
k
.
, which is
. Now
File
key to
Com-
menu
k
77

Related parts for 101-0412