//---------------------------------------------------------------------------- // C main line //---------------------------------------------------------------------------- #include // part specific constants and macros #include "PSoCAPI.h" // PSoC API definitions for all User Modules #include #include #pragma interrupt_handler Timer_Interrupt //---Port Name--- #define Port0 PRT0DR #define Port2 PRT2DR //---Set variable--- char i_disp, j; char DispBuff[8]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; const char sinwave[]={16,32,64,128,128,128,128,64,32,16,8,4,2,1,1,2,4,8}; //----------------------------------- void delay_ms(WORD x) { WORD i,j; for(j = 1;j