7 segment interface with PIC controller

Discussion in 'Embedded Systems and Microcontrollers' started by ect_09, Sep 29, 2014.

  1. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    can i connect 7 segment directly to PIC controller ??
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    In general, yes.
     
  3. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    But it would be wise to put a resistor in series with the PIC output in order to limit the output current.
     
  4. JohnInTX

    Moderator

    Jun 26, 2012
    2,346
    1,029
    Most PICs sink/source 25ma which is enough for segments.
    For common-cathode, drive the segments (1=on) through resistors. Digit select will usually require a transistor to sink all of the segment current.
    You will have to write firmware to multiplex the displays for more than a few digits.
    This thread and others on AAC have lots of information and code.

    Good luck.

    EDIT: MrChips and tshuck type faster than I do..
     
  5. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,548
    2,373
Loading...