20-101-0405 Rabbit Semiconductor, 20-101-0405 Datasheet - Page 16

MODULE RABBITCORE RCM2010

20-101-0405

Manufacturer Part Number
20-101-0405
Description
MODULE RABBITCORE RCM2010
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-101-0405

Module/board Type
MPU Core Module
Product
Microcontroller Modules
Core Processor
Rabbit 2000
Flash
256 KBytes
Operating Supply Voltage
4.75 to 5.25 V
Board Size
58.4 mm x 48.3 mm x 14 mm
For Use With/related Products
RCM2010
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
316-1084
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 20-101-0405