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.

Can ADC be enabled used without Interrupt mode?

Other Parts Discussed in Thread: PROFIBUS, AM3359, SYSBIOS

Hi,

I am using CCSv6.1.1, isdkv2.1.1.2. I am working with ICE AM3359. I was able to build ADC project in RTSC platform. I am trying to read analog values through ADC and transmit through profibus. I could integrate the two projects i.e. ADC in RTSC platform and Profibus slave project. Program consists of  timer task(priority 10), profibus task(priority 3) and ADC task with priority 2. Timer and profibus tasks are invoked and also the control is transferred to ADC task, but it is getting stuck in ISR as it is not getting invoked.

Is there a way to enable adc without inerrupts?

Any help is appreciated.

Regards

Rohan 

  • Rohan

    As you noticed in an earlier thread there is an example in Sysbios Industrial SDK 1.1.x that used poling to monitor the ADC status and access the data. That version of the SDK was based upon an earlier version of starterware. The example could be ported to ISDK 2.1.x if necessary. However it may be a more direct solution to resolve the interrupt issue you are encountering.  A good place to start is to review the ADC registers and verify that the interrupts are enabled and the FIFO0 THRESHOLD is set when the FIFO threshold count is reached.

    Base address  0x44E0_D000

    Offset

    2Ch IRQENABLE_SET

    30h IRQENABLE_CLR

    28h IRQSTATUS Register

    E8h FIFO0THRESHOLD Register

    F4h FIFO1THRESHOLD Register (may not be used)

  • Hi David,

    Sorry for delayed response. I could figure out the problem, as I defined the ISR two times, so there was a conflict between both. Now its working properly. But is it possible to use ADC without interrupt mode? As in RTSC platform, I had include Hwi for ADC interrupt. Can it be achieved without that?

    Thanks & Regards

    Rohan