Interrupt Problem with CC2430

Discussion in 'Programmer's Corner' started by garanda, Dec 23, 2007.

  1. garanda

    Thread Starter New Member

    Dec 23, 2007
    1
    0
    Hi to all !!!

    I have a problem programming cc2430...

    I initialize interrupts... and it JUST DETECTS THE FIRST ONE ONLY!!!

    After this... the system its like freeze!!

    Can you help me???
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Hi Granada,

    I have separated your thread from the one in which you originally posted it.

    By placing your question in its own thread, it will receive the undivided attention it deserves.

    Introducing a shift in topic within an active thread even if your topic is related to the one under discussion is referred to by the term "hi-jacking". This is something that should be avoided.

    Hopefully you will get a satisfactory answer to your question.

    hgmjr
     
  3. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    If you are programming in assembly language then I can think of two possible explanations.

    1. The stack pointer has not been initialized correctly
    2. The last instrucion in the interrupt service routine is not the "return from interrupt" instruction.

    Check to see it these explain you problem. If not, get back with us and we can look at other possible causes.

    hgmjr
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Another possible explanation would be that the vector table is not being correctly setup for your interrupt service routine.

    One way to check the vector table is to print out a listing of the compiled program and check the vector table to see it the vector is being setup.

    Again, if you are programming in assembly language, it is up to the programmer to populate the vector table.

    hgmjr
     
Loading...