поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

LTC2485CDD датащи(PDF) 37 Page - Linear Technology

номер детали LTC2485CDD
подробное описание детали  24-Bit ?誇 ADC with Easy Drive Input Current Cancellation and I2C Interface
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  LINER [Linear Technology]
домашняя страница  http://www.linear.com
Logo LINER - Linear Technology

LTC2485CDD датащи(HTML) 37 Page - Linear Technology

Back Button 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 LTC2485CDD Datasheet HTML 40Page - Linear Technology  
Zoom Inzoom in Zoom Outzoom out
 37 / 40 page
background image
37
LTC2485
2485fa
/*** main() ********************************************************************
Main program initializes microcontroller registers, then reads the LTC2481
repeatedly
*******************************************************************************/
void main()
{
signed int32 x, y;
// 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 LTC2485 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_LTC2485() does not return non-zero within this time period, something
// is wrong, such as an incorrect i2c address or bus conflict.
if((x = read_LTC2485(LTC248XADDR, VIN | R50 | SLOW)) != 0)
{
// No timeout, everything is okay
timeout = 0;
// reset timer
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, “%01.6f”, 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()
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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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