MCP9902/3/4
DS20005382C-page 16 2015-2016 Microchip Technology Inc.
5.0 COMMUNICATIONS
PROTOCOL
The MCP9902/3/4 communicates with a host
controller, such as an PIC MCU, through the SMBus.
The SMBus is a two-wire serial communication
protocol between a computer host and its peripheral
devices. A detailed timing diagram is shown in
Figure 4-1.
For the first 15 ms after power-up the device may not
respond to SMBus communications.
5.1 SMBus Control Bits
The interaction between clock and data creates special
function bits within the data stream.
5.1.1 SMBUS START BIT
The SMBus Start bit is defined as a transition of the
SMBus Data line from a logic ‘1’ state to a logic ‘0
state while the SMBus Clock line is in a logic ‘1’ state.
5.1.2 SMBUS ADDRESS AND RD/WR BIT
The SMBus Address Byte consists of the 7-bit client
address followed by the RD/WR
indicator bit. If this
RD/WR
bit is a logic ‘0’, the SMBus Host is writing
data to the client device. If this RD/WR
bit is a logic ‘1’,
the SMBus Host is reading data from the client device.
5.1.3 SMBUS DATA BYTES
All SMBus Data bytes are sent most significant bit first
and composed of 8-bits of information.
5.1.4 SMBUS ACK AND NACK BITS
The SMBus client will acknowledge all data bytes that
it receives. This is done by the client device pulling the
SMBus data line low after the 8th bit of each byte that
is transmitted. This applies to the Write Byte protocol.
The Host will NACK (not acknowledge) the last data
byte to be received from the client by holding the
SMBus data line high after the 8th data bit has been
sent.
5.1.5 SMBUS STOP BIT
The SMBus Stop bit is defined as a transition of the
SMBus Data line from a logic ‘0’ state to a logic ‘1
state while the SMBus clock line is in a logic ‘1 state.
When the device detects an SMBus Stop bit and it has
been communicating with the SMBus protocol, it will
reset its client interface and prepare to receive further
communications.
5.2 SMBus Timeout
The MCP9902/3/4 supports SMBus Timeout. If the
clock line is held low for longer than t
TIMEOUT
, the
device will reset its SMBus protocol. This function can
be enabled by setting the TIMEOUT bit (see
Register 5-21).
5.3 SMBus and I
2
C Compatibility
The MCP9902/3/4 is compatible with SMBus and I
2
C.
The major differences between SMBus and I
2
C
devices are highlighted here. For more information,
refer to the SMBus 2.0 and I
2
C specifications. For
information on using the MCP9902/3/4 in an I
2
C sys-
tem, refer to AN14.0 “Microchip Dedicated Slave
Devices in I
2
C Systems”, DS00001853.
MCP9902/3/4 supports I
2
C fast mode at 400 kHz.
This covers the SMBus max time of 100 kHz.
Minimum frequency for SMBus communications
is 10 kHz.
The SMBus client protocol will reset if the clock is
held at a logic ‘0’ for longer than 30 ms. This time-
out functionality is disabled by default in the
MCP9902/3/4 and can be enabled by writing to
the TIMEOUT bit. I
2
C does not have a timeout.
•I
2
C devices do not support the Alert Response
Address functionality (which is optional for
SMBus).
Attempting to communicate with the MCP9902/3/4
SMBus interface with an invalid slave address or
invalid protocol will result in no response from the
device and will not affect its register contents. Stretch-
ing of the SMCLK signal is supported, provided other
devices on the SMBus control the timing.
5.4 SMBus Protocols
The device supports Send Byte, Read Byte, Write
Byte, Receive Byte and the Alert Response Address
as valid protocols, as shown below.
All of the following protocols use the convention in
Table 5-1.
TABLE 5-1: PROTOCOL FORMAT
Data Sent To Device Data Sent To The Host
# of bits sent # of bits sent
2015-2016 Microchip Technology Inc. DS20005382C-page 17
MCP9902/3/4
5.4.1 WRITE BYTE
The Write Byte is used to write one byte of data to the
registers, as shown in Table 5-2.
5.4.2 READ BYTE
The Read Byte protocol is used to read one byte of
data from the registers as shown in Table 5- 3.
5.4.3 SEND BYTE
The Send Byte protocol is used to set the internal
address register pointer to the correct address
location. No data is transferred during the Send Byte
protocol as shown in Tabl e 5-4 .
5.4.4 RECEIVE BYTE
The Receive Byte protocol is used to read data from a
register when the internal register address pointer is
known to be at the right location (e.g. set via Send
Byte). This is used for consecutive reads of the same
register as shown in Tab l e 5 -5 .
TABLE 5-2: WRITE BYTE PROTOCOL
START Slave Address WR ACK
Register
Address
ACK
Register
Data
ACK STOP
1 0 YYYY_YYY 0 0 XXh 0 XXh 0 0 1
TABLE 5-3: READ BYTE PROTOCOL
START Slave Address WR ACK Register Address ACK
1 0 YYYY_YYY 0 0 XXh 0
START Slave Address RD
ACK Register Data NACK STOP
1 0 YYYY_YYY 1 0 XXh 1 0 1
TABLE 5-4: SEND BYTE PROTOCOL
START Slave Address WR ACK
Register
Address
ACK STOP
1 0 YYYY_YYY 0 0 XXh 0 0 1
TABLE 5-5: RECEIVE BYTE PROTOCOL
START Slave Address RD ACK Register Data NACK STOP
1 0 YYYY_YYY 1 0 XXh 1 0 1
MCP9902/3/4
DS20005382C-page 18 2015-2016 Microchip Technology Inc.
5.5 Alert Response Address
The ALERT/THERM2 output can be used as a
processor interrupt or as an SMBus Alert.
When it detects that the ALERT
/THERM2 pin is
asserted, the host will send the Alert Response
Address (ARA) to the general address of 0001_100xb.
All devices with active interrupts will respond with their
client address as shown in Table 5-6.
The MCP9902/3/4 will respond to the ARA in the
following way:
Send Slave Address and verify that full slave
address was sent (i.e. the SMBus communication
from the device was not prematurely stopped due
to a bus contention event).
Set the MASK_ALL bit to clear the
ALERT
/THERM2 pin.
The ARA does not clear the Status Register and if the
MASK_ALL bit is cleared prior to the Status Register
being cleared, the ALERT
/THERM2 pin will be
reasserted.
TABLE 5-6: ALERT RESPONSE ADDRESS PROTOCOL
START ALERT Response Address RD ACK Device Address NACK STOP
1 0 0001_100 1 0 YYYY_YYY 1 0 1

MCP9902T-AE/RW

Mfr. #:
Manufacturer:
Description:
SENSOR DIGITAL -40C-125C 8WDFN
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union