MCP9808 MICROCHIP [Microchip Technology], MCP9808 Datasheet - Page 21

no-image

MCP9808

Manufacturer Part Number
MCP9808
Description
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP9808-E/MS
Manufacturer:
MICROCHIP
Quantity:
1 690
Part Number:
MCP9808-E/MS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP9808T-E/MC
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP9808T-E/MS
Manufacturer:
MICROCHIP
Quantity:
12 000
FIGURE 5-3:
Communication”).
© 2011 Microchip Technology Inc.
Reading the CONFIG Register:
Note: This is an example routine (see
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();
SCL
SDA
SCL
SDA
S
S
1
0
1
0
2
0
2
0
Timing Diagram for Reading from the Configuration Register (see
Address Byte
3
1
Address Byte
3
1
4
1
4
1
5
A
2
A
5
2
6
A
1
6
A
1
A
7
0
A
7
0
MCP9808
W
8
MCP9808
8
R
Appendix A: “Source
A
C
K
// send START command
//WRITE Command (see
//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
A
C
K
1
0
Configuration Pointer
1
0
2
0
2
0
3
0
3
0
MSB Data
4
0
4
0
5
0
0
5
6
0
6
0
Code”).
7
0
7
Section 4.1.4 “Address
0
MCP9808
8
1
8
0
Master
A
C
K
A
C
K
1
0
2
0
Note:
LSB Data
3
0
4
0
Byte”)
5
1
It is not necessary to
select the Register
Pointer if it was set
from the previous
read/write.
MCP9808
6
0
Section 4.0 “Serial
7
0
DS25095A-page 21
8
0
Master
N
A
K
P

Related parts for MCP9808