| поискавой системы для электроныых деталей |
|
LTC2435-1IGN датащи(PDF) 36 Page - Linear Technology |
|
|
|||||||||||||||||||||||||||||
LTC2435-1IGN датащи(HTML) 36 Page - Linear Technology |
|
36 / 40 page ![]() LTC2435/LTC2435-1 36 24351fa 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 // Synchronous serial port control #byte SSPSTAT = 0x94 // registers. #bit CKE = SSPSTAT.6 #bit CKP = SSPCON.4 #bit SSPEN = SSPCON.5 #fuses HS,NOWDT,PUT #use delay(clock=10000000) // For baud rate calculation. #use rs232(baud=57600,parity=N,xmit=PIN_C6,rcv=PIN_C7) // Serial data is sent on pin C6. #define CS_ PIN_C2 // Chip select connected to pin C2 #define CLOCK PIN_C // Clock connected to pin C3 #define SDO PIN_C4 // SDO on the LTC2435 connected to pin C4 // (this is SDI on the PIC; // Master In, Slave Out (MISO) is less ambiguous) void main() { // 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. setup_spi(SPI_MASTER|SPI_L_TO_H|SPI_CLK_DIV_4|SPI_SS_DISABLED); CKP = 0; // Set up clock edges - clock idles low, data changes on CKE = 1; // falling edges, valid on rising edges. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| 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 |