| Electronic Components Datasheet Search |
|
WM0011 Datasheet(PDF) 209 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
WM0011 Datasheet(HTML) 209 Page - Cirrus Logic |
|
209 / 233 page ![]() WM0011 Production Data w PD, Rev 4.1, August 2013 209 DMA PROGRAM EXAMPLES EXAMPLE 1: PERIPHERAL TRANSFERS USING DMA This example describes a mechanism to transfer 32-bit data words from an I/O peripheral into memory. It is assumed that 64 words (256 bytes) are to be transferred from the AIF1 module into memory. The data words will be read from a fixed address in the AIF1 module; the AIF_RX_DAT register address for AIF1 is 0xF070_0000. The data will be written to a 256-word block of System RAM memory, starting at 0x6000_0000. The AIF1 RX path requires the use of DMA channel 6. The handshake configuration must be Source Data Phase ACK. (These requirements are described in Table 131.) The required register settings for this transfer are noted below. Note that the default setting is assumed for any register fields that are not quoted here. REGISTER / FIELD NAME VALUE DESCRIPTION DMA_GLB_CTRL DMA_ENA 0x1 Enables the DMA module DMA_PRI_SRC_6 DMA_PRI_SRC_6 0xF070_0000 Selects AIF_RX_DAT as the source DMA_PRI_DST_6 DMA_PRI_DST_6 0x6000_0000 Selects 0x6000_0000 as the destination DMA_PRI_LEN_6 DMA_PRI_LEN_6 0x100 Selects a transfer length of 256 bytes DMA_CTRL1_6 DMA_DST_HSIZE 0x2 Selects 32-bit word size DMA_SRC_HSIZE 0x2 Selects 32-bit word size DMA_SRC_ACK_CTRL 0x1 Selects Source Address ACK DMA_ADP_ACK_CTRL 0x0 Selects Data Phase ACK DMA_DST_NINC 0x0 Selects Incrementing Destination addresses DMA_SRC_NINC 0x1 Selects Non-Incrementing Source addresses DMA_SOFT_XFER_ENA 0x0 Selects Hardware handshake (ACK) control DMA_CH_ENA 0x1 Enables the DMA Channel Note that the default setting is assumed for any DMA Controller register fields that are not quoted. Table 160 DMA Example 1 The register settings described in Table 160 will initiate a 64-word (256 byte) transfer from the AIF1 module into a block of memory. The DMA channel is automatically disabled (DMA_CH_ENA=0) on completion of the transfer. On completion, the DMA controller will also assert bit [6] in the DMA Terminal Count Status (DMA_TC_STS) register, indicating that the Terminal Count for DMA channel 6 has been reached. When unmasked and enabled, this bit can be used to signal an Interrupt Event to the CCM module. Note that the Terminal Count status bit should be reset (by writing ‘1’ to the respective bit) in order to allow subsequent DMA transfers to be signalled. |
|
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 |