In some cases you can use the features of the interrupts without really using the interrupts. You can poll the interrupt bits and see when things happen. (The interrupt bits still get set even if all interrupts are disabled). In fact, this is my preferred way of handling most “interrupt issues,” even in PBP!

For example (with a 16F628), if you wanted to use TMR0 interrupts, you could poll for the interrupt bit instead of actually using the interrupts.

Symbol INTCON = $0B ' 16F628 location of INTCON
Main:
TimeLoop:
peek INTCON, B0
if Bit2 = 0 then TimeLoop ; no TMR0 overflow so keep polling
poke INTCON, 0 ; TMRO overflow so reset flag

rest of program here
but less than overflow time of TMR0

goto Main


(Ihave not used PBC for 7 years but think the above format is correct)

What interrupts are you wanting to use?

Paul Borgmeier
Salt Lake City, Utah
USA