Hello,
I am trying to Sample 2 channels (A3 and A4) on the LaunchPad and use DTC to store the values immediately. The problem I am facing is that these two channels are never stored at the same location in memory. Instead they loop around all locations defined.
Here is my code:
void ADC_Init (void)
{
ADC10CTL0 = SREF_1 + MSC + REF2_5V + REFON + ADC10ON;
ADC10CTL1 = INCH_4 + CONSEQ_3;
ADC10AE0 = 0x18; // Enable Channel 3 and Channel 4
ADC10DTC0 = ADC10CT;
ADC10DTC1 = 0x05;
ADC10SA = 0x0280;
ADC10CTL0 |= ENC + ADC10SC; //Start ADC
}
When I run the code (for Example let's look at Channel 4) the value might be at address 0x0288, then if I run the code and Pause it, it will be at 0x282 (->run -> pause, or a break point) it will be at 0x280 and so on...
I would like to have it up to the point where it stays at the same address at all times.
Thank you.
Viktor.