Can I have interupts on any pin ?


Results 1 to 22 of 22

Threaded View

  1. #14
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aratti View Post
    No, internal pullups applys only to portB.

    Al.
    Some other PICs have pull-ups on PORTA, too. I was not aware of this fact until recently.
    Edit: For example, 16F630.

    Quote Originally Posted by Bonxy View Post
    .... (and 2 pins could fire at the same time....
    What does it matter?
    If one or the other interrupts, you will get into interrupt routine anyway whether two interrupts occur at the same time or not (which I think is very close to impossible !)

    While you are in interrupt routine, check the status of all pins, then act based on each of their tasks.

    Something like >
    Code:
    RB0_Int: 'we are now in interrupt routine.
    A = 0
    B = 0
    C = 0
    D = 0
    ..
    ....
    .......
    IF Pin1 = 0 THEN A = 1 ' Pin1 seems to be interrupted.
    IF Pin2 = 0 THEN B = 3  'Ohh, Pin2 also seems to interrupted.
    ....
    .......
    Last edited by sayzer; - 12th March 2010 at 08:56.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17: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