I am working on a TMS570LS1224 processor with HalCoGen 3.06.00, and I'm experiencing a strange jitter between the two groups on ADC1.
I have ADC1 set up so that both GROUP1 and GROUP2 trigger off ADC1EVENT signal and take a single sample per trigger event. I am not using DMA. The ISR / notification handles moving data from adc->GxBUF[n] to my storage buffer.
This is mostly working fine except intermittently I will see the data buffer for GROUP1 contain the exact data that is in GROUP2's buffer at that data point. Please see the attached graph, in which GROUP1 is in blue and GROUP2 is in red.
As you can see, GROUP1's data at point N spikes to exactly GROUP2's at point N for one measurement point and then resumes course at point N+1.
This is odd because GROUP1 and GROUP2 have isolated data buffers, or so I'd assume. GROUP1 gets its data from adc->GxBUF[1].BUF0 and GROUP2 gets its data from adc->GxBUF[2].BUF0. GROUP1 and GROUP2 have independent ISRs; I'm using HalCoGen's API functions adc1Group1Interrupt() and adc1Group2Interrupt() so there doesn't seem to be any immediately obvious way that these buffers could get mixed.
Is there something I'm missing? Thanks in advance for your help.
Regards,
Joe Shidle