Electronic Components Datasheet Search
  English  ▼

X  

LTC2485CDD Datasheet(PDF) 35 Page - Linear Technology

Part # LTC2485CDD
Description  24-Bit ?誇 ADC with Easy Drive Input Current Cancellation and I2C Interface
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  LINER [Linear Technology]
Direct Link  http://www.linear.com
Logo LINER - Linear Technology

LTC2485CDD Datasheet(HTML) 35 Page - Linear Technology

Back Button LTC2485CDD Datasheet HTML 31Page - Linear Technology LTC2485CDD Datasheet HTML 32Page - Linear Technology LTC2485CDD Datasheet HTML 33Page - Linear Technology LTC2485CDD Datasheet HTML 34Page - Linear Technology LTC2485CDD Datasheet HTML 35Page - Linear Technology LTC2485CDD Datasheet HTML 36Page - Linear Technology LTC2485CDD Datasheet HTML 37Page - Linear Technology LTC2485CDD Datasheet HTML 38Page - Linear Technology LTC2485CDD Datasheet HTML 39Page - Linear Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 40 page
background image
35
LTC2485
2485fa
/*
LTC2485.c
Basic voltmeter test program for LTC2485
Reads LTC2485, converts result to volts,
and prints voltage to a 2 line by 16 character LCD display.
Mark Thoren
Linear Technonlgy Corporation
June 23, 2005
Written for CCS PCM compiler, Version 3.182
*/
#include “LTC248X.h”
/*** read_LTC2485() ************************************************************
This is the funciton that actually does all the work of talking to the LTC2485.
Arguments:
addr - device address
config - configuration bits for next conversion
Returns:
zero if conversion is in progress,
32 bit signed integer LTC2485 output word.
the i2c_xxxx() functions do the following:
void i2c_start(void): generate an i2c start or repeat start condition
void i2c_stop(void): generate an i2c stop condition
char i2c_read(boolean): return 8 bit i2c data while generating an ack or nack
boolean i2c_write(): send 8 bit i2c data and return ack or nack from slave device
These functions are very compiler specific, and can use either a hardware i2c
port or software emulation of an i2c port. This example uses software emulation.
A good starting point when porting to other processors is to write your own
i2c functions. Note that each processor has its own way of configuring
the i2c port, and different compilers may or may not have built-in functions
for the i2c port.
When in doubt, you can always write a “bit bang” function for troubleshooting
purposes.
The “fourbytes” structure allows byte access to the 32 bit return value:
struct fourbytes
// Define structure of four consecutive bytes
{
// To allow byte access to a 32 bit int or float.
int8 te0;
//
int8 te1;
// The make32() function in this compiler will
int8 te2;
// also work, but a union of 4 bytes and a 32 bit int
int8 te3;
// is probably more portable.
};
APPLICATIO S I FOR ATIO



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com