參數(shù)資料
型號: 20-101-0405
廠商: Rabbit Semiconductor
文件頁數(shù): 8/80頁
文件大?。?/td> 0K
描述: MODULE RABBITCORE RCM2010
標(biāo)準(zhǔn)包裝: 1
系列: RabbitCore®
模塊/板類型: MPU 核心模塊
適用于相關(guān)產(chǎn)品: RCM2010
產(chǎn)品目錄頁面: 620 (CN2011-ZH PDF)
其它名稱: 316-1084
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
相關(guān)PDF資料
PDF描述
20-101-1093 RCM4110 RABBITCORE
20-101-0453 MODULE RABBITCORE RCM2300
20-101-1235 CORE MODULE RCM5700
11FMN-BMTTR-A-TB CONN FMN HSNG 11POS STAG REV SMD
046232103103800+ CONN FFC/FPC 3POS 1MM R/A SMD
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-0410 功能描述:單板計算機 OP6700/6600 battery RoHS:否 制造商:Ampro By ADLINK 外觀尺寸:EPIC 處理器類型:Intel Atom D510 頻率:1.66 GHz 存儲容量:2 GB (max) 存儲類型:DDR2, L2 Cache 接口類型:Ethernet, PS/2, SATA, Serial, USB 工作電源電壓:5 V, 12 V 功耗:13 W 最大工作溫度:+ 70 C 尺寸:165.1 mm x 114.3 mm
20-101-0411 功能描述:單板計算機 OP6700 RoHS:否 制造商:Ampro By ADLINK 外觀尺寸:EPIC 處理器類型:Intel Atom D510 頻率:1.66 GHz 存儲容量:2 GB (max) 存儲類型:DDR2, L2 Cache 接口類型:Ethernet, PS/2, SATA, Serial, USB 工作電源電壓:5 V, 12 V 功耗:13 W 最大工作溫度:+ 70 C 尺寸:165.1 mm x 114.3 mm
20-101-0412 功能描述:單板計算機 OP6600 RoHS:否 制造商:Ampro By ADLINK 外觀尺寸:EPIC 處理器類型:Intel Atom D510 頻率:1.66 GHz 存儲容量:2 GB (max) 存儲類型:DDR2, L2 Cache 接口類型:Ethernet, PS/2, SATA, Serial, USB 工作電源電壓:5 V, 12 V 功耗:13 W 最大工作溫度:+ 70 C 尺寸:165.1 mm x 114.3 mm
20-101-0420 功能描述:模塊配件 FWT27/Pluggable RoHS:否 制造商:Lantronix 產(chǎn)品: 用于:
20-101-0421 功能描述:模塊配件 FWT18/Pluggable RoHS:否 制造商:Lantronix 產(chǎn)品: 用于: