![]() |
Interrupt Gear Tooth Sensors
Our team is working on using the geartooth sensors integrated with the AndyMark 2-speed transmissions. We are going to go with an interrupt-driven system using the code from http://www.chiefdelphi.com/forums/sh...ad.php?t=61242 . Unfortunately, as soon as we type in:
Code:
|
Re: Interrupt Gear Tooth Sensors
Is that the only definition of InterruptHandlerLow() in user_routines_fast.c or is what you posted only part of it? It may be a good idea to post the code from the entire file to be safe.
|
Re: Interrupt Gear Tooth Sensors
Are you using the default code and MPLab 7.2? There is an error that one of the variables is defined wrong in C:\MCC18\include\p18f8722.h (or whatever your directory is) I think it is one of the priority bits, look in that file for both and make sure its correct. Kevin has the corrected one in his encoder code if you take a look at that. Or you may be getting something from annother line?
|
Re: Interrupt Gear Tooth Sensors
Quote:
|
| All times are GMT -5. The time now is 21:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi