A basic interrupt question: plz help


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    29

    Default A basic interrupt question: plz help

    ON INTERRUPT GOTO myint ' Interrupt handler is myint
    INTCON = %10010000 ' Enable RB0 interrupt



    hi guys!

    well! im new to these interrupts. The above two lines i have copied from MicroCode help section. I want to know the meaning of this line

    INTCON = %10010000 ' Enable RB0 interrupt

    I know that portB.0 is the pin that has the interrrupt facility in it in PIC16F84A. Im using the same microntroller, but what im not getting that if first 1 in the above line is for B0 then why there is a 1 another time. Or simply
    please explain me the meanings behind the above line.
    can i change the above statement according to my choice or is this compulsory to write it in the same way??


    please help me as soon as possible as i have a pretty short time left for my project

    i shall be thankful to u for this act of kindness.

    take carez
    LETS MOVE TOWARDS SOMETHING PRACTICAL---

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    If you haven't already done so, please Download the DATASHEET for the PIC16F84A from the Microchip Website. You will find the full definition of INTCON and what each Bit means within. Make your selection as to your individual requirements thereafter.

Similar Threads

  1. Interrupt question
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th November 2009, 20:12
  2. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 18:14
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts