实用C8051源程序.doc

实用C8051源程序概要1

//////////////////////////////// SYSTEM INIT //////////////////////////////////////// void SYSCLK_Init(void) { // delay counter OSCXCN = 0x66; // start external oscillator with 6MHz crystal Delay_ms(10); //XTLVLD blanking interval (1ms) while (!(OSCXCN 0x80)) ; // Wait for crystal osc. to settle OSCICN = 0x8; // select external oscillator as SYSCLK // source and enable missing clockdetector } void SYSCLK_Init2(void) { OSCICN = 0x14; // select INSIDE oscillator as SYSCLK // source

文档评论(0)

1亿VIP精品文档

相关文档