101-0399 Rabbit Semiconductor, 101-0399 Datasheet - Page 16

no-image

101-0399

Manufacturer Part Number
101-0399
Description
KIT DEV RABBIT RCM2000 INT'L
Manufacturer
Rabbit Semiconductor
Series
RabbitCore 2000r
Type
MPU Moduler
Datasheet

Specifications of 101-0399

Contents
RabbitCore Module, Dev. Board, AC Adapter, Cable and Dynamic C® CD-Rom
For Use With/related Products
RCM2000, RCM2010, RCM2020
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
101-399
101-399
3.1.1 Running Sample Program FLASHLED.C
This sample program will be used to illustrate some of the functions of Dynamic C.
First, open the file
will appear in a window, as shown in Figure 3 below (minus some comments). Use the
mouse to place the cursor on the function name
This will bring up a documentation box for the function
this with all functions in Dynamic C libraries, including libraries you write yourself. Close
the documentation box and continue.
To run the program
then compile and run it by pressing
the Prototyping Board should start flashing if everything went well. If this doesn’t work
review the following points.
• The target should be ready, which is indicated by the message “BIOS successfully com-
12
main(){
piled...” If you did not receive this message or you get a communication error, recom-
pile the BIOS by typing
} //
int j;
WrPortI(SPCR,&SPCRShadow,0x84);
WrPortI(PADR,&PADRShadow,0xFF);
while(1) {
} // end while
BitWrPortI(PADR,&PADRShadow,1,1);
for(j=0; j<32000; j++);
BitWrPortI(PADR,&PADRShadow,0,1);
for(j=0; j<25000; j++);
end of main
FLASHLED.C
FLASHLED.C
Figure 3. Sample Program FLASHLED.C
C programs begin with main
<Ctrl-Y>
, which is in the
, open it with the
F9
Note: See the Rabbit 2000 Microprocessor User’s Manual
(Software Chapter) for details on the routines that read and
write I/O ports.
or select
or by selecting
Recompile BIOS
WrPortI
SAMPLES/RCM2000
File
Run
menu (if it is not already open),
in the program and type
WrPortI
Start a loop
End of the endless loop
Time delay by counting
Turn LED DS3 on
Set up Port A to output
to LED DS2 and DS3
to 32,000
Time delay by counting
to 25,000
Turn LED DS3 off
in the
from the
Run
. In general, you can do
folder. The program
menu. The LED on
RabbitCore RCM2000
Compile
<Ctrl-H>
menu.
.

Related parts for 101-0399