27.12.2012 Views

Atmel AT89C51ID2 Data Sheet - Keil

Atmel AT89C51ID2 Data Sheet - Keil

Atmel AT89C51ID2 Data Sheet - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 36. Format and State in the Slave Transmitter Mode<br />

Reception of the<br />

own slave address<br />

and one or more<br />

data bytes<br />

Arbitration lost as master<br />

and addressed as slave<br />

Last data byte transmitted.<br />

Switched to not addressed<br />

slave (AA=0)<br />

From master to slave<br />

From slave to master<br />

Table 68. Status in Slave Transmitter Mode<br />

Status<br />

Code<br />

(SSCS)<br />

A8h<br />

B0h<br />

B8h<br />

Status of the 2-wire bus and<br />

2-wire hardware<br />

Own SLA+R has been<br />

received; ACK has been<br />

returned<br />

Arbitration lost in SLA+R/W as<br />

master; own SLA+R has been<br />

received; ACK has been<br />

returned<br />

<strong>Data</strong> byte in SSDAT has been<br />

transmitted; NOT ACK has<br />

been received<br />

94 <strong>AT89C51ID2</strong><br />

S SLA R A <strong>Data</strong> A <strong>Data</strong> P or S<br />

A<br />

A8h B8h C0h<br />

A<br />

B0h<br />

<strong>Data</strong> A<br />

n<br />

Application Software Response<br />

To/from SSDAT To SSCON<br />

Load data byte or<br />

Load data byte<br />

Load data byte or<br />

Load data byte<br />

Load data byte or<br />

Load data byte<br />

A<br />

C8h<br />

All 1’s<br />

P or S<br />

Any number of data bytes and their associated<br />

acknowledge bits<br />

This number (contained in SSCS) corresponds<br />

to a defined state of the 2-wire bus<br />

STA STO SI AA<br />

X<br />

X<br />

X<br />

X<br />

X<br />

X<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

1<br />

0<br />

1<br />

0<br />

1<br />

Next Action Taken By 2-wire Software<br />

Last data byte will be transmitted and NOT ACK<br />

will be received<br />

<strong>Data</strong> byte will be transmitted and ACK will be<br />

received<br />

Last data byte will be transmitted and NOT ACK<br />

will be received<br />

<strong>Data</strong> byte will be transmitted and ACK will be<br />

received<br />

Last data byte will be transmitted and NOT ACK<br />

will be received<br />

<strong>Data</strong> byte will be transmitted and ACK will be<br />

received<br />

4289A–8051–09/03

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!