|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Interrupts, Interrupts, and more Interrupts!
There seems to be a lot of questions as well as misinformation about PIC18F interrupts and the robot code/devices. I thought a separate thread to ask more general questions would be worthwhile.
The purpose of this thread is share technical information at a detail level that most team members and even programmers won't care about. That's because building a solid device interrupt service routine only needs to be crafted once and then used multiple times. So if you're one of those crazies that want to understand how to craft interrupt service routines then welcome and have at it! The are a couple documents that serve well for information: DS31008A 33023a.pdf PICmicro™Mid-Range MCU Family Reference Manual DS39646B 39646b.pdf PIC18F8722 Family Data Sheet DS00097D MPLAB® C18 C COMPILER USER’S GUIDE These documents, and more, are available from the Microchip website. For example, there are chip errata sheets that explain specific flaws that appear in specific chip models and how to get around them. There may be newer versions of the above, but these are the ones I currently have downloaded and use for references. To answer a question, PLEASE DONT GUESS! Look it up and post the answer and reference if there is one. For example, someone asked about interrupt latency in another thread. The chip latency is defined in DS31008A above as: Quote:
Code:
#pragma code InterruptVectorReset = LOW_INT_VECTOR
void InterruptVectorLow (void)
{
_asm
goto InterruptHandlerLow /*jump to interrupt routine*/
_endasm
}
If curious, you an see some of this information in the attached image in MPLAB's View->Program Memory window. Last edited by dcbrown : 08-02-2008 at 11:42. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How many interrupts is too many interrupts? | Madison | Programming | 14 | 08-02-2008 12:09 |
| More than 6 RC digital input interrupts? | Jared Russell | Programming | 2 | 06-02-2007 15:41 |
| Interrupts and Script Conundrums | Jon236 | Programming | 2 | 08-02-2005 23:01 |
| interrupts and putdata() | doy | Programming | 4 | 23-02-2004 22:45 |
| Interrupts and rotation sensors | kor | Programming | 3 | 12-02-2004 11:05 |