12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>Table 20-5.Status Code(TWSR)Prescaler Bitsare 0Status Codes for Slave Transmitter ModeStatus of the Two-wire Serial Busand Two-wire Serial InterfaceHardware$A8 Own SLA+R has been received;ACK has been returned$B0 Arbitration lost in SLA+R/W asmaster; own SLA+R has beenreceived; ACK has been returned$B8 Data byte in TWDR has beentransmitted; ACK has beenreceived$C0 Data byte in TWDR has beentransmitted; NOT ACK has beenreceived$C8 Last data byte in TWDR has beentransmitted (TWEA = “0”); ACKhas been receivedTo/from TWDRLoad data byte orLoad data byteLoad data byte orLoad data byteLoad data byte orLoad data byteNo TWDR action orNo TWDR action orNo TWDR action orNo TWDR actionNo TWDR action orNo TWDR action orNo TWDR action orNo TWDR actionApplication Software ResponseTo TWCRSTA STO TWINT TWEAXXXXXX00110011000000000000001111111111111101010101010101Next Action Taken by TWI HardwareLast data byte will be transmitted and NOT ACK shouldbe receivedData byte will be transmitted and ACK should be receivedLast data byte will be transmitted and NOT ACK shouldbe receivedData byte will be transmitted and ACK should be receivedLast data byte will be transmitted and NOT ACK shouldbe receivedData byte will be transmitted and ACK should be receivedSwitched to the not addressed Slave mode;no recognition of own SLA or GCASwitched 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 busbecomes freeSwitched 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 busbecomes freeSwitched to the not addressed Slave mode;no recognition of own SLA or GCASwitched 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 busbecomes freeSwitched 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 busbecomes free8155C–AVR–02/11199

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

Saved successfully!

Ooh no, something went wrong!