I just finished my microprocessor class in college just a few weeks ago, where we only programmed the assembly. We learned about the fair amount (IMHO) of the interruptions.
Here's my question: I program in C using the HiTech Compiler for 16F684, the Datasheet section, which discusses interrupts ( PIC 16F684 Datasheet in section 12.4), says that the program will go to the 0x0004 interrupt vector. Using the assembly in my microprocessor class, we just installed the .org operator, pointing to this address, and write the necessary assembly below, so when an interrupt occurs, it will jump there and start. I can understand this in the assembly, but when I program in C, I do not believe that I have control over where the program fragments are stored in memory, which is a problem. I cannot figure out how to place commands on an interrupt in C.
Please let me know if I need to clarify!
source share