Mixing PortB interupts


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77

    Question Mixing PortB interupts

    Dear PIC'ers,

    I am building a project that uses an optical encoder and 3 position sensors.
    The encoder needs to interrupt the main program every time it pulses but the sensors also need their own interrupt but with another routine.

    I am using Darrel Taylor's instant interrupts and wonder if it is possible to use the PORTB change interrupt that goes to one routine and the INT (PORTB.0) interrupt to go to another without PORTB change interrupts seeing PORTB.0 as one of it's pins changing.

    Long story short, exclude Bit 0 of PortB when using PORTB change interrupt?

    Regards

    Chris Rhomberg

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Chris,

    PortB change interrupts usually refer to bits 4-7 only, which means you will be okay (from an excluding bit 0 point of view). What pic are you using?
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77


    Did you find this post helpful? Yes | No

    Default PORT B interrupts

    I am using PIC16F877A but I donīt really want to use PORTB bits 6 & 7 as I like to use them for programming the PIC while powered up and plugged in.
    Is there another PIC which fits in the same range that has different interrupt or programming pins?

    Regards

    Chris

Similar Threads

  1. PICs can do more if use others than delays instructions
    By hardcore in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th February 2010, 19:52
  2. MY FIRST scrolling 8X8 LED
    By earltyso in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2008, 16:23
  3. shifting problem
    By helmut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st August 2007, 06:11
  4. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10
  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 : 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