12.07.2015 Views

Electromechanical Timer Replacement - 320Volt

Electromechanical Timer Replacement - 320Volt

Electromechanical Timer Replacement - 320Volt

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Electromechanical</strong> <strong>Timer</strong> <strong>Replacement</strong>call doSeqState ;run mode sequencer state machinebtfss flags,OUTON ;is timer output on?goto outOff ;nope - go to outOff; timer output onoutOnbtfsc tmropt,LOWOUT ;is timer output configured to be active low?goto outOn1 ;if yes - go to outOn1bsf GPIO,TMROUT ;set timer output highgoto outEnd ;go to dbncEndoutOn1 bcf GPIO,TMROUT ;set timer output lowgoto outEnd ;go to outEnd; timer outout offoutOff btfss tmropt,LOWOUT ;is timer output configured to be active low?goto outOff1 ;if no - go to outOff1bsf GPIO,TMROUT ;set timer output highgoto outEnd ;go to dbncEndoutOff1 bcf GPIO,TMROUT ;set timer output lowoutEndclrwdt;reset the watchdog timergoto infLoop ;do it again! and again! and again!;****************;* Reset vector *;****************; For 12C508, this location contains movlw XX, where XX is the calibration value; for the on-board oscillator - thus the real reset vector is at address 0org 0x1ff ;location of "reset" vector;******************;* End of program *;******************end© 1997 Microchip Technology Inc. DS40160A/1_005B-page 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!