我用了PE,下面是PE产生的文件 看看有什么问题 setReg8(SOPT, 0x53); /* SPMSC1: LVDF=0,LVDACK=0,LVDIE=0,LVDRE=1,LVDSE=1,LVDE=1,??=0,BGBE=0 */ setReg8(SPMSC1, 0x1C); /* SPMSC2: LVWF=0,LVWACK=0,LVDV=0,LVWV=0,PPDF=0,PPDACK=0,??=0,PPDC=0 */ setReg8(SPMSC2, 0x00); /* SMCLK: MPE=0,MCSEL=0 */ clrReg8Bits(SMCLK, 0x17); /* System clock initialization */ /* ICGC1: HGO=0,RANGE=1,REFS=0,CLKS1=0,CLKS0=1,OSCSTEN=1,LOCD=0,??=0 */ setReg8(ICGC1, 0x4C); /* ICGC2: LOLRE=0,MFD2=0,MFD1=0,MFD0=0,LOCRE=0,RFD2=0,RFD1=0,RFD0=0 */ setReg8(ICGC2, 0x00); ICGTRM = *(unsigned char*)0xFFBE; /* Initialize ICGTRM register from a non volatile memory */ while(!ICGS1_LOCK) { /* Wait */ } |