This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing GPIO output STATE on ADC SOC (PICCOLO)

Hello,

Could it be possible to change the state of an output on Start Of Conversion (without IT).

I would like to measure accurately time from SOC to EOC.

Thanks for your help.

Olaf

  • Olaf,

    Can you clarify what you mean by "IT" in the first sentence?

    Also, are you wanting to measure the SOC -> EOC conversion process, or the latency from SOC event to actual launch of ADC sampling?  Can you also tell us which Piccolo part you are using?

    -Tommy

  • At least with F28027 the first ADC measurement is ready in 520ns (when AdcRegs.ADCCTL1.bit.INTPULSEPOS = 0;    // Early interupt and AdcRegs.ADCSOC0CTL.bit.ACQPS = 6;       // Sample window is 7 cycles long (6 + 1 clock cycles).). Time per extra subsequent sample is 220ns. Means the conversion time is 520ns + (n-1) * 220ns, where n is the count of adc measurements. The time is measured from SOC to when ISR is executed.

    JHi

  • Olaf,

    For the sake of just measuring the time, you can also consider triggering the SOC with an external GPIO interrupt (XINT).

    -Tommy