|
ошибочка закралась...
в первоисточник это выглядит так:
OSCXCN = 0x67;// EXTERNAL Oscillator Control Register
Delay();// Delay
while ( (OSCXCN & 0x80) == 0 ); // wait for xtal osc to start up
CLKMUL = 0x02;// Select internal oscillator as
CLKMUL |= 0x82;// Enable clock multiplier
CLKMUL |= 0xC0;// Initialize the clock multiplier
Delay();// Delay for clock multiplier to begin
while(!(CLKMUL & 0x20));// Wait for multiplier to lock
не игнорируйте не в коем случае Delay()(плохо закончится) !!!!!
вот ее текст
//-------------------------
// Delay
//-------------------------
// Used for a small pause, approximately 80 us in Full Speed,
// and 1 ms when clock is configured for Low Speed
//
void Delay(void)
{
int x;
for(x = 0;x < 500;x)
x++;
}
E-mail: info@telesys.ru