beautypg.com

4 slave transmitter mode, Atmega128rfa1 – Rainbow Electronics ATmega128RFA1 User Manual

Page 396

background image

396



8266A-MCU Wireless-12/09

ATmega128RFA1

0xA0

A STOP condition or
repeated START
condition has been
received while still
addressed as Slave

No action

0

0


1



1

0

0


0



0

1

1


1



1

0

1


0



1

Switched to the not addressed Slave
mode; no recognition of own SLA or
GCA
Switched to the not addressed Slave
mode; own SLA will be recognized;
GCA will be recognized if TWGCE =
“1”
Switched to the not addressed Slave
mode; no recognition of own SLA or
GCA; a START condition will be
transmitted when the bus becomes
free
Switched to the not addressed Slave
mode; own SLA will be recognized;
GCA will be recognized if TWGCE =
“1”; a START condition will be
transmitted when the bus becomes
free

Figure 25-16. Formats and States in the Slave Receiver Mode

S

SLA

W

A

DATA

A

$60

$80

$88

A

$68

Reception of the own
slave address and one or
more data bytes. All are
acknowledged

Last data byte received
is not acknowledged

Arbitration lost as master
and addressed as slave

Reception of the general call
address and one or more data
bytes

Last data byte received is
not acknowledged

n

From master to slave

From slave to master

Any number of data bytes
and their associated acknowledge bits

This number (contained in TWSR) corresponds
to a defined state of the Two-Wire Serial Bus. The
prescaler bits are zero or masked to zero

P or S

DATA

A

$80

$A0

P or S

A

A

DATA

A

$70

$90

$98

A

$78

P or S

DATA

A

$90

$A0

P or S

A

General Call

Arbitration lost as master and
addressed as slave by general call

DATA

A

25.7.4 Slave Transmitter Mode

In the Slave Transmitter mode, a number of data bytes are transmitted to a Master
Receiver (see

Figure 25-17 on

page 397). All the status codes mentioned in this section

assume that the prescaler bits are zero or are masked to zero.