www.pudn.com > 2812pwm.rar > PWM_M.c


// 
//      TMDX ALPHA RELEASE 
//      Intended for product evaluation purposes 
// 
//########################################################################### 
// 
// FILE:	DSP28_Example.c 
// 
// TITLE:	DSP28 CPU_Timer example program. 
// 
//########################################################################### 
// 
//  Ver | dd mmm yyyy | Who  | Description of changes 
// =====|=============|======|=============================================== 
//  0.55| 06 May 2002 | S.S. | EzDSP Alpha Release 
//  0.57| 27 May 2002 | L.H. | No change 
//########################################################################### 
 
// Step 0.  Include required header files 
         // DSP28_Device.h: device specific definitions #include statements for 
         // all of the peripheral .h definition files. 
         // DSP28_Example.h is specific for the given example.   
 
#include "DSP28_Device.h" 
 
 
void main(void) 
{ 
	/*初始化系统*/ 
	InitSysCtrl(); 
 
	/*关中断*/ 
	DINT; 
	IER = 0x0000; 
	IFR = 0x0000; 
	 
	/*初始化PIE控制寄存器*/ 
	InitPieCtrl(); 
	 
	/*初始化PIE矢量表*/ 
	InitPieVectTable();	 
	 
	/*初始化EV*/ 
	InitEv(); 
	 
	EINT; 
	ERTM; 
 
	for(;;) 
	{ 
		KickDog(); 
	} 
 
} 	 
 
 
//=========================================================================== 
// No more. 
//===========================================================================