Atomski -

Hi. I am not familiar with amerature radio and all of its ins and outs, and am not sure I am clearly understanding what you are doing, but...

I can tell you that I have used PULSIN commands on regular pins such as PortB pins on 16F877 for frequency measurements and have been able to achieve very nice accuracy down to 10ths of Hz without any problems, (using the CCP pins might be better practice, but for my project they were being used for something else) With the PULSIN command you can measure the High pulse and the Low pulse very easy...

just keep in mind that the results are in 10-microsecond resolution...so if it says it was high for 20, that means it was high for 20 x 10 micro seconds, therefore ==> High for 200 micro seconds

Format for PULSIN command is as follows:
PULSIN Pin, State Variable, Var

Where:

State Variable = 1 measures Time Pulse is High
State Variable = 0 measures Time Pulse is Low

so...


PULSIN PortB.1,1,Pulse_High 'State Value of 1 => Measures Time High
PULSIN PortB.1,0,Pulse_Low 'State Value of 0 => Measures Time Low


If a 4MHz resomator is used, resolution is about 10 micro-seconds

Part of my point is that, unless I am misunderstanding what you are doing which is definately possible, I do not see a need to use the RCTIME command, because the PULSIN does such a nice job of measuring the pulses.


Best of luck to you and let us know what you find out or fill us in on a few more details for those of us lacking knowledge of what you amerature radio guys do! It is very cool to me to see the different kinds of clever projects everybody here is working on. It always serves to inspire me to always work harder, to learn more, to try new projects of my own. I also like the international communications and friendships we are all building! We are doing every day what politicians are incapable of!

Your friend in the USA

Carl

--------------------------------------------------------
PIC Development Boards with BOOTLOADER
www.schellelectronics.com
Novi, Michigan USA
--------------------------------------------------------