MCP9804 Microchip Technology, MCP9804 Datasheet - Page 20

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
MCP9804
FIGURE 5-2:
DS22203A-page 20
• Writing to the CONFIG Register to Enable the Event Output pin <0000 0000 0000 1000>b.
SDA
SCL
Note: this is an example routine: (See Appendix A: “Source Code”)
i2c_start();
i2c_write(AddressByte & 0xFE);
i2c_write(0x01);
i2c_write(0x00);
i2c_write(0x08);
i2c_stop();
Timing Diagram for Writing to the Configuration Register (See Section 4.0.
S
1
0
2
0
Address Byte
3
1
4
1
5
A
2
A
6
1
1
0
7
A
0
2
0
MCP9804
W
8
3
0
MSB Data
A
C
K
4
0
// send START command
//WRITE Command (see Section 4.1.4)
//also, make sure bit 0 is cleared ‘0’
// Write CONFIG Register
// Write data
// Write data
// send STOP command
1
0
5
0
Configuration Pointer
2
0
0
6
3
0
7
0
MCP9804
4
0
8
0
5
0
A
C
K
6
0
1
0
7
0
2
0
MCP9804
1
8
3
0
LSB Data
A
C
K
4
0
5
1
© 2009 Microchip Technology Inc.
6
0
7
0
MCP9804
8
0
A
C
K
www.DataSheet4U.com
P

Related parts for MCP9804