|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Ganged Interrupt Edge Detection
Do Interrupts on the RB Port (Ganged Interrupts) have any edge detection registry assignments?
|
|
#2
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
Quote:
-Kevin |
|
#3
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
Quote:
-Stephen |
|
#4
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
Quote:
|
|
#5
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
And what registry value outputs that information?
Thanks Stephen |
|
#6
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
if you look in the default code in the interrupt handler
Code:
else if (INTCONbits.RBIF && INTCONbits.RBIE) /* DIG I/O 3-6 (RB4, RB5, RB6, or RB7) changed. */
{
int_byte = PORTB; /* You must read or write to PORTB */
INTCONbits.RBIF = 0; /* and clear the interrupt flag */
}
|
|
#7
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
Yea, but I got the impression that in his encoder code, he used the registry value to distinguish which interrupt had fired, not which edge was being detected.
|
|
#8
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
Thats where the 0 or 1 part comes into play. Take a look at the spec sheet and you will see what is in the PORTB register, and also look into bitwise operators (specifically XOR)
|
|
#9
|
||||
|
||||
|
Re: Ganged Interrupt Edge Detection
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rangefinding/object detection | sciguy125 | Electrical | 14 | 13-01-2008 20:36 |
| Collision Detection in Inventor? | jlewellen | Inventor | 2 | 06-01-2005 21:29 |
| Cutting edge... | Eugene | Technical Discussion | 9 | 26-02-2002 02:59 |
| Cutting edge... | Eugene | Technical Discussion | 0 | 22-02-2002 18:27 |
| Steel Edge | AJ Howard | Rules/Strategy | 1 | 18-01-2002 18:52 |