參數(shù)資料
型號: 101-0360
廠商: Rabbit Semiconductor
文件頁數(shù): 8/80頁
文件大?。?/td> 0K
描述: KIT DEV RABBIT 2000 INT'L
標準包裝: 1
系列: RabbitCore 2000
類型: MPU 模塊
適用于相關產(chǎn)品: RCM2000,RCM2010,RCM2020
所含物品: RabbitCore 模塊、開發(fā)板、交流適配器、纜線和 Dynamic C? 光盤
其它名稱: 101-360
101-360-ND
12
RabbitCore RCM2000
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 FLASHLED.C, which is in the SAMPLES/RCM2000 folder. The program
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 WrPortI in the program and type <Ctrl-H>.
This will bring up a documentation box for the function WrPortI. In general, you can do
this with all functions in Dynamic C libraries, including libraries you write yourself. Close
the documentation box and continue.
Figure 3. Sample Program FLASHLED.C
To run the program FLASHLED.C, open it with the File menu (if it is not already open),
then compile and run it by pressing F9 or by selecting Run in the Run menu. The LED on
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-
piled...” If you did not receive this message or you get a communication error, recom-
pile the BIOS by typing <Ctrl-Y> or select Recompile BIOS from the Compile menu.
main(){
int j;
WrPortI(SPCR,&SPCRShadow,0x84);
WrPortI(PADR,&PADRShadow,0xFF);
while(1) {
BitWrPortI(PADR,&PADRShadow,1,1);
for(j=0; j<32000; j++);
BitWrPortI(PADR,&PADRShadow,0,1);
for(j=0; j<25000; j++);
} // end while
} //
end of main
C programs begin with main
Start a loop
Time delay by counting
to 32,000
End of the endless loop
Note: See the Rabbit 2000 Microprocessor User’s Manual
(Software Chapter) for details on the routines that read and
write I/O ports.
Set up Port A to output
to LED DS2 and DS3
Turn LED DS3 off
Turn LED DS3 on
Time delay by counting
to 25,000
相關PDF資料
PDF描述
RCC22DCSH CONN EDGECARD 44POS DIP .100 SLD
EVAL-AD5546SDZ BOARD EVAL FOR AD5546
V48C2E50BL CONVERTER MOD DC/DC 2V 50W
AP2152AFGEG-7 IC PWR SW USB 2CH 0.5A 8-DFN
0210390971 CABLE JUMPER 1MM .102M 27POS
相關代理商/技術參數(shù)
參數(shù)描述
101-0360-000 制造商:ITT Interconnect Solutions 功能描述:1010360000 / 101-0360-000 / Circular
10-103-6-05 制造商:Concord Electronics Inc 功能描述:
101-0361 功能描述:觸覺開關 TACTILE SWITCH 6X6MM RoHS:否 制造商:C&K Components 工作力:2 N 執(zhí)行器:Round 電流額定值:50 mA 電壓額定值 DC:32 V 電壓額定值 AC: 功率額定值:1 VA 接地端子:Yes 觸點形式:SPST-NO 開關功能: 安裝風格:SMD/SMT 安裝方向:Right 晶體管管座高度: 顏色: 照明:Not Illuminated 照明顏色: 封裝:
101-0361-EV 功能描述:觸覺開關 TACTILE SWITCH 6X6MM RoHS:否 制造商:C&K Components 工作力:2 N 執(zhí)行器:Round 電流額定值:50 mA 電壓額定值 DC:32 V 電壓額定值 AC: 功率額定值:1 VA 接地端子:Yes 觸點形式:SPST-NO 開關功能: 安裝風格:SMD/SMT 安裝方向:Right 晶體管管座高度: 顏色: 照明:Not Illuminated 照明顏色: 封裝:
101-0362 功能描述:觸覺開關 TACTILE SWITCH 6X6MM RoHS:否 制造商:C&K Components 工作力:2 N 執(zhí)行器:Round 電流額定值:50 mA 電壓額定值 DC:32 V 電壓額定值 AC: 功率額定值:1 VA 接地端子:Yes 觸點形式:SPST-NO 開關功能: 安裝風格:SMD/SMT 安裝方向:Right 晶體管管座高度: 顏色: 照明:Not Illuminated 照明顏色: 封裝: