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.

ADC sampling with dsp/bios question

I am trying to basically incorporate the adc_soc example into my sys/bios code for the C28 (Concerto). I have a task created for the analog sampling and do not think I would need interrupts to gather the information. What is the recommended initialization / setup for this case? How should the configuration change for the example code?

Thanks for any help?

Pat

 

  • I don't think you will need interrupts as long as you are willing to wait around for the ADC to complete sampling.  

    You can start some SOCs, wait for them to complete, and then move the samples to a buffer or otherwise act on them. The setup in this case is similar to one using interrupts, but you would disable the interrupt to the PIE and just poll on the interrupt flag to see when the conversions are done. 

    If you can't wait for the sampling to complete, I think you will want to kick off the converter and return from the task, relying on an interrupt to tell you later when they are done. 

  • Will the normal interrupt service work, ie

    interrupt void adc1_isr(void)

    ?

    Thanks for your response,

    Pat

     

  • If your ISR is set to use the interrupt dispatcher, interrupt keyword should not be used in C functions.
    You can check DSP/BIOS WiKi: http://processors.wiki.ti.com/index.php/Before_asking_for_BIOS_support

    Best Regards.