| Electronic Components Datasheet Search |
|
ADUC7021 Datasheet(PDF) 68 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADUC7021 Datasheet(HTML) 68 Page - Analog Devices |
|
68 / 92 page ![]() ADuC7019/20/21/22/24/25/26/27 Rev. A | Page 68 of 92 I2C Registers The I2C peripheral interface consists of 18 MMRs, which are discussed in this section. I2CxMSTA Registers Name Address Default Value Access I2C0MSTA 0xFFFF0800 0x00 R I2C1MSTA 0xFFFF0900 0x00 R I2CxMSTA are status registers for the master channel. Table 60. I2C0MSTA MMR Bit Descriptions Bit Description 7 Master Transmit FIFO Flush. Set by user to flush the master Tx FIFO. Cleared automatically once the master Tx FIFO is flushed. This bit also flushes the slave receive FIFO. 6 Master Busy. Set automatically if the master is busy. Cleared automatically. 5 Arbitration Loss. Set in multimaster mode if another master has the bus. Cleared when the bus becomes available. 4 No ACK. Set automatically if there is no acknowledge of the address by the slave device. Cleared automatically by reading the I2C0MSTA register. 3 Master Receive IRQ. Set after receiving data. Cleared automatically by reading the I2C0MRX register. 2 Master Transmit IRQ. Set at the end of a transmission. Cleared automatically by writing to the I2C0MTX register. 1 Master Transmit FIFO Underflow. Set automatically if the master transmit FIFO is underflowing. Cleared automatically by writing to the I2C0MTX register. 0 Master TX FIFO Empty. Set automatically if the master transmit FIFO is empty. Cleared automatically by writing to the I2C0MTX register. I2CxSSTA Registers Name Address Default Value Access I2C0SSTA 0xFFFF0804 0x01 R I2C1SSTA 0xFFFF0904 0x01 R I2CxSSTA are status registers for the slave channel. Table 61. I2C0SSTA MMR Bit Descriptions Bit Value Description 31:15 Reserved. These bits should be written as 0. 14 START Decode Bit. Set by hardware if the device receives a valid START + matching address. Cleared by an I2C STOP condition or an I2C general call reset. 13 Repeated START Decode Bit. Set by hardware if the device receives a valid repeated START + matching address. Cleared by an I2C STOP condition, a read of the I2CSSTA register, or an I2C general call reset. 12:11 ID Decode Bits. 00 Received Address Natched ID Register 0. 01 Received Address Matched ID Register 1. 10 Received Address Matched ID Register 2. 11 Received Address Matched ID Register 3. 10 Stop After Start and Matching Address Interrupt. Set by hardware if the slave device receives an I2C STOP condition after a previous I2C START condition and matching address. Cleared by a read of the I2C0SSTA register. 9:8 General Call ID. 00 No General Call. 01 General Call Reset and Program Address. 10 General Call Program Address. 11 General Call Matching Alternative ID. 7 General Call Interrupt. Set if the slave device receives a general call of any type. Cleared by setting Bit 8 of the I2CxCFG register. If it is a general call reset, then all registers are at their default values. If it is a hardware general call, then the Rx FIFO holds the second byte of the general call. This is similar to the I2C0ALT register (unless it is a general call to reprogram the device address). For more details, see I2C bus specification, version 2.1, Jan. 2000. 6 Slave Busy. Set automatically if the slave is busy. Cleared automatically. 5 No ACK. Set if master asking for data and no data is available. Cleared automatically by reading the I2C0SSTA register. 4 Slave Receive FIFO Overflow. Set automatically if the slave receive FIFO is overflowing. Cleared automatically by reading the I2C0SSTA register. 3 Slave Receive IRQ. Set after receiving data. Cleared automatically by reading the I2C0SRX register or flushing the FIFO. 2 Slave Transmit IRQ. Set at the end of a trans- mission. Cleared automatically by writing to the I2C0STX register. 1 Slave Transmit FIFO Underflow. Set automatically if the slave transmit FIFO is underflowing. Cleared automatically by writing to the I2C0SSTA MMR. 0 Slave Transmit FIFO Empty. Set automatically if the slave transmit FIFO is empty. Cleared automatically by writing to the I2C0STX register. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |