参数资料
型号: 101-0478
厂商: Rabbit Semiconductor
文件页数: 15/90页
文件大小: 0K
描述: KIT DEV RABBIT RCM2200 INTL
标准包装: 1
系列: RabbitCore 2000
类型: MPU 模块
适用于相关产品: RCM2200
所含物品: RabbitCore 模块,开发板,缆线和 Dynamic C? CD-Rom
16
RabbitCore RCM2200
3.1.4 Sample Program Descriptions
3.1.4.1 FLASHLED.C
This program is about as simple as a Dynamic C application can get—the equivalent of
the traditional “Hello, world!” program found in most basic programming tutorials. If you
are familiar with ANSI C, you should have no trouble reading through the source code and
understanding it.
The only new element in this sample application should be Dynamic C’s handling of the
Rabbit microprocessor’s parallel ports. The program:
4. Initializes the pins of Port A as outputs.
5. Sets all of the pins of Port A high, turning off the attached LEDs.
6. Starts an endless loop with a for(;;) expression, and within that loop:
Writes a bit to turn bit 1 off, lighting LED DS3;
Waits through a delay loop;
Writes a bit to turn bit 1 on, turning off the LED;
Waits through a second delay loop;
These steps repeat as long as the program is allowed to run.
You can change the flash rate of the LED by adjusting the loop values in the two for
expressions. The first loop controls the LED’s “off” time; the second loop controls its “on”
time.
NOTE: Since the variable j is defined as type int, the range for j must be between 0
and 32767. To permit larger values and thus longer delays, change the declaration of j
to unsigned int or long.
More Information
See the section on primitive data types, and the entries for the library functions
WrPortI( )
and BitWrPortI( ) in the Dynamic C User’s Manual.
相关PDF资料
PDF描述
RBC20DRXH CONN EDGECARD 40POS DIP .100 SLD
N001-005-BK-R CABLE PATCH CAT5E BLACK 5'
SDR-BK SCOTCH CODE REFILL BLACK
94SVPD186X0035F8 CAP ALUM 18UF 35V 20% SMD
GCC18DCMT-S288 CONN EDGECARD 36POS .100 EXTEND
相关代理商/技术参数
参数描述
101048 制造商:Jacob 功能描述:Bulk
10-1-048 制造商:IGUS 功能描述:SERIES 10 ENERGY CHAIN
101-0480 功能描述:开发板和工具包 - 其他处理器 RCM2300 DEV KIT RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
101-048-033 制造商:PANCON CONNECTORS 功能描述:Conn Shrouded Header HDR 48 POS 5.08mm Solder RA Thru-Hole 制造商:ITW Pancon 功能描述:Conn Shrouded Header HDR 48 POS 5.08mm Solder RA Thru-Hole
101-0481 功能描述:KIT DEV RABBIT RCM2300 INTL RoHS:否 类别:编程器,开发系统 >> 通用嵌入式开发板和套件(MCU、DSP、FPGA、CPLD等) 系列:RabbitCore 2000 产品培训模块:Blackfin® Processor Core Architecture Overview Blackfin® Device Drivers Blackfin® Optimizations for Performance and Power Consumption Blackfin® System Services 特色产品:Blackfin? BF50x Series Processors 标准包装:1 系列:Blackfin® 类型:DSP 适用于相关产品:ADSP-BF548 所含物品:板,软件,4x4 键盘,光学拨轮,QVGA 触摸屏 LCD 和 40G 硬盘 配用:ADZS-BFBLUET-EZEXT-ND - EZ-EXTENDER DAUGHTERBOARDADZS-BFLLCD-EZEXT-ND - BOARD EXT LANDSCAP LCD INTERFACE 相关产品:ADSP-BF542BBCZ-4A-ND - IC DSP 16BIT 400MHZ 400CSBGAADSP-BF544MBBCZ-5M-ND - IC DSP 16BIT 533MHZ MDDR 400CBGAADSP-BF542MBBCZ-5M-ND - IC DSP 16BIT 533MHZ MDDR 400CBGAADSP-BF542KBCZ-6A-ND - IC DSP 16BIT 600MHZ 400CSBGAADSP-BF547MBBCZ-5M-ND - IC DSP 16BIT 533MHZ MDDR 400CBGAADSP-BF548BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGAADSP-BF547BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGAADSP-BF544BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGAADSP-BF542BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGA