| Electronic Components Datasheet Search |
|
WM0011 Datasheet(PDF) 159 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
WM0011 Datasheet(HTML) 159 Page - Cirrus Logic |
|
159 / 233 page ![]() WM0011 Production Data w PD, Rev 4.1, August 2013 159 SERIAL PERIPHERAL INTERFACE (SPI) MODULE BASE ADDRESS 0xF030_0000 SPI FEATURES Configurable Data/Clock phase and Clock polarity Data word length can be on 8, 16, 24, 32 or 64 bits Selectable data bit ordering (LSB first or MSB first) Polarity selection for the Slave Select (SPISS ¯¯¯¯¯) signal Programmable soft reset capability Selectable “auto-retransmit” mode Selectable “early-tx-data transition” mode Byte-packing options Multiple Transfer mode allowing multiple data words per SPISS ¯¯¯¯¯ assertion Master Mode Slave Select “shaping” (configurable SPISS ¯¯¯¯¯ set-up, hold and wait times) SPI MASTER MODE The SPI_MISO pin direction is Input. The SPISS ¯¯¯¯¯, SPISCLK, and SPIMOSI pins are driven as Outputs, but only during an actual data transfer. After a master data transfer has completed, these signals are tri-stated. This allows for lower power usage, and for usage in a multi-master SPI scenario. Note that the above behaviour can be adjusted using the SPI_MM_MODE register (see Table 121), which allows constant driving of these master mode output signals whenever the SPI block is enabled. The SPI Master mode is selected by setting SPI_MODE=0. The user should configure the desired SPISCLK, SPISS ¯¯¯¯¯, and MISO/MOSI parameters, and lastly set SPI_ENA=1 to enable the SPI module. The SPI module will then be in Master mode, and will initiate a SPI data transfer when data is written to the SPI_DAT data register. The outgoing SPI_DAT data is double-buffered, allowing for the queuing of the “next word” to be transferred, while the current word is being shifted out. SPI SLAVE MODE The SPISS ¯¯¯¯¯, SPISCK, and SPIMOSI pin direction is input. The SPIMISO pin is driven as Output, but only during an actual data transfer. After a slave data transfer has completed (i.e. de-assertion of SPISS ¯¯¯¯¯ by the master), this signal is tri-stated. This allows for usage in a multi-slave SPI scenario. The SPI Slave mode is selected by setting SPI_MODE=1. The user should configure the desired SPISCLK, SPISS ¯¯¯¯¯, and MISO/MOSI parameters, and lastly set SPI_ENA=1 to enable the SPI module. The SPI module will then be in Slave mode, and will wait for a SPI data transfer from an external master. Once initiated, the incoming data bits are shifted in until one word is received. The incoming data word is placed in a holding register, allowing for the reception of the serial bits of a “new current word”, while the previous word is being queued for transfer to the AHB system side. SPISCLK (CLOCK) CONFIGURATION In SPI Master mode, the SPI Clock Divisor register SPI_SCLKDIV is used to control the frequency of SPISCLK. The register stores a 16-bit parameter that supplies the initial value for the clock generator counter. The derived frequency for SPISCLK is: [AHBCLK frequency] / (SPI_SCLKDIV+1) * 2 In SPI Master mode, the maximum supported SPISCLK frequency is [AHBCLK frequency] / 8. |
|
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 |