Hi all,
I am using MSP430FG4618 Experimenter board with CCS. I have been able to sample a signal, and then use DMA to send it to the DAC to read it right back out, this is pretty much what I need to do at the moment. However, I have some questions about configuring the ADC, on the DAC operation, and on using DMA.
I am trying to configure an ADC12 sample at 1kSample/second. To do this, I think I need to either use clock dividers, (since Aclock is at 32kHz, AClock/32 should do it) and set this as the signal that initaites a sample, I just do not know how to configure the ADC to use this as the sampling trigger. Does the clock used to trigger a sample have to be the same one as the clock controlling the 13 cycles required for conversion? if not, how do I configure it?
Basically I want the following
1K/samples/sec
High conversion frequency
The next problem I need to solve is that I need to send this information to memory, build up a given amount, say 100 samples, and then send it to the DAC. However, I need to continue taking ADC samples while the first set of data is being sent to the DAC. So I "think" I need a sort of "rolling memory" field where the data is sent. I want to use "bulk sends" to the DAC, so this transfer needs to occur as rapidly as possible. I also need to ensure that the DAC does not run out of data to convert to analog. IE, I need the DAC to have the same conversion speed as the ADC does. Any advice on setting up DMA/DAC to do this?
Thanks
Paul