I had developed code that samples ADC data using timer trigger and the DMA controller writing data to a buffer. This all works great with one exception; I will get incorrect data (0x0FF or 0x300). I setup the trigger to sample every 8ms in the pulse sample mode. I would have never noticed the issue except we should never get this value with the input we are supplying. When it fails it is always the same data pattern (0x0FF or 0x300). I also tried 8bit conversion but the data is 0x3F or 0xC0.
I am using MODOSC at 5MHz and the ADC10SHT_2 and ADC10DIV_0. I have also checked for other errors (ADC10TOVIFG and ADC10OVIFG) but this never occurs. The failure rate is only ~8 in a 24 hour period but this data is used for ECG and is unacceptable.
Any input would be appreciated.