![]() |
Interrupt not occuring.
I've spent a couple days looking at this.. and I can't figure out why the one interrupt will not fire. We have 2 of the hall effect sensors being used as wheel encoders. The hardware on both is working fine, thats not the problem. (I swapped the cables around, and got values). The problem I'm having is one of the interrupts will not fire at all.
Code:
void InterruptHandlerLow()I'm out of ideas.. can't see why one works and not the other. (Yes, I know increasing the variable there is probably not a good idea.. but once I get it working, I'm going back to the other encoder functions) |
Re: Interrupt not occuring.
Quote:
Should it be INTCON3bits.INT2IP ? Dunno if this typo is in your code - it seems like it oughtn't compile if that were the case. I checked all of the silly things - it looks like all of the bits are in the correct registers, but again, that's more of an assembly problem, not a C problem - the complier would catch it if it was wrong. |
Re: Interrupt not occuring.
Sorry, that was from me typing it into the box. in the code its what you said.
They still aren't working correctly.. even when it should be. Anything else I can try? |
Re: Interrupt not occuring.
Quote:
|
Re: Interrupt not occuring.
Quote:
|
| All times are GMT -5. The time now is 23:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi