回复 2楼 szyzln
											它在一个while循环里 while ( 1 )
    while ( 1 )
     {
  
       LED_1
  =0;
         delay(2000);
        LED_1
  =1; 
        delay(2000);
         LED_1=0;
        delay(2000);
    //
    abc(); 
    status = PcdRequest(PICC_REQALL, g_ucTempbuf);//寻卡
         if (status != MI_OK)
        {
     continue;
       }
         else
            display_type();//寻到卡后显示出该卡的类型
//
            printf("卡的类型");
            for(i=0;i<2;i++)
                    {
                        temp=g_ucTempbuf[i];
    //
                    printf("%x",temp);
                        
                    }
               
         status = PcdAnticoll(g_ucTempbuf);//防冲撞
         if (status != MI_OK)
         {
    continue;
    }
          else
            display_cardnum();//显示寻到的卡的序列号
      }
      }