help about up/down counter

Discussion in 'Embedded Systems and Microcontrollers' started by jrdine, Jul 30, 2013.

  1. jrdine

    Thread Starter New Member

    Jul 30, 2013
    can you help create a 0-99 counter with up when i pressed button the relay is on , down and reset button and a start button and also once the start button is pressed it will countdown until it reach 00 the relay is off... i need to use pic16f84a....
  2. donpetru

    Active Member

    Nov 14, 2008
    I'd help you, only if you opt for an Atmel microcontroller. Display you want to be with 7-segment or LCD?
    The project can be achieved by a small donation to my website (for more details, send me one message).
  3. tshuck

    Well-Known Member

    Oct 18, 2012
    Is this because it is for school?

    What have you done thus far? Your description is not entirely clear, what does pressing up/down do differently, aside from just counting in a different direction? Does the relay stay on while counting up?

    Define what happens on each button press. Draw an ASM chart, it will help you. From there, it's just a matter of coding
    your design to match the program flow...