| Electronic Components Datasheet Search |
|
WM0011 Datasheet(PDF) 108 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
WM0011 Datasheet(HTML) 108 Page - Cirrus Logic |
|
108 / 233 page ![]() WM0011 Production Data w PD, Rev 4.1, August 2013 108 I2C_STXDATA – I 2C SLAVE TRANSMIT DATA REGISTER The Slave Transmit Data Register (I2C_STXDATA) holds the byte of data (STXDATA) for transmission in the I 2C Slave Read operation. (The I2C Master initiates the Read operation, and the associated data is transmitted by the I 2C Slave.) The I2C_STXDATA register also controls the ACK response in I 2C Slave Write operations. The STXDATA_FLAG bit indicates when a byte of data has been loaded, ready for transmission. This bit is set to ‘0’ after the byte has been transmitted, indicating that the register has been emptied and is ready for the next data byte to be loaded. The STXDATA_FLAG is a Read-Only bit. Note that the SLV_TX_EMPTIED bit in the I2C_STATUS register (see Table 53) also indicates when the I2C_STXDATA register has been emptied. The associated interrupt may also be enabled. The next data byte for transmission should be written to STXDATA as soon as possible after the SLV_TX_EMPTIED bit is asserted. Note that, in normal I 2C Read operations, the Slave device must have prior knowledge of the number of bytes to be transferred. (This is because the STOP Condition, indicating completion of the transfer, occurs later than the time at which the next data bit would otherwise be transmitted.) For I 2C Slave Write transfers, the I2C_STXDATA register must be written to configure the ACK response for each received data byte. Setting NACK=0 will configure the ‘ACK’ response for the next received data byte. The NACK bit should be written following a matching Device Address (SLV_ADDR_MATCH=1), and following a received data byte (SLV_RX_FILLED=1); writing to the NACK bit configures the ACK status for the next word that is received. Note that the NACK bit must be written before reading the received data byte from I2C_SRXDATA. The Device Address is acknowledged automatically by the I 2C Slave module (if the received address matches the SLV_ADDR field). The NACK bit is configured in advance of each byte received, as described above. Accordingly, there is no requirement to write to the NACK bit after receipt of the last byte of the transfer. Data is only transmitted following receipt of a matching Device Address (SLV_ADDR). The SLV_ADDR_MATCH bit in the I2C_STATUS register indicates when a matching Device Address is detected; an associated interrupt may also be enabled. The SLV_XFER_DONE bit in the I2C_STATUS register indicates when an I 2C Slave transfer has completed. I2C_STXDATA I2C SLAVE TRANSMIT DATA REGISTER Address = 0xF002_0074 Default value = 0x0000_0000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 BITS FIELD NAME S/W ACCESS RESET VALUE FIELD DESCRIPTION 31:10 Reserved 0x00_ 0000 9 STXDATA_FLAG RO 0x0 Indicates when the register has been loaded and is ready for transmission. 0 = Register empty 1 = Register full (ready to transmit) Note that this bit is read only 8 NACK RW 0x0 ACK or NACK configuration for I 2C Slave Write transfers 0 = ACK 1 = NACK 7:0 STXDATA RW 0x00 Slave Data byte for transmission (I 2C read) Table 61 I2C_STXDATA 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 |