CPU TMS320F2837xD
I'm trying to configure an ADC module to perform the following,
- 12-bit operation
- use 3 channels only - "configured 3 SOC - last one triggers interrupt to read results"
- Use timer 2 to trigger ADC conversion at a rate of @1MHz - pretty fast (that is why only 3 channels per module due to 3.5 MSPS - CPU limitation)
I noticed that when I run the ADC at this frequency, the adc result for modules C and D start working and then they stop updating (viewing variable values with debugger) while A and B always update ... my guess is that it has to do with the speed .. because when I reduce it (500KHz), everything works fine
for reference I choose the following settings,
AdcaRegs.ADCSOC0CTL.bit.ACQPS = 23; // Acq Window = 120nsec/5nsec (200MHz) = 24 cycles -1 (counts 0) -> 23
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1; // waits for conversion to be completed in order to interrupt
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; // 200Mhz/4 = 50Mhz -> range should be within 5-50Mhz
any Ideas of what could be my issue ?
Thanks
Dorian~