"); //-->
/* Stop Watchdog operation */
LSRSTOP=ENABLE; /* Low-speed Ring-OSC stopped */
while(RSTS!=STABILIZE) NOP(); /* Wait for High Speed Ring-OSC stabilized */
MCM=0x00; /* select main system clock source = high-speed Ring-OSC */
/* peripheral clock source = high-speed Ring-OSC */
MOC=0x80; /* High speed system clock (X1 oscillator) operation stop */
OSCCTL=0x00; /* X1,X2, XT1 and XT2 are I/O port */
OSTS=0x05; /* Set oscillation stabilization time */
IMS=0xC8; /* Internal Memory Size for KC2 (78F0513) */
IXS=0x0C; /* Internal RAM Size for KC2 (78F0513) */
PCC=0x00; /* CPU clock(fcpu) select fxp */
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。