Datasheet

LTC2483
28
2483fc
applicaTions inFormaTion
/*
LTC248X.h
Processor setup and
Lots of useful denes for conguring the LTC2481, LTC2483, and LTC2485.
*/
#include <16F73.h> // Device
#use delay(clock=6000000) // 6MHz clock
//#fuses NOWDT,HS, PUT, NOPROTECT, NOBROWNOUT // Conguration fuses
#rom 0x2007={0x3F3A} // Equivalent and more reliable fuse cong.
#use I2C(master, sda=PIN_C5, scl=PIN_C3, SLOW)// Set up i2c port
#include “PCM73A.h” // Various denes
#include “lcd.c” // LCD driver functions
#dene READ 0x01 // bitwise OR with address for read or write
#dene WRITE 0x00
#dene LTC248XADDR 0b01001000 // The one and only LTC248X in this circuit,
// with both address lines oating.
// Useful denes for the LTC2481 and LTC2485 - OR them together to make the
// 8 bit cong word.
// These do NOT apply to the LTC2483.
// Select gain - 1 to 256 (also depends on speed setting)
// Does NOT apply to LTC2485.
#dene GAIN1 0b00000000 // G = 1 (SPD = 0), G = 1 (SPD = 1)
#dene GAIN2 0b00100000 // G = 4 (SPD = 0), G = 2 (SPD = 1)
#dene GAIN3 0b01000000 // G = 8 (SPD = 0), G = 4 (SPD = 1)
#dene GAIN4 0b01100000 // G = 16 (SPD = 0), G = 8 (SPD = 1)
#dene GAIN5 0b10000000 // G = 32 (SPD = 0), G = 16 (SPD = 1)
#dene GAIN6 0b10100000 // G = 64 (SPD = 0), G = 32 (SPD = 1)
#dene GAIN7 0b11000000 // G = 128 (SPD = 0), G = 64 (SPD = 1)
#dene GAIN8 0b11100000 // G = 256 (SPD = 0), G = 128 (SPD = 1)
// Select ADC source - differential input or PTAT circuit
#dene VIN 0b00000000
#dene PTAT 0b00001000
// Select rejection frequency - 50, 55, or 60Hz
#dene R50 0b00000010
#dene R55 0b00000000
#dene R60 0b00000100
// Select speed mode
#dene SLOW 0b00000000 // slow output rate with autozero
#dene FAST 0b00000001 // fast output rate with no autozero