
while (TI==0)
{//wait for TI to become 1
}
