![]() |
Easy interrupt setup
I made this code to ease using interrupts - I spent most of a day reading documentation and testing things, so I figured that I'd share the code.
RobotUtils.h Code:
/* RobotUtils.h *\Code:
#include "RobotUtils.h"Code:
void InterruptHandlerLow () |
Re: Easy interrupt setup
Thanks. :D
|
Re: Easy interrupt setup
Glad you posted this, but could you clairify what exactly RoboUtils.c does? It has a lot of bitshiffting and other bitwise operations which are hard to follow. Maybe a few comments? :)
|
Re: Easy interrupt setup
Yeah, it changes a few registers around, specifically the INTCON registers. For a description of the bits, refer to the Microchip documentation on the PIC. I might write comments eventually if I get a chance...
|
| All times are GMT -5. The time now is 04:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi