beautypg.com

1 detailed description, 1 default operation, 7 .1 detailed description -2 – Maxim Integrated MAX31782 User Manual

Page 58: 7 .1 .1 default operation -2, Figure 7-1 . slave i, C flow -2, C-compatible slave interface, 1detaileddescription, 1defaultoperation

background image

MaximIntegrated 7-2

MAX31782 User’s Guide

Revision 0; 8/11

SECTION 7: I

2

C-COMPATIBLE SLAVE INTERFACE

The MAX31782 provides an I

2

C-compatible slave controller that allows the MAX31782 to communicate with a host

device . This controller can also operate as an SMBus slave . Also designed into the I

2

C slave controller is the ability to

bootload the MAX31782 with new user flash memory . The I

2

C slave interface can be set up to provide system interrupts

after each I

2

C event .

Figure 7-1

shows the basic operation flow of the I

2

C slave controller . The blocks in

Figure 7-1

that

are shaded are shown in more detail in

Figure 7-2

.

Figure 7-1. Slave I

2

C Flow

7.1DetailedDescription

7.1.1DefaultOperation

The I

2

C slave controller is enabled (I2CCN_S .I2CEN=1) by default . As long as the I

2

C slave controller is enabled, the

MAX31782 I

2

C bootloader can operate . This allows bootloading of blank devices without any setup of the I

2

C slave con-

troller . Prior to the I

2

C slave controller being used for normal data communication, some software setup is required . This

setup includes setting an I

2

C slave address and telling the slave controller which I

2

C events should generate interrupts .

DETECT START

I2CSRI = 1

I2CBUS = 1

I2CBUSY = 1

RECEIVE

SLAVE

ADDRESS

DETECT STOP

I2CSPI = 1

I2CBUS = 0

RECEIVE

DATA

TRANSMIT

DATA

I2CAMI = 1?

Y

N

Y

I2CNACKI

STOP?

R/W BIT

I2CMODE

0

0

1

1

N

Y

STOP?

N