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-4.Status Code(TWSR)Prescaler Bitsare 0Status Codes for Slave Receiver ModeStatus of the Two-wire Serial Busand Two-wire Serial InterfaceHardware$60 Own SLA+W has been received;ACK has been returned$68 Arbitration lost in SLA+R/W asmaster; own SLA+W has beenreceived; ACK has been returned$70 General call address has beenreceived; ACK has been returned$78 Arbitration lost in SLA+R/W asmaster; General call address hasbeen received; ACK has beenreturned$80 Previously addressed with ownSLA+W; data has been received;ACK has been returned$88 Previously addressed with ownSLA+W; data has been received;NOT ACK has been returned$90 Previously addressed withgeneral call; data has been received;ACK has been returned$98 Previously addressed withgeneral call; data has beenreceived; NOT ACK has beenreturned$A0 A STOP condition or repeatedSTART condition has beenreceived while still addressed asslaveTo/from TWDRNo TWDR action orNo TWDR actionNo TWDR action orNo TWDR actionNo TWDR action orNo TWDR actionNo TWDR action orNo TWDR actionRead data byte orRead data byteRead data byte orRead data byte orRead data byte orRead data byteRead data byte orRead data byteRead data byte orRead data byte orRead data byte orRead data byteApplication Software ResponseTo TWCRSTA STO TWINT TWEAXXXXXXXXXX0011XXNo action 00011011000000000000000000000000111111111111111111111111010101010101010101010101Next Action Taken by TWI HardwareData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returnedData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returnedData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returnedData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returnedData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returnedSwitched 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 freeData byte will be received and NOT ACK will bereturnedData byte will be received and ACK will be returnedSwitched 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/11196

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

Saved successfully!

Ooh no, something went wrong!