I'm not saying this is related to your problem but here:


hold1:
tempbyt=TMR1H
if tempbyt<>128 then hold1

This will "hold" until TMR1H is 128 and then countinue.
But for how long is...