seven segment interfacing with microcontroller STM32F030C6

Discussion in 'The Projects Forum' started by Dimpi, Oct 18, 2013.

  1. Dimpi

    Thread Starter Member

    Sep 6, 2013
    96
    0
    hi all,

    Please tell me how to decide which pins of microcontroller to be connected with the seven segment display??m using STM32F030C6...
    it is even not mentioned in the datasheet which ports are to be used for seven segment display??please guide in dis.
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,440
    3,361
    The decision of which pins to use for interfacing remains the same for every mcu.

    Firstly, determine how many pins will be needed.
     
  3. BobTPH

    Active Member

    Jun 5, 2013
    782
    114
    I would stick with pins that have a digital output function.

    Bob
     
  4. Dimpi

    Thread Starter Member

    Sep 6, 2013
    96
    0

    M using overall 6 seven sgment display...
    14 pins of mcu are needed.
    one for dp pin
    6 for cc pin(display)
    7 for a,b,c,d,e,f,g..
    nw how to decide which pins are to be connected to which pins of microcontroller??
     
  5. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,542
    2,369
    Surely any 2 eight bit ports capable of suitable output characteristics, and preferably are contiguous.
    Max.
     
  6. Dodgydave

    Distinguished Member

    Jun 22, 2012
    4,986
    745
    Use Port A (8 bits) and B (9 bits), if they are output ports, decide if your using common Anode or Cathode displays and use PNP or NPN transistors to feed the anode/Cathodes, and use 330 ohms resistors to feed the segments direct from the port pins,

    here is an example
     
  7. Dimpi

    Thread Starter Member

    Sep 6, 2013
    96
    0
    sir i have used 680 ohm resistor(i dont know whether m r8 or wrong)...how to decide the resistance value??
    i have decided it this way3.3V/5mA=680ohm.

    5 amp is what the port of microcontroller can sink(given in datasheet)??
    plzz put some light in it..please guide me with correct thing if m wrong.
     
  8. MrChips

    Moderator

    Oct 2, 2009
    12,440
    3,361
    #1 - Stop using textese.

    #2 - There is no microcontroller that can sink 5 amp. Double check your datasheet.
     
Loading...