con=0xaf; //resumes iic operation. delay(1); //wait until stop condtion is in effect. //the pending bit will not be set after issuing stop condition. break; } riicds=_iicdata[_iicpt++]; //_iicdata[0] has dummy. for(i=0;i<10;i++); //for setup time until rising edge of iicscl riiccon=0xaf; //resumes iic operation. break; case setrdaddr: //uart_printf("[s%d]",_iicdatacount); if((_iicdatacount--)