Quote Originally Posted by Melanie View Post
OK, that's good, we know the PIC works...

Thinking about it... is it as simple as the following conditions (this isn't PBP code btw)...

If InputTrigger < DelayTime then OuputLine = DelayTime
If InputTrigger => DelayTime then OutputLine = InputTrigger

?
That seems to be the goal (That's what i read into it anyway)

The output signal of the RF repeater is switched when the input signal is switched, but sometimes the received signal can be 'choppy' (Like any mobile radio signal, the signal strength varies wildly depending on terrain and the movement of the antenna)

If the input signal is very short it is assumed to be a choppy signal, and the output is held on because if the signal is choppy it will be restored very soon. The idea seems to be to keep the output RF stages switched on so that they transmit in the 'dropout' period too for the case of a choppy input signal.

If I get a chance later I'll flash the code I wrote into a pic and see what happens.

In the meantime,Dave (Don't know where Jeff came from !) sticking with the LED flashing diagnostic technique, each subsection of the program can be modified to flash the led for a different number of times, that way you will know which sections of the program are being run and which aren't

As another idea, if you are using a pickit2 to program it has a great serial USART device built in which saves you having to build a level convertor and that would let you SEROUT messages to it (for display on the PC) which could tell you where the program execution goes.

Chris