MCP9804 Microchip Technology, MCP9804 Datasheet - Page 21

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
FIGURE 5-3:
© 2009 Microchip Technology Inc.
SDA
SCL
SDA
SCL
• Reading the CONFIG Register.
S
S
1
0
1
0
Note: this is an example routine: (See Appendix A: “Source Code”)
i2c_start();
i2c_write(AddressByte & 0xFE);
i2c_write(0x01);
i2c_start();
i2c_write(AddressByte | 0x01);
UpperByte = i2c_read(ACK);
LowerByte = i2c_read(NAK);
i2c_stop();
2
0
2
0
Address Byte
Timing Diagram for Reading from the Configuration Register (See Section 4.0).
3
1
Address Byte
1
3
4
1
4
1
5
A
2
5
A
2
A
6
1
A
6
1
7
A
0
A
MCP9804
7
0
MCP9804
W
8
8
R
A
C
K
A
C
K
1
0
Configuration Pointer
1
0
2
0
0
2
3
0
3
0
MSB Data
4
0
// send START command
//WRITE Command (see Section 4.1.4)
//also, make sure bit 0 is cleared ‘0’
// Write CONFIG Register
// send Repeat START command
//READ Command
//also, make sure bit 0 is set ‘1’
// READ 8 bits
//and Send ACK bit
// READ 8 bits
//and Send NAK bit
// send STOP command
4
0
5
0
5
0
6
0
6
0
7
0
7
0
MCP9804
8
1
8
0
Master
A
C
K
A
C
K
1
0
2
0
Note:
3
0
LSB Data
4
0
5
1
It is not necessary to
select
pointer if it was set from
the previous read/write.
MCP9804
6
0
www.DataSheet4U.com
7
0
DS22203A-page 21
the
8
0
Master
N
A
K
P
register

Related parts for MCP9804