Hi Chris,Dunno if this is what you want . . check the code in post 16, this uses Darrel's instant interrupts. http://www.picbasic.co.uk/forum/showthread.php?t=4972