20-101-0356 Rabbit Semiconductor, 20-101-0356 Datasheet - Page 44

COMPUTER SINGLE-BOARD BL1800

20-101-0356

Manufacturer Part Number
20-101-0356
Description
COMPUTER SINGLE-BOARD BL1800
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-101-0356

Module/board Type
Single Board Computer Module
Product
Modules
Data Bus Width
8 bit
Processor Type
Rabbit 2000
Sram
128 KB
Flash
256 KB
Timers
8 bit, 10 bit
Number Of I/os
14
Backup Battery
3 V Lithium Coin Type
Operating Voltage
8 V to 40 V
Power Consumption
1.2 W
Board Size
89 mm x 64 mm x 19 mm
Description/function
Computer Module
For Use With/related Products
BL1800
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
316-1079
4.2.1 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 15 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 that you write yourself—
the Dynamic C User’s Manual provides more information. Close the documentation box
and continue.
To run the program
by pressing
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 Jackrabbit
40
main(){
} //
piled...” If you did not receive this message or you get a communication error, recom-
pile the BIOS by typing
and Prototyping Board are not connected together, the wall transformer is not con-
nected, 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++);
end of main
F9
or by selecting
DEMOJR1.C
DEMOJR1.C
C programs begin with main
Figure 15. Sample Program DEMOJR1.C
<Ctrl-Y>
Run
, 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.
in the
or select
NULL is a macro for a zero pointer
Run
Recompile BIOS
menu. The LED on the Prototyping Board
File > Open
SAMPLES/JACKRAB
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
WrPortI
Time delay by counting
to 25,000.
Set bit 2 to a “1”
LED DS3 off.
menu, then compile and run it
Set bit 2 to a “0”
turning LED DS3 on
from the
. In general, you can do
folder. The program
Jackrabbit (BL1800)
Compile
<Ctrl-H>
menu.
.

Related parts for 20-101-0356