전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

MCP9804-E/MS 데이터시트(PDF) 43 Page - Microchip Technology

부품명 MCP9804-E/MS
상세설명  ±0.25°C Typical Accuracy Digital Temperature Sensor
PDF  52 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  MICROCHIP [Microchip Technology]
홈페이지  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP9804-E/MS 데이터시트(HTML) 43 Page - Microchip Technology

Back Button MCP9804-E/MS Datasheet HTML 39Page - Microchip Technology MCP9804-E/MS Datasheet HTML 40Page - Microchip Technology MCP9804-E/MS Datasheet HTML 41Page - Microchip Technology MCP9804-E/MS Datasheet HTML 42Page - Microchip Technology MCP9804-E/MS Datasheet HTML 43Page - Microchip Technology MCP9804-E/MS Datasheet HTML 44Page - Microchip Technology MCP9804-E/MS Datasheet HTML 45Page - Microchip Technology MCP9804-E/MS Datasheet HTML 46Page - Microchip Technology MCP9804-E/MS Datasheet HTML 47Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 43 / 52 page
background image
 2009-2018 Microchip Technology Inc.
DS20002203D-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.c
Processor:
PIC18 Microcontrollers
Complier:
Microchip C18 (for PIC18) or C30 (for PIC24)
Company:
Microchip Technology, Inc.
#include <p18cxxx.h> // This code is developed for PIC18F2550
//It can be modified to be used with any PICmicro with MSSP module
/** PRIVATE PROTOTYPES *********************************************/
void i2c_init(void);
void i2c_start(void);
void i2c_repStart(void);
void i2c_stop(void);
unsigned char i2c_write( unsigned char i2cWriteData );
unsigned char i2c_read( unsigned char ack );
/********************************************************************
*
Function Name:
i2c_init
*
Return Value:
void
*
Parameters:
Enable SSP
*
Description:
This function sets up the SSP1 module on a
*
PIC18CXXX device for use with a Microchip I2C
********************************************************************/
void i2c_init(void) {
TRISBbits.TRISB0 = 1;
// Digital Output (make it input only when reading data)
TRISBbits.TRISB1 = 1;
// Digital Output
SSPCON1 = 0x28;
// enable I2C Master mode
SSPCON2 = 0x00;
// clear control bits
SSPSTAT = 0x80;
// disable slew rate control; disable SMBus
SSPADD = 19;
// set baud rate to 100 kHz (Fosc = 48 MHz)
PIR1bits.SSPIF = 0;
PIR2bits.BCLIF = 0;
SSPCON2bits.SEN = 0;
// force idle condition
}



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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