//------------------------------------------------------------------------------
// Processing of Timer 0 interrupt request
//------------------------------------------------------------------------------
void Timer0(void) interrupt 1
{
counter++;
TH0 = TH_0;
TL0 = TL_0;
TF0 = 0;
}
//------------------------------------------------------------------------------
// Generates Time*1/100 s delay
//------------------------------------------------------------------------------
void Delay(unsigned char Time)
{
counter = 0;
while(counter < Time);
}