int n, m, k,i;
int x,BZ,j;
unsigned char serial_data[30];
unsigned char temp_data[];
unsigned char temp_uchar;
unsigned char kg_data[20];
sbit LED = P0^1;
//------------------------------------------------------------------------------------
// MAIN Routine
//------------------------------------------------------------------------------------
void main (void) {
PCA0MD &= ~0x40; // WDTE = 0 (disable watchdog timer)
m = 0;
k = 0;
x = 0;
BZ=0;
// Peripheral specific initialization functions,
// Called from the Init_Device() function
void Oscillator_Init() //24.5M
{
OSCICN = 0x83;
RSTSRC = 0x04;
// Initialization function for device,
// Call Init_Device() from your main program
void Init_Device(void)
{
//Timer_Init();
Port_IO_Init();
Oscillator_Init();
Interrupts_Init();
}