MCP9804 Microchip Technology, MCP9804 Datasheet - Page 43

no-image

MCP9804

Manufacturer Part Number
MCP9804
Description
Accuracy Digital Temperature Sensor
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP9804-E/MC
Manufacturer:
MICROCHIP
Quantity:
3 100
Part Number:
MCP9804-E/MC
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP9804-E/MC
0
Part Number:
MCP9804-E/MS
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP9804-E/MS
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
MCP9804-E/MS
Quantity:
510
Part Number:
MCP9804-E/MS
0
Part Number:
MCP9804T-E/MC
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP9804T-E/MC
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP9804T-E/MS
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP9804T-E/MS
0
APPENDIX A:
/********************************************************************
**************************************************************/
#define ACK
#define NACK 0
#define
#define
#define
/* SSPSTAT REGISTER */
#define
#define
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);
© 2009 Microchip Technology Inc.
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.
FileName:
Dependencies: I2C.c
Processor:PIC18 Microcontrollers
Complier:
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.
SLAVE_7
SLAVE_10
MASTER
SLEW_OFF
SLEW_ON
Microchip C18 (for PIC18) or C30 (for PIC24)
1
I2C.h
SOURCE CODE
6
7
8
0xC0
0x00
/* I2C Slave mode, 7-bit address
/* I2C Slave mode, 10-bit address
/* I2C Master mode
/* Slew rate disabled for 100kHz mode */
/* Slew rate enabled for 400kHz mode
Software License Agreement
*/
*/
*/
*/
MCP9804
www.DataSheet4U.com
DS22203A-page 43

Related parts for MCP9804