Hi all,
I've been working on ADC reading part of a project. My ADC is ADS8332 and DSP is L138. I've been working with DSP/BIOS version 5.41.11.38, BIOS PSP v 1.30.00.05 and CCSv5.1. L138 SPI0 pins and CS pin are directly connected to ADC. Convst and EOC pins are connected to L138's GPIO pins.
I want to use ADS8332 in Auto-Trigger, Auto-Channel mode. Then DSP must read ADC result to two buffers (I want to toggle buffers). My way is setting the timer to change sampling freq, timer drives DMA, DMA reads ADC via SPI. (or adjusting SPI clock to change sampling freq). I need to change sampling freq dynamically.
I've been trying to use BIOS PSP spi driver but I couldn't find detailed document about driver. How to use structures/registers? I couldn't change CS timing. I can't control wdelay, etc. I checked doc folder under PSP, technical manual of L138 (still I can't understand all the structures/registers on SPI driver as well).
- I couldn't configure L138 SPI as I wish.
- How can I use timer to drive EDMA (should I hack the PSP SPI driver) ?
- Which way is better to adjust sampling freq, setting timer or SPI timing? (I guess it will not be easy to use SPI with 42 CLK or something like that)
Thanks in advance
Serdar