Thankyou for the quick response and help Kef.
The .prm file is a paramater file to load initial locations and settings ?
I am a little confused on what this file does, it was not covered in any texts I have read either by Huang or other university HCS12 textbook writers or my instructors, and not being a dedicated Comp Science student, am a little lost.
I was browing and a Moderator Crassy Cat informed another user that they could add the interrupt vector to their .prm file using the following code segment
VECTOR ADDRESS HEX_INTERRUPT_ADDRESS INTERRUPT_SUBROUTINE_FUNCTION_NAME
Example :
VECTOR ADDRESS 0xFFF0 MY_Int
But instead of manually inputting the vector address for each interrupt vector, I am simply telling my parameters file to look at ISR_VECTORS.c when it initializes/compiles my program and it will load the information into ram ?
Therefore I would have the following total solution to fully implement my Interrupt vectors/functions :
Main.c
#pragma CODE_SEG __NEAR_SEG NON_BANKED
interrupt void RTI_ISR(void) {
//Do something
}
#pragma CODE_SEG DEFAULT
ISR_vectors.c is an included file in my project folder present in the freescale included software which creates an easy
table for vectors present at a certain place in memory (INTERRUPT VECTORS). I replace the correct vector if using the RTI
(Vector 7) with the name of my interrupt sub routine, in this case RTI_ISR.
I must also include the following declariation in ISR_vectors.c in order to link the vector name to a function, that can be used outside of ISR_vectors.c using the follow declariation at the top of my ISR_vectors.c file
extern void near RTI_ISR(void);
I then link this ISR_vectors.c file to my main.c not using any #include but altering my .prm file (PARAMETER FILE)
in the ENTRIES SECTION to include the following
ENTRIES /* keep the following unreferenced variables */
ISR_Vectors.c // VectorsTable is the name of your vectors table
END
Thanks for help again guys, I am trying to be really clear and provide as much information as possible, I float around these forums often, just recently registered 