If you look at the "special use" label about 3/4 of the way down in this program, you can see how it is done.

http://www.picbasic.co.uk/forum/show...onitor+program