DEMOJR2.C —repeatedly flas" />
參數(shù)資料
型號: 20-101-0358
廠商: Rabbit Semiconductor
文件頁數(shù): 43/94頁
文件大?。?/td> 0K
描述: COMPUTER SINGLE-BOARD BL1820
標(biāo)準(zhǔn)包裝: 1
系列: Jackrabbit
模塊/板類型: 單板計(jì)算機(jī)模塊
適用于相關(guān)產(chǎn)品: BL1820
產(chǎn)品目錄頁面: 618 (CN2011-ZH PDF)
其它名稱: 316-1081
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描述
20-101-0446 MODULE RABBITCORE RCM2130
AT25256-10PI-2.7 IC EEPROM 256KBIT 3MHZ 8DIP
345-030-524-801 CARDEDGE 30POS DUAL .100 GREEN
345-030-524-204 CARDEDGE 30POS DUAL .100 GREEN
345-030-524-202 CARDEDGE 30POS DUAL .100 GREEN
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-0383 功能描述:模塊化系統(tǒng) - SOM RCM2020 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
20-101-0389 功能描述:子卡和OEM板 SR9200 16IN/8OUT RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0390 功能描述:子卡和OEM板 SR9210 8 in/ 16 out RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0391 功能描述:子卡和OEM板 SR9220 DIG I/O 8IN 8OUT RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0392 功能描述:子卡和OEM板 SR9300 A/D 0-10V RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit