![]() |
Ganged Interrupt Edge Detection
Do Interrupts on the RB Port (Ganged Interrupts) have any edge detection registry assignments?
|
Re: Ganged Interrupt Edge Detection
Quote:
-Kevin |
Re: Ganged Interrupt Edge Detection
Quote:
-Stephen |
Re: Ganged Interrupt Edge Detection
Quote:
|
Re: Ganged Interrupt Edge Detection
And what registry value outputs that information?
Thanks Stephen |
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. */ |
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.
|
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)
|
Re: Ganged Interrupt Edge Detection
Quote:
|
| All times are GMT -5. The time now is 23:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi