Need help in programming

Discussion in 'Programmer's Corner' started by helloho, Mar 11, 2011.

  1. helloho

    Thread Starter New Member

    Mar 10, 2011
    Hi all,

    Basically i will connect a missing pulse detector to a pic16f877a
    The output of the Missing pulse detector is a logic signal, it's either high or low. The output will be always in high and will be change to low if the pulse is missing and will change back to high after a period.

    I want to write a programming like this:
    when the output change to low , LCD will display 1
    and add 1 every time the output change to low.

    Can somebody tell me how to start and a reference will be good too.

    thanks and sorry for the poor language.
  2. lightingman

    Senior Member

    Apr 19, 2007
    You should be able to do the whole thing with the PIC. Time the pulses on the input pin, and if the pulse is missing, do what you want it to.