Hi bigmac :
  Thanks for your help!
  I'm sorry that the above description is not clear enough!
  It's sure that I don't konw how to set up the RTI module for generating a RTI interrupt,such as the SRTISC register or need other registers!
  The following code is a small test program,compiler under the CW6.1 and MC13213.
 
#include <hidef.h>
#include "derivative.h"
void Init_RTI(void)
{
 SRTISC=0xff;  //set up the SRTISC register,how to config it?
}
void Init_IO()
{
 PTDD_PTDD4 = 1; 
   PTDDD_PTDDD4=1; //output,for lighting a led
}
void main(void) {
  Init_RTI();
  Init_IO();
  EnableInterrupts;
  for( ; ; )  {
    __RESET_WATCHDOG();
  }    
 
}
interrupt VectorNumber_Vrti void RTI_ISR(void)  //RTI interrupt,but cann't be trigger here,WHY?
{
  if((SRTISC&0x80)==0x80){
   SRTISC_RTIACK=1;              //clear
   PTDD_PTDD4=~PTDD_PTDD4;  //on or off
  }
}
 
Running it,but the led was never lighted,I think the RTI module initializtion is wrong!
 
Please give me some hints!
Thanks again.
 
Best regards,
Charly
 
Message Edited by Beijing2008 on 
2008-07-31 04:47 AM