PIC16F690 Inputs

Thread Starter

PaulEscher

Joined May 30, 2011
17
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?

Thanks,
Paul
 

Thread Starter

PaulEscher

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

The pic18's can have multiple interrupts.
 

Dalaran

Joined Dec 3, 2009
168
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.
 
Top