"Boiler Plate" is a term attorneys use when drafting wrtten legal documents. It's the language included based on prior experience with similar documents. Although the exact purpose would have to be researched, it's included based on long-standing practice. I read a thread and picked up this "assembler" based on what I read about it, and I include it in all my programs.
The follow code executing all by itself (that is, all other code except initialization, commented out) had the same result:
MAIN:
Count PORTB.0, 1, Counter
if (Counter >= 11) and (Counter <= 13) then
gosub TurnOn
else
gosub TurnOff
goto main
endif
'gosub CK_PORTB
'gosub CK_PORTE
goto main
end
'----------
TurnOn:
high PORTA.2
RETURN
TurnOff:
LOW PORTA.2
RETURN
The relay is operating properly. The output of the 877 and darlington was tested with a breadboard and LEDS. I suspect the problem did not show itself at the time because the LEDs were switching so fast I couldn't see the "off". The relay is extremely slow compared to an LED, so now the problem presents itself. The thing is, I'm certain I tested it with the relay too.
No vibrations occur on this PCB.
I am now researching the use of PULSIN and the "capture" feature of a CCP module with "Darrel's instant interrupts".
Bookmarks