101-0359 Rabbit Semiconductor, 101-0359 Datasheet - Page 22

KIT DEVELOPMENT BASIC RABBIT2000

101-0359

Manufacturer Part Number
101-0359
Description
KIT DEVELOPMENT BASIC RABBIT2000
Manufacturer
Rabbit Semiconductor
Series
RabbitCore 2000r
Type
MPU Moduler
Datasheet

Specifications of 101-0359

Rohs Status
RoHS non-compliant
Contents
RabbitCore Module, Dev. Board, AC Adapter, Cable and Dynamic C® CD-Rom
Processor To Be Evaluated
Rabbit 2000
Interface Type
RS-232, RS-485
For Use With/related Products
RCM2000, RCM2010, RCM2020
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
316-1003
3.1 Running Sample Program DEMOJR1.C
This sample program can be used to illustrate some of the functions of Dynamic C.
First, open the file
will appear in a window, as shown in Figure 4 below (minus some comments). Use the
mouse to place the cursor on the function name WrPortI in the program and type
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
Compile
Development 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-
• A message reports that “No Rabbit processor detected” in cases where the BL1810 and
18
main(){
} //
piled...” If you did not receive this message or you get a communication error, recom-
pile the BIOS by typing
Prototyping Board are not connected together, the wall transformer is not connected, or
is not plugged in. (The red power LED lights whenever power is connected.)
WrPortI(SPCR,NULL,0x84);
WrPortI(PADR,&PADRShadow,0xff);
while(1) {
} // end while(1)
BitWrPortI(PADR,&PADRShadow,1,2);
for(j=0; j<25000; j++);
BitWrPortI(PADR,&PADRShadow,0,2);
for(j=0; j<1000; j++);
menu, and then run it by selecting
end of main
DEMOJR1.C
DEMOJR1.C
C programs begin with main
Figure 4. Sample Program DEMOJR1.C
<Ctrl-Y>
, which is in the
, load it with the
Note: See Rabbit 2000 Microprocessor User’s Manual
(Software Chapter) for details on the routines that read and
write I/O ports.
or select
NULL is a macro for a zero pointer
Run
Recompile BIOS
SAMPLES/JACKRAB
File > Open
in the
Count to 1000 for a shorter
time delay
End of the endless loop
Write all 1’s to port A
to turn off all LEDs
write to SPCR register to
initialize parallel port A
Start a loop
Run
WrPortI
Time delay by counting
to 25,000.
Set bit 2 to a “1”
LED DS3 off.
menu. The LED on the
Set bit 2 to a “0”
turning LED DS3 on
menu, compile it using the
Rabbit 2000 Development Kit
from the
. In general, you can do
folder. The program
Compile
<Ctrl-H>
menu.
.

Related parts for 101-0359