Go to Post I also hate it when I keep seeing this message: "You must spread some Reputation around before giving it to Andy Baker again." - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-01-2005, 04:10
karch karch is offline
In Zip Tie Heaven
AKA: Brian Liu
FRC #1510 (Westview Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Portland
Posts: 16
karch is on a distinguished road
Send a message via AIM to karch
Unhappy Confused about Interrupts

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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 10:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi