參數(shù)資料
型號: 101-0452
廠商: Rabbit Semiconductor
文件頁數(shù): 19/100頁
文件大?。?/td> 0K
描述: KIT DEV RABBIT RCM2100 INTL
標準包裝: 1
系列: RabbitCore 2000
主要目的: *
嵌入式: *
已用 IC / 零件: HYDRA
主要屬性: *
次要屬性: *
已供物品: HYDRA 裝置,存儲卡,空白試驗卡,鼠標,鍵盤,游戲鍵盤,視頻和 USB 線纜,電源和 CD 等
User’s Manual
19
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.
相關(guān)PDF資料
PDF描述
VE-J7X-EZ-F1 CONVERTER MOD DC/DC 5.2V 25W
EVAL-ADF4360-8EBZ1 BOARD EVALUATION FOR ADF4360-8
VE-J7X-EY-S CONVERTER MOD DC/DC 5.2V 50W
MCP73213-B6SI/MF IC LI-ION/LI-POLY CTRLR 10-DFN
VE-J7W-EZ-F4 CONVERTER MOD DC/DC 5.5V 25W
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
10-104520-08P 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-08S 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-16P 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-16S 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-25S 制造商:Amphenol Aerospace 功能描述:PLUG