09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> Serial peripheral interface (SPI)<br />

change. If the synchronization is lost, to recover from this state and resynchronize the<br />

external master device with the I2S slave device, follow the steps below:<br />

1. Disable the I2S<br />

2. Re-enable it when the correct level is detected on the WS line (WS line is high in I2S<br />

mode, or low for MSB- or LSB-justified or PCM modes).<br />

Desynchronization between the master and slave device may be due to noisy environment<br />

on the SCK communication clock or on the WS frame synchronization line. An error interrupt<br />

can be generated if the ERRIE bit is set. The desynchronization flag (FRE) is cleared by<br />

software when the status register is read.<br />

27.4.9 I 2 S interrupts<br />

Table 124 provides the list of I 2 S interrupts.<br />

Table 124. I 2 S interrupt requests<br />

27.4.10 DMA features<br />

Interrupt event Event flag Enable Control bit<br />

Transmit buffer empty flag TXE TXEIE<br />

Receive buffer not empty flag RXNE RXNEIE<br />

Overrun error OVR<br />

Underrun error UDR<br />

ERRIE<br />

Frame error flag FRE ERRIE<br />

DMA is working in exactly the same way as for the SPI mode. There is no difference on the<br />

I 2 S. Only the CRC feature is not available in I 2 S mode since there is no data transfer<br />

protection system.<br />

Doc ID 018909 Rev 3 832/1416

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

Saved successfully!

Ooh no, something went wrong!