interrupt register


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: interrupt register

    okay so by not setting any port those 2 flags are always turning on intcon.1 and intcon.0 right now I am actually using portb.0 for LCD out so I may just try the 4 through 7 which are unused pins.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: interrupt register

    I'm afraid I don't follow you on that last one....not setting any port?
    I'd move the LCD to other pins in order to free up PortB.0 for your "polled interrupt".
    PortB.4-7 are, like I said, interrupt on change - they will set the interrupt flag (INTCON.0) on both the rising AND falling edge and you need to read or write the port to end the mismatch, then clear the flag. They are trickier to use the INT0.

  3. #3
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: interrupt register

    guess Im confused! so turn nothing on and the flag will set with a high or low on portb.0 it is always active even while in digital mode I will see the flag bit set if checked.

  4. #4
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: interrupt register

    OK it does work skips two sometimes will work on it tomorrow. One little thing don't spend an hour working on this because you forgot to change port pin to input it does not work that way.

    Henrik thanks for all your help

Similar Threads

  1. pic+shift register+lcd
    By eworld in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd October 2012, 05:11
  2. Register Settings
    By Archangel in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th September 2007, 00:28
  3. Tris Register use.
    By tsanders in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2006, 15:12
  4. setting register
    By volcane in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th April 2006, 22:46
  5. How do I to set one bit in a register?
    By jessey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th February 2006, 08:43

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