void timer0() interrupt 1{
TR0=0;
for (col=0;col<5;col++)
{
row_buff[d]=row_data[row][col];

 P1_1=row_buff[d] ;
 //clock
 P1_2=0;
P1_2=1;
 d=d+1;
 }//for col

}
void main()
{
IE=0x82; //enable interrupt for timer 0
TMOD=0x02;
TH0=0xFE;
TL0=0xFE;


while (1)
{......
