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.

Branching to subroutine on ADC EOC in TMS320F28335

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Dear All

 

I am working on speed torque control of dc motor using TMS320F28335.

 

 

Now once the signals fed to adc are sampled and made digital i need those signals for some other calculation in a subroutine. so the program counter should shift to the subroutine once a End of Conversion bit is set.

What is the instruction that does that?

 

Suppose subroutine name is 'subroutine_isr()'

 

Now in this subroutine the compare register value is calculated for the EPwm2 and EPwm3.

Please help me...

 

Thanks in advance...

Regards

  • Umar,

    On the F28335, the ADC can be configured to generate an interrupt at the end of a sequence of conversions.  I would recommend taking a look at the examples for the F2833x within controlSUITE.  Once controlSUITE is installed you can find these examples at:
    C:\TI\controlSUITE\device_support\f2833x\

    The example most similar to what you're looking for is adc_soc

    In most of our software (such as our open source motor control projects), we instead use the PWM to generate our interrupts and work out the timing such that we know the ADC will be finished converting.


    Thank you,
    Brett