Beginner in need of help !!


Closed Thread
Results 1 to 40 of 72

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Beginner in need of help !!

    Normally in the interrupt routine this is needed.
    INTCON.1 = 0
    But the data sheet for this chip reads like this is needed.
    INTCON.0 = 0

    Then at the beginning of your code below
    INTCON = %10001000
    add
    IOC.3=1

    I think...
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Jan 2015
    Posts
    45


    Did you find this post helpful? Yes | No

    Default Re: Beginner in need of help !!

    Quote Originally Posted by mackrackit View Post
    Normally in the interrupt routine this is needed.
    INTCON.1 = 0
    But the data sheet for this chip reads like this is needed.
    INTCON.0 = 0

    Then at the beginning of your code below
    INTCON = %10001000
    add
    IOC.3=1

    I think...
    Brilliant, that got it working. I take it IOC.3 = 1 tells the chip when to interrupt & on what pin?

    So INTCON = %10001000 tells it to enable interrupts on pin 3 & IOC.3 = 1 tells it to interrupt on pin 3 change ?

    Thanks for your help,
    Rob

Similar Threads

  1. Beginner help!
    By Recognize in forum General
    Replies: 14
    Last Post: - 26th April 2012, 14:55
  2. pic24 beginner
    By robertpeach in forum General
    Replies: 23
    Last Post: - 13th August 2009, 11:57
  3. need help! to beginner
    By emilhs in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 6th May 2009, 18:44
  4. Beginner at PB
    By alphahr in forum Off Topic
    Replies: 1
    Last Post: - 21st April 2008, 17:43
  5. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29

Members who have read this thread : 1

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