PIC16F690 Inputs

Discussion in 'The Projects Forum' started by PaulEscher, Jun 4, 2011.

  1. PaulEscher

    Thread Starter New Member

    May 30, 2011
    I've got most of the labs working, but I'm curious what the difference is between RA2 (IOC/INT) and RA1 (IOC) are. (And the other RA* IOC's are)

    I need 3 switches to generate Interrupts. I have no problem catching them in a single routine.

    What I don't understand is the difference between external interrupts and regular interrupts.

    Can I have 3 switches?
    If so how?

  2. PaulEscher

    Thread Starter New Member

    May 30, 2011
    Never mind. I did some more research and the pic16's only have one external interrupt.

    The pic18's can have multiple interrupts.
  3. Dalaran

    Senior Member

    Dec 3, 2009
    Good day. Actually all of PORTA and 4pins of PORTB can be individually enabled as an "interrupt on change" on the PIC16F690. Basically when enabled and a high-low or low-high pulse is seen on the pin the associated interrupt flag gets set.

    Check out section 4 (additonal pin features) and section 14 (interrupts) for detail around the registers and flags.

    I use the PIC16F886 and one of the pins can be configured so that it only sets the flag on a high-low or low-high transistion only, not both. Not sure if this chip has that ability.