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.

CCS/TMS320F28027: Problem in entering the interrupt

Part Number: TMS320F28027

Tool/software: Code Composer Studio

Sir/Madam,

I want to change the amplitude of sine wave with the help of ADC. Before the ADC module is configured, the execution sequence is entering the interrupt. After configuring ADC, it is not entering the interrupt. Why??. May I know what may be the problem??. 

  • ADDAGUDURU SURYA KIRAN,

    There is not enough information in your post to make an educated guess as to what may be wrong.

    For example, the following are not clear:

    • What event and module is generating the interrupt?
    • Is the ISR working consistently until you configure the ADC?
    • Have you single-stepped through the ADC configuration to identify the register write that causes your failure?
    • What is the significance of changing a sine wave amplitude vs the interrupt failure?
    • What is the source and destination of the sine wave?

    -Tommy

  • Hi Tommy,
    Thanks for your reply. I answered questions which you have asked in the previous post. If program is required for clear understanding i will paste it.
    1. What event and module is generating the interrupt?
    Interrupt is generated by cpu_timer0.
    2. Is the ISR working consistently until you configure the ADC?
    Yes ISR is working fine till the ADC peripheral is configured. After that it is not entering the ISR.
    3. Have you single-stepped through the ADC configuration to identify the register write that causes your failure?
    I don't know.
    4. What is the significance of changing a sine wave amplitude vs the interrupt failure?
    Actually I am changing the amplitude of the sine wave to vary the pulse width in sine PWM technique. It is not having any relation with
    interrupt failure.
    5. What is the source and destination of the sine wave?
    I created sine wave using array that have 512 elements and sine PWM technique is implemented.
  • ADDAGUDURU SURYA KIRAN,

    It would be a good idea to incrementally remove ADC configuration instructions until you identify the specific instruction that causes the problem.  It will help to guide the debug process.

    You can attach your code in a text file.

    -Tommy

  • Hi Tommy,
    Thanks for the reply by the way sorry for the delayed response. The issue got resolved. The problem is that I enabled SOC but at the end I didn't clear it . So this created an issue. If there is any problem i will create a new post . Thanks once again
  • ADDAGUDURU SURYA KIRAN,

    Thanks for reporting back your solution. It will help others.

    -Tommy