Hello Ralph,
I presume that the PE device initialisation tool presupposes the use of standard register names, as defined within the CW include file for the device. If you are attempting to alter these labels within the initialisation code, it is probably not valid to use PE.
One possible alternative approach might be to rename the file to MCUInit.inc. Then within your main file:
INCLUDE "special.inc"
INCLUDE "MCUInit.inc"
; Other code
So the contents of both files would have visibility to the main file, and the file MCUInit.inc would not be separately assembled. Actually, this is the approach required for an absolute assembly project.
Another alternative for the interrupt handlers might be to simply JSR to sub-routines within another file, which would contain the "real" ISR code. Or alternatively, entirely eliminate the ISR code from MCUInit.asm for those interrupts that need the special include.
Regards,
Mac
Another thought! Presumably the ISR code is at a position within the file that does not get over-written by the initialisation tool. The solution may be to incorporate the INCLUDE directive just prior to the first ISR, where hopefully it will not be over-written. The contents of the include will then be visible to the ISRs (but not to the preceeding code).
Message Edited by bigmac on 2009-03-20 07:07 AM