I am using a PIC Basic compiler with a 16c72. I would like to have a pin toggle hi/low for pre-set frequencies (0 to 5 KHz), that is updated from my full size 'main' program. This pin must hold a frequency that I tell it to. When the frequency is to be updated(probably up to 10 times per sec), there has to be an instantaneous transition to the new frequency value (no glitch when switching) It is possible this 'backround' subroutine might be written with use of a Timer. This gets confusing when using the PIC Basic Compiler. PicBC does allow use of assembly language in portions of the main code. Help/Suggestions, please -Dave Celsnak x93celsnak@wmich.edu