Electronic Components Datasheet Search
  English  ▼

X  

LTC2481CDD Datasheet(PDF) 37 Page - Linear Technology

Part # LTC2481CDD
Description  16-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

LTC2481CDD Datasheet(HTML) 37 Page - Linear Technology

Back Button LTC2481CDD Datasheet HTML 32Page - Linear Technology LTC2481CDD Datasheet HTML 33Page - Linear Technology LTC2481CDD Datasheet HTML 34Page - Linear Technology LTC2481CDD Datasheet HTML 35Page - Linear Technology LTC2481CDD Datasheet HTML 36Page - Linear Technology LTC2481CDD Datasheet HTML 37Page - Linear Technology LTC2481CDD Datasheet HTML 38Page - Linear Technology LTC2481CDD Datasheet HTML 39Page - Linear Technology LTC2481CDD Datasheet HTML 40Page - Linear Technology  
Zoom Inzoom in Zoom Outzoom out
 37 / 40 page
background image
37
LTC2481
2481f
APPLICATIO S I FOR ATIO
lcd_init();
// Initialize LCD
delay_ms(6);
printf(lcd_putc, "Hello!");
// Obligatory hello message
delay_ms(500);
// for half a second
} // End of initialize()
*** main() ********************************************************************
Main program initializes microcontroller registers, then reads the LTC2481
repeatedly
*******************************************************************************/
void main()
{
signed int32 x;
// Integer result from LTC2481
float voltage;
// Variable for floating point math
int16 timeout;
initialize();
// Hardware initialization
while(1)
{
delay_ms(1);
// Pace the main loop to something more than 1 ms
// This is a basic error detection scheme. The LTC248X will never take more than
// 163.5ms, 149.9ms, or 136.5ms to complete a conversion in the 50Hz, 55Hz, and 60Hz
// rejection modes, respectively.
// If read_LTC248X() does not return non-zero within this time period, something
// is wrong, such as an incorrect i2c address or bus conflict.
if((x = read_LTC2481(LTC248XADDR, GAIN1 | VIN | R55)) != 0)
{
// No timeout, everything is okay
timeout = 0;
// reset timer
x &= 0xFFFFFFC0;
// clear config bits so they don't affect math
x ^= 0x80000000;
// Invert MSB, result is 2's complement
voltage = (float) x;
// convert to float
voltage = voltage * 5.0 / 2147483648.0;// Multiply by Vref, divide by 2^31
lcd_putc('\f');
// Clear screen
lcd_gotoxy(1,1);
// Goto home position
printf(lcd_putc, "V %01.4f", voltage); // Display voltage
}
else
{
++timeout;
}
if(timeout > 200)
{
timeout = 200;
// Prevent rollover
lcd_gotoxy(1,1);
printf(lcd_putc, "ERROR - TIMEOUT");
delay_ms(500);
}
} // End of main loop
} // End of main()



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