| Electronic Components Datasheet Search |
|
WM0011 Datasheet(PDF) 161 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
WM0011 Datasheet(HTML) 161 Page - Cirrus Logic |
|
161 / 233 page ![]() WM0011 Production Data w PD, Rev 4.1, August 2013 161 MISO/MOSI (DATA) CONFIGURATION The SPI_CFG configuration register contains control parameters for the MOSI/MISO data. The BIT_ORDER register selects whether data is transmitted MSB-first or LSB-first. The WL_1 [1:0] and WL_2 fields select the data word length. The word length can be 8, 16, 24, 32 or 64 bits. The transmission of WL bits is one “transfer”. The SPI Slave Select (SPISS ¯¯¯¯¯) remains asserted for the entire word transfer length. Note that 64-bit mode (WL_2=1) is only valid for DMA transfers. SPISS (SLAVE SELECT) PROTOCOL The SPI module supports two different SPISS ¯¯¯¯¯ protocols. These are the ‘Single-Word’ transfer mode and the ‘Multiple Word’ transfer modes. In Master mode, the SPI_MT_ENA bit controls whether the SPISS ¯¯¯¯¯ signal de-asserts between each word transfer (single-word transfers), remains asserted over multiple word transfers. Setting SPI_MT_ENA=1 selects the function of the SPI module continually asserting SPISS ¯¯¯¯¯ over multiple word transfers. When SPI_MT_ENA=0, the SPI module will treat each data transfer as a separate sequence of SPISS ¯¯¯¯¯ assertion, SPISCLK/MOSI data transfer, SPISS ¯¯¯¯¯ de-assertion. Note that, in Slave mode, there is no unique concept of Multiple-Transfer mode (multiple data transfers per single SPISS ¯¯¯¯¯ assertion). The SPI module will simply accommodate whatever is presented on the SPI bus, and move a data word as soon as all the bits are received, regardless of whether SPISS ¯¯¯¯¯ is de-asserted between words. When ‘Multiple Word’ transfer mode is selected in Master mode, the SPISS ¯¯¯¯¯ signal will assert upon the first data transmission (same as in single-word mode). After completion of the first data word transmission, SPISS ¯¯¯¯¯ remains asserted. Subsequent writes to the SPI_DAT register simply perform further data word transmissions (SPISCLK/MOSI data transfers), and the SPI module remains in this state indefinitely. When ‘Multiple Word’ transfer mode is selected in Master mode, there are three methods by which the SPISS ¯¯¯¯¯ line may be de-asserted: 1. De-select Multiple Transfer mode (set SPI_MT_ENA=0). Slave Select (SPISS ¯¯¯¯¯) is de- asserted and the Master Mode state machine is returned to ‘Idle’. Subsequent SPI transfers will be single-word, unless the SPI_MT_ENA bit is once again set to ‘1’. 2. Re-arm the Multiple Transfer mode by writing a ‘1’ to SPI_MT_IDLE. Slave Select (SPISS ¯¯¯¯¯) is de-asserted and the master mode state machine is returned to ‘Idle’. This effectively does the same thing as (1) above, but without ever leaving the Multiple Transfer mode. 3. Select automatic re-arming of the Multiple Transfer mode each time the transfer count (SPI_BP_CNT) is reached. This is valid for byte-packing mode only, and must always be selected when Multiple Transfer mode and Byte-Packing modes are both enabled. This effectively does the same thing as (2) above, but without having to write to the SPI_CTRL register to de-assert SPISS ¯¯¯¯¯. This function is controlled via register bit BP_MT_ENA. Note that the request to exit the Multiple Transfer mode is queued, and not immediate. If there is a current transfer in progress, or more outgoing data queued, then SPISS ¯¯¯¯¯ will remain asserted until the outgoing data transmission has completed. The request to exit or re-arm Multiple Transfer mode will occur after transmission of the queued data has completed. The Single-Word transfer protocol is illustrated in Figure 35 and Figure 36. The Multiple-Word transfer protocol is illustrated in Figure 37. |
|
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 |