101-0398 Rabbit Semiconductor, 101-0398 Datasheet - Page 27

KIT DEV RABBIT2000/RCM2000

101-0398

Manufacturer Part Number
101-0398
Description
KIT DEV RABBIT2000/RCM2000
Manufacturer
Rabbit Semiconductor
Series
RabbitCore 2000r
Type
MPU Core Moduler
Datasheet

Specifications of 101-0398

Rohs Status
RoHS non-compliant
Contents
RabbitCore Module, Dev. Board, AC Adapter, Cable and Dynamic C® CD-Rom
Processor To Be Evaluated
RCM2000
Data Bus Width
8 bit
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Operating Supply Voltage
4.75 V to 5.25 V
For Use With/related Products
RCM2000, RCM2010, RCM2020
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
316-1007
4.2 Running Sample Program FLASHLED.C
This sample program will be used to illustrate some of the functions of Dynamic C.
First, open the file
gram will appear in a window, as shown in Figure 5 below (minus some comments). Use
the mouse to place the cursor on the function name
<Ctrl-H>
you can do this with all functions in Dynamic C libraries, including libraries you write
yourself. Close the documentation box and continue.
To run the program
pile
Board should start flashing if everything went well. If this doesn’t work review the follow-
ing points.
• The target should be ready, which is indicated by the message “BIOS successfully com-
Getting Started
main(){
piled...” If you did not receive this message or you get a communication error, recom-
pile the BIOS by typing
} //
menu, and then run it by selecting
int j;
WrPortI(SPCR,&SPCRShadow,0x84);
WrPortI(PADR,&PADRShadow,0xFF);
while(1) {
} // end while
. This will bring up a documentation box for the function
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 5. Sample Program FLASHLED.C
C programs begin with main
<Ctrl-Y>
, which is in the
, load it with the
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
Run
in the
Recompile BIOS
Samples/COREMODULE
Run
WrPortI
File
menu. The LED on the Prototyping
menu, compile it using the
Start a loop
End of the endless loop
Time delay by counting
Turn LED DS3 on
to 32,000
Time delay by counting
Set up Port A to output
to LED DS2 and DS3
to 25,000
Turn LED DS3 off
in the program and type
from the
WrPortI
Compile
folder. The pro-
. In general,
Com-
menu.
23

Related parts for 101-0398