This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

My external inteerupt not working

i m using EINT 2 on port P0.a5 on LPC 2148

here is my code ..can anyone guide me pls..

        PINSEL0 = 0x80000000;                   //Select P0.7 for EINT2
                VICIntSelect = 0x00;
                VICVectCntl1 = 0x20 | 0x10;      //EINT 2 is selected
                VICVectAddr1 = (unsigned long) intr2_srv;
                VICIntEnable = 1<<0x10;
                EXTMODE = 0x04;
                EXTPOLAR = 0x04;  // HIGH Level

Parents
  • Remember: many parts of the world are still asleep at this time!

    After only 1 hour you're getting impatient already?

    This is a discussion forum - not a free consultancy service!
    And, if you want an express consultancy service, you must expect to pay a premium for that!

    Rather than just nagging, it would be more helpful if you would actually supply some useful information about your problem.

    You have just said that it "doesn't work" - which is like saying, "my car doesn't work - what's wrong with it"

    What debugging have you done to find out what's actually happening?

    Have you studied the manufacturer's documentation for guidance?

    et, etc,...

    www.8052.com/.../120313

Reply
  • Remember: many parts of the world are still asleep at this time!

    After only 1 hour you're getting impatient already?

    This is a discussion forum - not a free consultancy service!
    And, if you want an express consultancy service, you must expect to pay a premium for that!

    Rather than just nagging, it would be more helpful if you would actually supply some useful information about your problem.

    You have just said that it "doesn't work" - which is like saying, "my car doesn't work - what's wrong with it"

    What debugging have you done to find out what's actually happening?

    Have you studied the manufacturer's documentation for guidance?

    et, etc,...

    www.8052.com/.../120313

Children