Hello,
I'm trying to read data from an ADC using SPI communication and transfering and ordering the data received using EDMA on an OMAPL137 EVM card. The ADC transmits data of N different channels and then I have to process this data. I'm using Ping-Pong Buffers and continuous communication in the EDMA. But it's not working. I'm hoping you can help me out, so here is my configuration.
PaRAM Set 28 (GPIO Bank 4 Interrupt): ADC signals data is converted, so I write a word into SPIDAT to initiate the SPI transfer
- TCC: 28
- Static: 1
- ACNT: 2
- BCNT: 1
- CCNT: 1
- SRC: outBuffer (has random data of 2 bytes)
- DST: SPIDAT1
- TCC: 60
- TCCHEN: 1
- ITCCHEN: 1
- ACNT: 2
- BCNT: N
- CCNT: 1024 (Number of samples I want to analyze at the same time, size of Ping and Pong Buffers)
- SRC: SPIBUF
- DST: PingBuffer
- DSTBIDX: 2*1024
- SRCBIDX: 0
- DSTCIDX: 2-(N-1)*2*1024
- SRCCIDX: 0
- LINK: PaRAM Set 64 (Pong)
- BCNTRLD: N
- DST: PongBuffer
- LINK: PaRAM Set 65 (Ping)
- DST: PingBuffer
- LINK: PaRAM Set 64 (Pong)
- TCC: 28 (Write to SPIDAT)
- TCCHEN: 0
- ITCCHEN: 1
- ACNT: 2
- BCNT: N
- CCNT: 1
- LINK: PaRAM Set 61 (Reload Parameters)