7 segment led displays


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2013
    Location
    florida
    Posts
    13

    Default 7 segment led displays

    Hii am trying to write a pic basic prg to make a 2 digit 7 segment led display count down timer that starts at 10 stays at 10 for 3 sec then continues to count down in one minute intervals to 09 08 etc to 00 then goes back to 10 again and keep repeating until unit is powered off. I don't know how to start programing the leds . I have downloaded some 2 digit countdown timers but they are all either in C or asm or hex can anyone give me a few pointers of where to start I would like to use the pic 16f683 and common cathode seven displays , are there routines for 7 seg. led displays ??? I am very new at this. thanks Ray

  2. #2
    Join Date
    Oct 2004
    Posts
    440

    Default Re: 7 segment led displays

    raybel

    The most basic mode would be to drive each segment directly with a PIC pin.
    Two seven segment LED displays would amount to 14 PIC pins if you have to them to spare.
    If the LED's are small the current draw may be within the PIC's supply capabilities ie read the data sheet.
    Also you will need a series resistor to drop the voltage for each segment.
    Sinking or sourcing to drive them would depend on if the displays are common cathode or anode.

    Their also are code tips which make configuration of the specific numbers to display a bit easier.

    Norm

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,562

    Default Re: 7 segment led displays

    hi,

    just have a look to :

    C:\PBP3\EXAMPLES\General PBP folder of your computer ...

    as simple as it : this is the example programs of your favourite compiler ...

    Alain

    BTW ... to help you a bit more ( if humainly possible ...) it's the FIRST example !
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jan 2013
    Location
    florida
    Posts
    13

    Default Re: 7 segment led displays

    thanks guys I noticed I made a big bo bo I wrote that I was using a pic16f683 it should have read pic16f628 also I looked at everything but the examples. I went through the entire manual but never thought of looking at the examples thanks again at least I got a place to start

Similar Threads

  1. Seven Segment LED
    By Brian in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th May 2011, 05:26
  2. 7 Segment Displays and MAX7219
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st October 2010, 19:30
  3. Replies: 3
    Last Post: - 5th December 2008, 16:00
  4. Multplexing two 7-Segment Displays with PIC16F84A
    By lawriem72 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 19th July 2007, 22:27
  5. Using DS18S20 vs DS1820 with 4x7 LED Displays
    By sayzer in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 16th October 2006, 05:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts