Hello All,
I am using Codewarrior v 5.7.0 and am working on an application that requires an RTI to update graphics to an LCD. I have scanned the forums throughly and came up with this scheme for my RTI. I am using the 9S12XDP512 on an ADAPT9S12XD board over a serial RS232 connection.
#include <hidef.h> /* common defines and macros */#include <mc9s12xdp512.h> /* derivative information */#pragma LINK_INFO DERIVATIVE "mc9s12xdp512"#pragma CODE_SEG __NEAR_SEG NON_BANKEDinterrupt void RTI_ISR(void) { PTP = 0x80; //turns on an onboard LED CRGFLG = 0x80;}#pragma CODE_SEG DEFAULTvoid RTIinit(void) { RTICTL = 0x63; CRGINT = 0x80; CRGFLG = 0x80;}void main(void) { DDRP = 0xFF; //Set Port P to Output RTIinit(); EnableInterrupts; for(;;) {} /* wait forever */}
VECTOR ADDRESS 0xFFF0 RTI_ISR //in my .prm file
This code is not turning on the LED as expected meaning it never enters the ISR. Any help or suggestions would be greatly appreciated. Thanks!