| Electronic Components Datasheet Search |
|
CS48L32 Datasheet(PDF) 99 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
CS48L32 Datasheet(HTML) 99 Page - Cirrus Logic |
|
99 / 192 page ![]() DS1219F4 Cirrus Logic 99 CS48L32 4.5 DSP Peripheral Control The data-bit format within the dummy cycles is illustrated in Fig. 4-33 through Fig. 4-35 for one-, two-, or four-bit data respectively. In these figures, D7 represents the most-significant bit of SPI2_DUMMY_DATA; D0 represents the least-significant bit. 4.5.5.3 Host Mode In Host Mode, the transmit (master write) and receive (master read) actions are supported by 64-byte data buffers, allowing continuous SPI transfers of up to 4,194,304 data bytes. The SPI master interface is in Host Mode if SPI2_DMA_ EN = 0. The SPI transmit and receive operations are implemented as follows: • Data to be transmitted is managed using the TX data buffer; the application software must load data into the buffer and then commit that data for transmission by writing 1 to SPI2_TX_DONE. The SPI2_TX_REQUEST bit, if set, indicates the buffer is ready for new data. Internal buffering of the TX data enables uninterrupted SPI writes. The TX data buffer is accessed at a single register address: the SPI2_TX_DATA field should be written up to 16 times (corresponding to the TX block length—up to 64 bytes) before writing to SPI2_TX_DONE. • Data received on the interface is managed using the RX data buffer; the SPI2_RX_REQUEST bit, if set, indicates the buffer contains new data. The application software must read the buffer data and then confirm the data has been read by writing 1 to SPI2_RX_DONE. Internal buffering of the RX data enables uninterrupted SPI reads. The RX data buffer is accessed at a single register address: the SPI2_RX_DATA field should be read up to 16 times (corresponding to the RX block length—up to 64 bytes) before writing to SPI2_RX_DONE. The interface may stall (SCK stopped) if TX data is not available or if RX data is not read at the required rate. An interrupt event is triggered under these conditions—see Section 4.5.5.5. Note: The SPI2_STALL_EN bit must be set in all cases. The SPI master divides each SPI transaction into one or more data blocks. The block length—configured using SPI2_TX_ BLOCK_LENGTH and SPI2_RX_BLOCK_LENGTH—is equal to the number of bytes transmitted/received for each TX_ DONE/RX_DONE action. The maximum block length is 64 bytes, corresponding to the size of the TX and RX data buffers. The block interrupt (see Section 4.5.5.5) is triggered following each TX/RX block transferred. The total number of data bytes transferred in each SPI transaction is configured using SPI2_TX_LENGTH and SPI2_RX_ LENGTH. In the case of a Write-then-Read command, both fields must be configured for the respective portions of the SPI transaction. Note that dummy cycles (see Section 4.5.5.2) are not included in the number of data bytes configured by these fields. The order in which the data bytes in the TX/RX buffers are transferred depends on the selected SPI2_WORD_SIZE setting. Correct setting of the word size ensures that each data word is transmitted/received most-significant byte first. Note: The block length (SPI2_TX_BLOCK_LENGTH and SPI2_RX_BLOCK_LENGTH) and the total number of data bytes (SPI2_TX_LENGTH and SPI2_RX_LENGTH) must each represent an integer multiple of the selected word size. For example, if the word size is 32 bits, the block length and transfer length must be a multiple of four bytes. Figure 4-33. Dummy Data—1-bit Mode Figure 4-34. Dummy Data—2-bit Mode Figure 4-35. Dummy Data— 4-bit Mode D7 D6 D5 D4 D3 D2 D1 D0 SS SCK SIO0 D7 D6 D5 D4 D3 D2 D1 D0 SS SCK SIO0 SIO1 D7 D6 D5 D4 D3 D2 D1 D0 SS SCK SIO0 SIO1 SIO2 SIO3 |
|
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 |