Hello Skimask,
first thanks for the reply. I have tried http://www.picbasic.co.uk/forum/show...=macro+hserout seems it is a solution. I have played with it yesterday. But seems I have a problem with the compiler. If I have tried to compile my program for 16F877 it was successfully compiled. But if I have tried to compile it for 16F648A I have the following error:

Message[306] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 696 : Crossing pageboundary -- ensure page bits are set.
Message[306] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 624 : Crossing pageboundary -- ensure page bits are set.
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 428 : Symbol not previously defined (EEADRH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 442 : Symbol not previously defined (EEADRH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 456 : Symbol not previously defined (EEADRH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 470 : Symbol not previously defined (EEADRH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 797 : Symbol not previously defined (EEADRH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 428 : Symbol not previously defined (EEDATH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 442 : Symbol not previously defined (EEDATH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 456 : Symbol not previously defined (EEDATH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 470 : Symbol not previously defined (EEDATH)
Error[113] E:\PICDEVELOPMENTTOOLS\PBP\PBP246\PBPPIC14.LIB 795 : Symbol not previously defined (EEDATH)

Seems it is a bug of PBP lib no?

Boban