PIC16F84A: 3 Digit 7-segment UP and Down Counter

Discussion in 'The Projects Forum' started by eduejr, Aug 21, 2012.

  1. eduejr

    Thread Starter New Member

    Aug 7, 2012
    5
    1
    Good day to all! Can somebody help me in programming a 3 digit 7 segment up and down counter? The count is from 0 - 999. Input/switch is RA3 and RA4. Ouputs are RB6 -G, RB5 - F, RB4 - E, RB3 - D, RB2 - C, RB1 - B and RB0 - A.
     
    Rajuu likes this.
  2. eduejr

    Thread Starter New Member

    Aug 7, 2012
    5
    1
    I almost forgot, I'm using .ASM language.
     
  3. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    Then you also will need to use RA0, RA1, and RA2 to select which digit you are currently displaying. You should use the output to drive a transistor or MOSFET to supply or sink enough current to/from the common terminal.
     
  4. eduejr

    Thread Starter New Member

    Aug 7, 2012
    5
    1
    yeah. i'm using RA0 for the first digit, RA1 for the 2nd and lastly RA2 for the 3rd digit.
     
  5. eduejr

    Thread Starter New Member

    Aug 7, 2012
    5
    1
    i'm using common anode 7 segment display and an npn 2n9006 transistor.
     
  6. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    I believe you mean 2N3906 instead of 2N9006.
    That should work as long as your LED display's power supply is the same as your PIC's power supply. The 2N3906 is pretty much limited to sourcing about 100mA.

    Maybe someone will be able to help you with the Asm portion. I'm really tied up today.
     
    eduejr likes this.
  7. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
  8. eduejr

    Thread Starter New Member

    Aug 7, 2012
    5
    1
    Thank you for the response Sir. But I still don't get it.
     
  9. takao21203

    Distinguished Member

    Apr 28, 2012
    3,577
    463
    I might have source code around from years ago.
    2-digit LED display, 16f54, assembler.

    How much will you pay for this? But this is only a joke.

    Have you done any work yet? Like soldering the circuit, or building it on breadboard? Have you written any code? Did you set up a PIC programmer? MPLAB maybe?
     
  10. absf

    Senior Member

    Dec 29, 2010
    1,493
    372
Loading...