| поискавой системы для электроныых деталей |
|
MCP9804-E/MS датащи(PDF) 43 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP9804-E/MS датащи(HTML) 43 Page - Microchip Technology |
|
43 / 54 page ![]() © 2009 Microchip Technology Inc. DS22203A-page 43 MCP9804 Software License Agreement The software supplied herewith by Microchip Technology Incorporated (the “Company”) is intended and supplied to you, the Company’s customer, for use solely and exclusively with products manufactured by the Company. The software is owned by the Company and/or its supplier, and is protected under applicable copyright laws. All rights are reserved. Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the terms and conditions of this license. THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATU- TORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICU- LAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. APPENDIX A: SOURCE CODE /******************************************************************** FileName: I2C.h Dependencies: I2C.c Processor:PIC18 Microcontrollers Complier: Microchip C18 (for PIC18) or C30 (for PIC24) Company:Microchip Technology, Inc. Software License Agreement: The software supplied herewith by Microchip Technology Incorporated (the “Company”) for its PIC® Microcontroller is intended and supplied to you, the Company’s customer, for use solely and exclusively on Microchip PIC Microcontroller products. The software is owned by the Company and/or its supplier, and is protected under applicable copyright laws. All rights are reserved. Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the terms and conditions of this license. THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. **************************************************************/ #define ACK 1 #define NACK 0 #define SLAVE_7 6 /* I2C Slave mode, 7-bit address */ #define SLAVE_10 7 /* I2C Slave mode, 10-bit address */ #define MASTER 8 /* I2C Master mode */ /* SSPSTAT REGISTER */ #define SLEW_OFF 0xC0 /* Slew rate disabled for 100kHz mode */ #define SLEW_ON 0x00 /* Slew rate enabled for 400kHz mode */ extern void OpenI2C(unsigned char sync_mode, unsigned char slew); extern void I2CStart(void); extern void I2CReStart(void); extern void I2CStop(void); extern unsigned char WriteI2C(unsigned char data_out); extern unsigned char ReadI2C(unsigned char ACK); extern void ACKI2C(void); extern void nACK(void); extern void WaitForACK(void); extern unsigned char I2CDataReady(void); |
|
ссылки 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 |