[an error occurred while processing this directive]
|
/////////////////////////////////////
// Config2 Code Configuration File //
/////////////////////////////////////
#include "c8051f320.h"
// Peripheral specific initialization functions,
// Called from the Init_Device() function
void Oscillator_Init()
{
int i = 0;
CLKMUL = 0x80;
for (i = 0; i < 20; i++); // Wait 5us for initialization
CLKMUL |= 0xC0;
while ((CLKMUL & 0x20) == 0);
OSCICN = 0x83;
}
// Initialization function for device,
// Call Init_Device() from your main program
void Init_Device(void)
{
Oscillator_Init();
}
E-mail: info@telesys.ru