ltc2435-1 Linear Technology Corporation, ltc2435-1 Datasheet - Page 36

no-image

ltc2435-1

Manufacturer Part Number
ltc2435-1
Description
20-bit No Latency Delta Sigma Adcs With Differential Input And Differential Reference
Manufacturer
Linear Technology Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ltc2435-1CGN
Manufacturer:
LT
Quantity:
10 000
Part Number:
ltc2435-1CGN
Manufacturer:
LINEAR/凌特
Quantity:
20 000
Part Number:
ltc2435-1CGN#PBF
Manufacturer:
LINEAR/凌特
Quantity:
20 000
Part Number:
ltc2435-1IGN
Manufacturer:
LT
Quantity:
10 000
LTC2435/LTC2435-1
APPLICATIO S I FOR ATIO
// Basic data collection program for the LTC2435 using the
// PIC16F73 microcontroller. Collects data as fast as possible
// and sends it out the serial port at 57600 baud as six
// hexadecimal characters, followed by a carriage return.
// This can be captured with a terminal program and analyzed
// with a spreadsheet using the HEX2DEC function (in Excel.)
//
// Written for the CCS compiler, version 3.049.
////////////////////////////////////////////////////////////////////
#include <16F73.h>
#byte SSPCON = 0x14
#byte SSPSTAT = 0x94
#bit CKE = SSPSTAT.6
#bit CKP = SSPCON.4
#bit SSPEN = SSPCON.5
#fuses HS,NOWDT,PUT
#use delay(clock=10000000)
#use rs232(baud=57600,parity=N,xmit=PIN_C6,rcv=PIN_C7)
#define CS_ PIN_C2
#define CLOCK PIN_C
#define SDO PIN_C4
void main() {
36
// Basic configuration, no bearing on operation of LTC2435
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_CLOCK_DIV_2);
setup_counters(RTCC_INTERNAL,RTCC_DIV_2);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_ccp2(CCP_OFF);
// LTC2435 is connected to the processor’s hardware SPI port.
// This sets the port such that data is shifted on clock falling edges and
// valid on rising edges. For a 10 MHz master clock, the SPI clock frequency
// wil be 2.5 MHz.
CKP = 0; // Set up clock edges - clock idles low, data changes on
CKE = 1; // falling edges, valid on rising edges.
setup_spi(SPI_MASTER|SPI_L_TO_H|SPI_CLK_DIV_4|SPI_SS_DISABLED);
U
U
// registers.
// For baud rate calculation.
// Serial data is sent on pin C6.
// Chip select connected to pin C2
// Clock connected to pin C3
// SDO on the LTC2435 connected to pin C4
// (this is SDI on the PIC;
// Master In, Slave Out (MISO) is less ambiguous)
// Synchronous serial port control
W
U
24351fb

Related parts for ltc2435-1