PIC 16F84A Counter

Discussion in 'Embedded Systems and Microcontrollers' started by ihatereg, Jun 10, 2009.

  1. ihatereg

    Thread Starter New Member

    Mar 10, 2009
    9
    0
    Hi there,

    I need to do a counter using the PIC 16F84A so that when one switch is pressed the counter will increment and when the other switch is pressed the counter will decrement. The count is from zero to 150.

    Anybody knows the coding?? Thanks
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    You need to interface the two switches. After that, you just increment or decrement a value.
     
  3. kammenos

    Active Member

    Aug 3, 2008
    127
    0
    where did you dig this f84!
     
Loading...