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>Table 20-3.Status Code(TWSR)Prescaler Bitsare 0Status Codes for Master Receiver ModeStatus of the Two-wire SerialBus and Two-wire Serial InterfaceHardware$08 A START condition has beentransmitted$10 A repeated START conditionhas been transmitted$38 Arbitration lost in SLA+R or NOTACK bit$40 SLA+R has been transmitted;ACK has been receivedTo/from TWDRApplication Software ResponseTo TWCRSTA STO TWINT TWEANext Action Taken by TWI HardwareLoad SLA+R 0 0 1 X SLA+R will be transmittedACK or NOT ACK will be receivedLoad SLA+R orLoad SLA+WNo TWDR action orNo TWDR actionNo TWDR action orNo TWDR action000100000000111111XXXX01SLA+R will be transmittedACK or NOT ACK will be receivedSLA+W will be transmittedLogic will switch to masTer Transmitter modeTwo-wire Serial Bus will be released and not addressedslave mode will be enteredA START condition will be transmitted when the busbecomes freeData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returned$48 SLA+R has been transmitted;NOT ACK has been received$50 Data byte has been received;ACK has been returned$58 Data byte has been received;NOT ACK has been returnedNo TWDR action orNo TWDR action orNo TWDR actionRead data byte orRead data byteRead data byte orRead data byte orRead data byte101001010110001111111111XXX01XXXRepeated START will be transmittedSTOP condition will be transmitted and TWSTO Flag willbe resetSTOP condition followed by a START condition will betransmitted and TWSTO Flag will be resetData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returnedRepeated START will be transmittedSTOP condition will be transmitted and TWSTO Flag willbe resetSTOP condition followed by a START condition will betransmitted and TWSTO Flag will be reset1938155C–AVR–02/11

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

Saved successfully!

Ooh no, something went wrong!