I have a counter (in my case "j") that outputs 0-10 to P2OUT by doing P2OUT = (j<<3). When it gets to j = 10 it writes to ADC_Holder[j] where j is supposed to be 10 but instead it writes to ADC_Holder[0] for some reason. I'll be able to send the code tomorrow morning, I have to leave work in a few minutes. But yes, essentially what you're saying is correct. I'll post the setup and code tomorrow.
↧