#include <stdio.h>
#include <reg52.h>   

xdata char buffer[100];

float n1=1.291129;

char i=0;
char tick;

void timer0int (void)  interrupt 1  using 1  {
	TH0 |= 0xdc;  // reload timer 0 with 0DC00H
	tick++;
	          
}



void main()
{

   EA = 1;
   ET0 = 1;  // or IE |= 0x82;   /* set bit EA and Timer0 enable */ 
   TMOD |= 0x01; /* timer 0 run 16 bit counter */
   TR0 = 1; //or TCON |= 0x10; /* run timer 0 */
   
   while(1)

  	{
  	while(tick<100)
  	;
        tick = 0;
  	P1 ^= 0x80;  // toggle P1.7
  	printf("\n hello worlds %f",n1*1.27228);
  	n1++;
  	}
}


