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.

Trouble with interrupts

HI,

iam trying to generate a pns sequence using interrupts

I attached with this post my code during animate.

The yellow cursor stays at 'while' only it doesn't go to interrupt

Iam guessing that the interrupt is nt activated and LED3 which was supposed to turn off is still on too...

the algo was wrking fine bcoz i do get output when i generate pns by polling method but i hv no output wen i hv tried it by interrupt method

can u rectify this problem?

Thankyou

  • Hi Leela,

    Thanks for your post.

    Please keep breakpoint on the interrupt and check whether the control goes there and comes out of the sane.

    If the code breaks & comes out, it means the interrupt is activated.

    Also, try to check the interrupt control registers of dsk6713 using datasheet specifications and please read the register values, there by we shall ensure the particular interrupt got activated or not.

    -----------------------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------------------

    Thanks & regards,

    Sivaraj K

     

  • hi,

    i kept a break-point on the interrupt too but still the yellow marker is at 'while(1);' statement itself

  • Hi Leela,

    Thanks for your post.

    Please make sure, your interrupt control register are set properly in the code with the help of datasheet specifications.

    We shall control interrups using its control & status registers.

    -----------------------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------------------

    Thanks & regards,

    Sivaraj K

  • Hi,

    There are include provided along with the software.

    In that there is a function 'comm_intr()' which activates the board along with enabling global interrupts and activating 'INT_11'. Hence i guess they are activated properly. Its also explained in the book of 'rulph chassaing', which is a suggested book by your website, that the code would work.

    Whats the issue here then?

    Thank you,

    GLKC

  • Hi Leela,

    Thanks for your post.

    If your interrupt is properly activated, as per routine mentioned in the above code, the LED is supposed to turn OFF.

    But in your case, the LED is ON and this shows, the interrupt is not activated,  I guess.

    Please make sure your interrupt is activated.

    Thanks & regards,

    Sivaraj K

    -----------------------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------------------

  • Hi,

    how to check whether the corresponding interrupt is activated or not?

    and is it possible to get latest version of code composer studio updating the older one 3.1v, which i have?

  • Hi Leela,

    Thanks for your post.

    Inorder to check whether the interrupt is activated or not shall be done only by accessing Interrrupt control and status registers and check the status on the same.

    To get the latest version of code composer studio, you shall download the same in the below link:

    http://processors.wiki.ti.com/index.php/Download_CCS#Code_Composer_Studio_Version_5_Downloads

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------
  • Hi Mr.sivaraj

    I did visit the site given by you a long time ago, which redirected me to fill a form, when i press to download.

    I did fill the form and i hv sent it.

    I am waiting for the reply from ur side for the link from about 2 weeks...

    Can u make it happen a little quicker.........

    Thanking you.......

  • Leela,

    Consider filling out the form again, taking care to fill in each item as requested. At the bottom of the form is an email address to send requests for assistance.

    Regards,
    RandyP

  • Hi Leela,

    Thanks for your post.

    I don't have any control to make it happen quicker.

    I apologise for your inconvenience. I advice you to retry the same again since it won't take 2 weeks to provide the download link. Usually, it happens immediately or 1 to 2 working days at worst case.

    Please contact TI customer support for any queries.

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------