参数资料
型号: 101-0399
厂商: Rabbit Semiconductor
文件页数: 8/80页
文件大小: 0K
描述: KIT DEV RABBIT RCM2000 INT'L
标准包装: 1
系列: RabbitCore 2000
类型: MPU 模块
适用于相关产品: RCM2000,RCM2010,RCM2020
所含物品: RabbitCore 模块、开发板、交流适配器、缆线和 Dynamic C? 光盘
其它名称: 101-399
101-399-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描述
101-0360 KIT DEV RABBIT 2000 INT'L
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
相关代理商/技术参数
参数描述
10103-C PLAIN ALUMINUM 功能描述:CHASSIS ALUM UNPAINTED 10"LX10"W 制造商:lmb heeger inc. 系列:- 零件状态:有效 容器类型:底座 大小/尺寸:10.000" 长 x 10.000" 宽(254.00mm x 254.00mm) 高度:3.000"(76.20mm) 面积(L x W):100"(645cm) 设计:包含盖 材料:金属 - 铝 颜色:未上色 厚度:- 特性:帽盖(盖) 等级:- 材料可燃性等级:- 发货信息:从 Digi-Key 运送 重量:- 标准包装:1
10103-P PLAIN ALUMINUM 功能描述:CHASSIS ALUM UNPAINTED 10"LX10"W 制造商:lmb heeger inc. 系列:- 零件状态:有效 容器类型:底座 大小/尺寸:10.000" 长 x 10.000" 宽(254.00mm x 254.00mm) 高度:3.000"(76.20mm) 面积(L x W):100"(645cm) 设计:包含盖 材料:金属 - 铝 颜色:未上色 厚度:- 特性:帽盖(盖) 等级:- 材料可燃性等级:- 发货信息:从 Digi-Key 运送 重量:- 标准包装:1
10103-SS-0440-7 制造商:Amatom Electronic Hardware 功能描述:
10103-TB 制造商:Thomas & Betts 功能描述:Cable Accessories Ground Clamp
10104 制造商:Brady Corporation 功能描述: 制造商:Marinco Electrical Group 功能描述: 制造商:Weidmuller 功能描述: