3.5 Software
This section provides the libraries, function calls, and sample programs related to the A/D
Converter Card.
3.5.1 Dynamic C Libraries
In addition to the library associated with the master single-board computer such as the
BL2500 or OP7200, one other library is needed to provide function calls for the A/D
Converter Card.
? RNET_AIN.LIB —provides functions unique to the analog inputs on the Digital I/O
Card and the A/D Converter Card. Function calls for this library are discussed in this
chapter.
Functions relevant to RabbitNet peripheral cards in general are described in Section 1.3.4.
Other functions applicable to all devices based on Rabbit microprocessors are described in
the Dynamic C Function Reference User ’s Manual .
3.5.2 Sample Programs
Sample programs are provided in the Dynamic C SAMPLES folder.
The various folders contain specific sample programs that illustrate the use of the corre-
sponding Dynamic C libraries. For example, the sample program PONG.C demonstrates
the output to the STDIO window.
To run a sample program, open it with the File menu (if it is not still open), then compile
and run it by pressing F9 or by selecting Run in the Run menu. The RabbitNet peripheral
card must be connected to a master such as the BL2500 with its Demonstration Board con-
nected as explained in the Coyote (BL2500) User ’s Manual or other user ’s manual. The
BL2500 or other master must be in Program Mode, and must be connected via the pro-
gramming cable to a PC.
The SAMPLES\RABBITNET\RN1200 subdirectory contains the following sample pro-
grams. When running these sample programs, the A/D Converter Card may be connected to
either RabbitNet port on a master such as the BL2500 that has two RabbitNet ports. The
sample program will use rn_find() and the product RN1200 as the search criteria to
first find any A/D Converter Cards connected to the master. The first A/D Converter Card
found will run the sample program.
? AIN_CALDIFF_CH.C —Demonstrates how to recalibrate a differential A/D converter
channel using two known voltages to generate constants for that channel that are rewritten
into the A/D Converter Card flash memory. The voltages being monitored will be displayed
continuously.
Before you run this sample program, make sure your 0–10 V external power supply is off
and is set to 0 V. Connect the power supply to one of the differential channel pairs such as
+AIN0 and –AIN1.
Now power up the master and the A/D Converter Card, and compile and run the sample
program. Turn the external power supply on and follow the prompts in the Dynamic C
STDIO window.
62
RabbitNet Peripheral Cards
相关PDF资料
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
10136-3000PC CONN MINI-D 36POS SOLDER PLUG
10136-6000EC CONN MDR PLUG 36POS IDC GOLD
10150-4CZ3PL CONN MDR PLUG 50POS VERT T/H
10150-72E2PC CONN MINI-D 50POS R/A PLUG
相关代理商/技术参数
101-0689 功能描述:开发板和工具包 - 其他处理器 Serial-to-Ethernet RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
101-0690 功能描述:KIT SERIAL-ETHERNET APPLICATION RoHS:否 类别:编程器,开发系统 >> 评估演示板和套件 系列:RabbitCore 3000 产品培训模块:Obsolescence Mitigation Program 标准包装:1 系列:- 主要目的:电源管理,电池充电器 嵌入式:否 已用 IC / 零件:MAX8903A 主要属性:1 芯锂离子电池 次要属性:状态 LED 已供物品:板
101-0691 功能描述:模块化系统 - SOM RCM3300 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
101-0697 功能描述:单板计算机 BL2102 Bottom Mnt RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0698 功能描述:模块化系统 - SOM RCM3310 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-106C 制造商:Datak Corporation 功能描述:
10106DC 制造商:Freescale Semiconductor 功能描述:10106DC
10106F 制造商:North American Philips Discrete Products Div 功能描述:Logic Circuit, Dual 3-Input NOR, 16 Pin, Ceramic, DIP