|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
why is it that in setting up priority levels for interrupts, the parent intcon number changes:
INTCON3bits.INT2IP = 0; // Pin 1 INTCON2bits.INT3IP = 0; // Pin 2 INTCON2bits.RBIP = 0; // Pins 3, 4, 5, 6 but in setting up edge select, pin 1 and pin 2 are both intcon2bits: INTCON2bits.INTEDG2 = 1; // Pin 1 INTCON2bits.INTEDG3 = 1; // Pin 2 and then when setting interrupt flags, they both turn into 3s? INTCON3bits.INT2IF = 0; // Pin 1 INTCON3bits.INT3IF = 0; // Pin 2 INTCONbits.RBIF = 0; // Pins 3, 4, 5, 6 (not to mention pins 3,4,5,6 going from 2 to no number) i got this code from the interrupts_for_dummies pdf in the white pages, so i'm assuming that this is correct code. is it all just arbitrary, or what? what am i missing here? ![]() Last edited by karch : 29-01-2005 at 04:12. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| White Paper Discuss: Interrupts for Dummies | CD47-Bot | Extra Discussion | 5 | 29-01-2005 03:24 |
| FYI about using PWM 13-16 with interrupts | cabbagekid2 | Programming | 6 | 22-01-2005 00:54 |
| INT2 and INT3 interrupts not working | Mercutio | Programming | 4 | 01-02-2004 13:27 |
| Problem with interrupts on the PIC | Mike Betts | Programming | 7 | 16-12-2003 21:26 |
| Finding myself quite confused... | Alphawolf829 | Robotics Education and Curriculum | 8 | 16-12-2002 20:19 |