12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

<strong>ATmega32A</strong>Figure 20-12. Formats and States in the Master Transmitter ModeMTSuccessfulltransmissionto a slavereceiverS SLA W A DATA A P$08 $18 $28Next transferstarted with arepeated startconditionRSSLA W$10Not acknowledgereceived after theslave addressAPR$20Not acknowledgereceived after a databyteAPMR$30Arbitration lost in slaveaddress or data byteA or AOther mastercontinuesA or AOther mastercontinues$38$38Arbitration lost andaddressed as slaveAOther mastercontinues$68$78 $B0To correspondingstates in slave modeFrom master to slaveDATAAAny number of data bytesand their associated acknowledge bitsFrom slave to masternThis number (contained in TWSR) correspondsto a defined state of the Two-wire Serial Bus. Theprescaler bits are zero or masked to zero20.7.2 Master Receiver ModeIn the Master Receiver mode, a number of data bytes are received from a slave transmitter (seeFigure 20-13). In order to enter a Master mode, a START condition must be transmitted. The formatof the following address packet determines whether Master Transmitter or Master Receivermode is to be entered. If SLA+W is transmitted, MT mode is entered, if SLA+R is transmitted,MR mode is entered. All the status codes mentioned in this section assume that the prescalerbits are zero or are masked to zero.8155C–AVR–02/11191

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

Saved successfully!

Ooh no, something went wrong!