Specifications

120
3706C–MICRO–2/11
AT89LP3240/6440
Figure 18-12. Format and States in Master Receiver Mode
18.6.3 Slave Receiver Mode
In the Slave Receiver mode, a number of data bytes are received from a master transmitter. To
initiate the Slave Receiver mode, TWAR and TWCR must be initialized as follows:
The upper seven b its are the address to which the Two-wire Serial Interface will respond when
addressed by a master. If the LSB is s
et, the TWI will respond to the general call address (00h),
otherwise it will ignore the general call address.:
S SLA R A DATA A
08h
40h 50h
SLA R
10h
AP
48h
A or A
38h
Other master
continues
38h
Other master
continues
W
A
68h
Other master
continues
78h B0h
To corresponding
states in slave mode
MR
MT
Successfull
reception
from a slave
receiver
Next transfer
started with a
repeated start
condition
Not acknowledge
received after the
slave address
Arbitration lost in slave
address or data byte
Arbitration lost and
addressed as slave
DATA A
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
PDATA A
58h
A
R
S
TWAR TWA6 TWA5 TWA4 TWA3 TWA2 TWA1 TWA0 GC
ValueDevices own Slave Address X
TWCR
–TWENSTA S TO TWIF AA
Value
X10001X X