www.pudn.com > 6B595.rar > main.c, change:2012-03-27,size:537b


#include <hidef.h>      /* common defines and macros */ 
#include "derivative.h"      /* derivative-specific definitions */ 
 
#include "MC9S12XS128.h" 
#include "6b595.h" 
#include "Init_Clock_.h" 
 
 
 
           
 
void main(void)  
{ 
  /* put your own code here */ 
   
  Init_Clock(); 
  PORTA&=~0X07; 
  DDRA|=0X07; 
  write_data(0x55); 
 
 
	EnableInterrupts; 
 
 
  for(;;)  
  { 
    //write_data(0xaa); 
   
    _FEED_COP(); /* feeds the dog */ 
  } /* loop forever */ 
  /* please make sure that you never leave main */ 
}