Hi,
Sorry i made a mistake, actually it is proton code and i mixed proton with pic basic. I will try writing in picbasic and will let you know if there is any issue.