while(1){
*(unsigned int *) TEM_IER=0xFF;
*(unsigned int *) TEM_RX_PIRQ=0x0F;
*(unsigned int *)TEM_CR|=0x2;
*(uint32_t *) TEM_TX_FIFO =0x197;
*(uint32_t *) TEM_TX_FIFO =0x201;
//temp = *(unsigned int *) TEM_RX_FIFO;
LED =0x55;
temp=*(unsigned int *)TEM_IER;
//temp=1;
//temp1=*(unsigned int *) TEM_ISR;
//delay(10);
*(unsigned int *)TEM_CR|=0x4;
delay(10);
//temp1=*(unsigned int *) TEM_ISR;
//temp1=*(unsigned int *) TEM_ISR;
do{
temp1=*(unsigned int *) TEM_ISR;
}while((temp1 & 0x8)==0);
*(unsigned int *) TEM_CR=0x00000010;
temp = *(unsigned int *) TEM_RX_FIFO;
delay(100);
l=l<<1;
if(l==0){
l=0x01;
}
i++;