101-0788 Rabbit Semiconductor, 101-0788 Datasheet - Page 79

no-image

101-0788

Manufacturer Part Number
101-0788
Description
COMPUTER SGL-BOARD OP6600 W/SRAM
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0788

Module/board Type
Single Board Computer Module
For Use With/related Products
OP6600
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
101-788
101-788
D.2 Running Sample Program DEMOBRD1.C
The sample program
some of the functions of Dynamic C.
Now, open
below (minus some comments). Use the mouse to place the cursor on the function name
WrPortI
function
including libraries you write yourself. Close the documentation box and continue.
To run the program
menu, and then run it by selecting
stration Board should start going on and off 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-
User’s Manual
main(){
piled...” If you did not receive this message or you get a communication error, recom-
pile the BIOS by typing
} //
int j;
WrPortI(PDDDR,&PDDDRShadow,0x03);
WrPortI(PDDCR,&PDDCRShadow,0x00);
while(1) {
} // end while(1)
WrPortI
BitWrPortI(PDDR,&PDDRShadow,0xFF,0);
BitWrPortI(PDDR,&PDDRShadow,0x00,1);
for(j=0; j<20000; j++);
BitWrPortI(PDDR,&PDDRShadow,0x00,0);
BitWrPortI(PDDR,&PDDRShadow,0xFF,1);
for(j=0; j<20000; j++);
in the program and type
end of main
DEMOBRD1.C
. In general, you can do this with all functions in Dynamic C libraries,
DEMOBRD1.C
DEMOBRD1.C
C programs begin with main
Figure D-2. Sample Program DEMOBRD1.C
. The program will appear in a window, as shown in Figure D-2
<ctrl-Y>
, open it with the
<ctrl-H>
Run
Note: See the Rabbit 2000 Microprocessor User’s Manual
(Software chapter) for details on the routines that read and
write I/O ports.
in the
or select
in the
SAMPLES\ICOM
. This will bring up a documentation box for the
Recompile BIOS
Run
File
menu. LED1 and LED2 on the Demon-
menu, compile it using the
Start a loop
End of the endless loop
Time delay by counting
Set up Port D to output
to LED1 and LED2
to 20,000
Time delay by counting
to 20,000
Turn on LED1 and
turn off LED2
Turn off LED1 and
turn on LED2
folder will be used to illustrate
from the
Compile
Compile
menu.
75

Related parts for 101-0788