101-0021 Rabbit Semiconductor, 101-0021 Datasheet - Page 72

no-image

101-0021

Manufacturer Part Number
101-0021
Description
Daughter Cards & OEM Boards A/D12 Exp Board
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0021

Product Category
Daughter Cards & OEM Boards
Rohs
yes
Product
A/D Conversion - Expansion Boards
Dimensions
72 mm x 54 mm x 19 mm
Maximum Operating Temperature
+ 70 C
Minimum Operating Temperature
- 40 C
Operating Supply Voltage
24 V
Tool Is For Evaluation Of
XP8500
For Use With
Z-World Controllers
$
s
#define AN0 0
#define TEMP 0
main(){
// Make entry in signal table
// Set mux for this signal, allow MUX to settle
// Read signal 1000 times, take average
// convert to temperature, display on screen
}
!
// global(!) signal table - one entry
struct signal_rec adtab[1];
int i, board;
int mode = 10;
int comp = 1;
float avg, tempC, sum;
Reset_PBus();
Reset_PBus_Wait();
board = plcad_addr(3);
add_sig_table( TEMP, board, AN0, mode, comp );
set_mux(TEMP); mxdel18();
while( 1 ){
}
sum=0.0;
for( i=0; i<1000; i++ ){
}
avg = sum / 1000;
tempC = (avg / 0.0021) - 273;
p r i n t f ( “ % f V o l t s % 5 . 2 f D e g r e e s \ n ” , a v g , t e m p C ) ;
s u m += a d _ c o n v ( T E M P , p l a d _ r d 1 2 ( a d c h ( T E M P ) ) ) ;
ADSAMPL1.C
// A / D m o d e 1 0 ( g a i n = 2 , u n i p o l a r )
// use EEPROM compensation
// Always do this!
// PAL 0, J1 unjumpered
// loop forever

Related parts for 101-0021