There are a number of ways to do what you describe with PBP. The best way is to use interrupts, but a simple, often "good enough" method is to use one of the hardware timers. Then you can replace the PAUSE statement with a routine that first clears the timer, and then occasionally checks for the timer to be above a given value.