| for (int j=0;j<252;j++) {
 if ((j==191)||(j==251))
 {
 m_TagCommandTest.pin[j] = 1;
 }
 else  if  ((j==190)||(j==250))
 {
 if(itimes %2 == 1)
 {
 m_TagCommandTest.pin[j] = 0;
 }
 else if(itimes %2 == 0)
 {
 m_TagCommandTest.pin[j] = 1;
 }
 }
 else
 {
 m_TagCommandTest.pin[j] = 0;
 }
 }
 
 m_TagCommandTest.putp(1,0,IP);        //Run-Test/Idle
 m_TagCommandTest.putp(1,0,IP);        //Run-Test/Idle
 m_TagCommandTest.putp(1,0,IP);        //Run-Test/Idle
 m_TagCommandTest.putp(1,0,IP);        //Run-Test/Idle
 m_TagCommandTest.putp(1,1,IP);        //select DR scan
 m_TagCommandTest.putp(1,0,IP);        //capture DR
 m_TagCommandTest.putp(0,0,IP);        //shift IR ---> (Rami: should be DR?)
 
 
 int out_dat[MAX_CHAIN_LENGTH];
 for(int i = 1; i < 252; i++)// shift write data in to JTAG port and read data out
 {
 out_dat[i] =  putp( pin[i-1],0,IP);
 }
 itimes ++;
 
 putp(0,1,IP);        //Exit1-DR
 putp(1,1,IP);        //Update-DR
 putp(1,0,IP);        //Run-Test/Idle
 putp(1,0,IP);        //Run-Test/Idle
 putp(1,0,IP);        //Run-Test/Idle
 
 
 //extest();
 IR_Command( IR_Extest);
 
 还有           for(int i = 1; i < 252; i++)         这一行为什么从1开始
 
 我快要被弄死了。拜托各位了,谢谢!
 |