DEMOJR2.C —repeatedly flas" />
參數(shù)資料
型號: 101-0558
廠商: Rabbit Semiconductor
文件頁數(shù): 43/94頁
文件大?。?/td> 0K
描述: COMPUTER SNG BD BL1800 512K SRAM
標準包裝: 10
系列: SBC
模塊/板類型: 單板計算機模塊
適用于相關(guān)產(chǎn)品: BL1800
44
Jackrabbit (BL1800)
4.2.2 Other Sample Programs Illustrating Digital I/O
DEMOJR2.C
—repeatedly flashes LED DS3 (which is controlled by PA2) on the Proto-
typing Board.
This sample program also illustrates the use of the runwatch() function to allow
Dynamic C to update watch expressions while running. To test this:
1. Add a watch expression for "k" under "Inspect:Add/Del Watch Expression."
2. Click "Add to top" so that it will be permanently in the watch list.
3. While the program is running, type <Ctrl+U> to update the watch window.
DEMOJR3.C
—demonstrates the use of costatements to LED DS4 (which is controlled
by PA3) on the Prototyping Board. This sample program will also watch button S1
(PB2) and toggle LED DS1 (which is controlled by PA0) on/off when pressed. Note
that S1 presses are debounced by the software.
The pins on Parallel Port A can all be set as either outputs or as inputs via the slave port
control register (SPCTR). Do not use Parallel Port A if the slave port is being used.
Bits 0–5 on Parallel Port B are always inputs, and bits 6–7 are always outputs. Do not
use Parallel Port B if the slave port is being used.
JRIOTEST.C
—exercises the JackRabbit's four digital output channels, the one analog
input channel, and the two analog output channels.
JRIO_COF.C
—demonstrates the use of cofunctions with the analog input driver.
Before you run this sample program, connect DA1 to AD0 on header J7 of the Proto-
typing Board to provide an input voltage. Once the sample program is running, it will
read the input voltage ten times while another costatement is executed concurrently. The
values will be printed out in the Dynamic C STDIO window at the end of the program.
Before running the RABDB01.C and the RABDB02.C sample programs, you will need to
install 3 mm LEDs such as the Vishay Telefunken TLUR4400 at DS5–DS8 on the Jack-
rabbit Prototyping Board. These LEDs are included with the Jackrabbit Development Kit.
RABDB01.C
—flashes LEDs DS5–DS8 on the Jackrabbit Prototyping Board (which are
connected to PA4–PA7) when corresponding switches S1–S4 (which are connected to
PB2–PB5) are pressed. The buzzer, which is driven by HV0 from PE0, will also sound
whenever switch S1 switch is pressed.
RABDB02.C
—flashes LEDs DS5–DS8 on the Jackrabbit Prototyping Board (which are
connected to PA4–PA7) when corresponding switches S1–S4 (which are connected to
PB2–PB5) are pressed. The buzzer, which is driven by HV0 from PE0, will also sound
whenever switch S1 switch is pressed.
相關(guān)PDF資料
PDF描述
396-036-526-204 CARD EDGE 36POS DL .125X.250 BLK
396-036-526-202 CARD EDGE 36POS DL .125X.250 BLK
101-0411 INTERFACE 12KEYDISP ETHNT OP6700
AT24C02A-10PI-2.7 IC EEPROM 2KBIT 400KHZ 8DIP
AT24C02A-10PI-1.8 IC EEPROM 2KBIT 400KHZ 8DIP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
10105584 制造商:Amphenol Corporation 功能描述:10-341374-222 - Bulk
101055OO 制造商:TE Connectivity 功能描述:
101056084S 制造商:Amphenol Aerospace 功能描述:CONNECTOR
101-0561 功能描述:模塊化系統(tǒng) - SOM RCM3400 RABBITCORE RoHS:否 制造商:Digi International 外觀尺寸:ConnectCore 9P 處理器類型:ARM926EJ-S 頻率:150 MHz 存儲容量:8 MB, 16 MB 存儲類型:NOR Flash, SDRAM 接口類型:I2C, SPI, UART 工作電源電壓:3.3 V 最大工作溫度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
10-105610-02S 制造商:Amphenol Aerospace 功能描述:PLUG